I'm trying to compose a reasonable search mechanism for a website which contains infomation stroed in text articles. I'm doing the search in umbraco lucene's examine.
So, the let's say the fields I'm searching is "bodyText" and "titleText",
What i've come up with for the filter is this:
var filter = criteria
.GroupedOr(new string[] { "bodyText","titleText"}, SearchTerm)
.Compile();
What is an example of a better search, that would include, for example, results which contain the SearchTerm ("literate" will be a result for "iter" search), or any other improvement for that search ?
I'm basically looking for an example of a good search query for my case...
Search criteria for Lucene Examine
I'm trying to compose a reasonable search mechanism for a website which contains infomation stroed in text articles. I'm doing the search in umbraco lucene's examine.
So, the let's say the fields I'm searching is "bodyText" and "titleText",
What i've come up with for the filter is this:
var filter = criteria .GroupedOr(new string[] { "bodyText","titleText"}, SearchTerm) .Compile();
What is an example of a better search, that would include, for example, results which contain the SearchTerm ("literate" will be a result for "iter" search), or any other improvement for that search ?
I'm basically looking for an example of a good search query for my case...
is working on a reply...