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 ?
Have you tried
Fuzzy()?From http://umbraco.com/follow-us/blog-archive/2011/9/16/examining-examine.aspx
I’m not quite sure that syntax is right, but play around with that. It may not actually do partial word searches, but could possibly give closer results to what you’re looking for.