Ticket

Search thread using by created and assigned username in Forum section

Hi All,

Please check the attached images. I want to search the thread using by created username and assigned username. But i am getting the result only when I search using by assigned username. When i use the created username i am not getting the result.

Please help to resolve this issue. It is not happen in an Orchardpros.net site.

How can i do Orchardpros.net - 'My Tickets' concept. This is the one for my requirement.

Re: Search thread using by created and assigned username in Forum section

You didn't explain how you implemented the created username and the assigned username, so I am going to assume that you either implemented them as content fields or as a custom part. In case of fields, make sure to include them as part of your search index. In case of a custom part, make sure to implement the OnIndexing method in your content part's handler. Check out some of the existing module's content handlers to see how that's done. E.g.

public MyCustomPartHandler() {
            OnIndexing<MyCustomPart>((context, part) => context.DocumentIndex.Add("createdUserName", part.CreatedUserName).RemoveTags().Analyze());
        }
Monday, October 24, 2016 2:29:59 AM bysfmskywalker

Post a reply

You need to be signed in to post a reply.

Sign In