Search index - search for half words

Topics: General, Troubleshooting, Writing modules
Oct 18, 2011 at 8:56 AM
Edited Oct 18, 2011 at 9:00 AM

is it possible to search for half words because i only get search results when i type in the complete word. I also want to search case insensitive.

Oct 18, 2011 at 4:46 PM

This is called prefixed query. It's possible, but needs a little coding. There are so many behaviors that one could expect that a decision had to be made. Though changing the code of the controller, or creating your own one is the solution.

You can take a look at Orchard.Search.Services.ISearchService, which calls Parse. Instead of calling Parse, you can create your own lucene query.

Oct 18, 2011 at 4:47 PM

Or you can also open a bug asking for more configurability, and please provide anything you have in mind, or scenarios that other CMSs are handling.