Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • olst 69 posts 88 karma points
    Nov 25, 2011 @ 19:44
    olst
    0

    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...

Please Sign in or register to post replies

Write your reply to:

Draft