1

We are using Lucene.NET Version 2.9 to search for items using free text query. We get the items automatically sorted by Lucene by relevance. It has been working great except for one odd case. When search for Agile project management, the top 4 items returned by Lucene are as follows.

  1. Agile Project Management For Dummies
  2. Fundamentals of Agile Project Management
  3. Agile project management
  4. Agile Project Management

The item 3 or 4 should be showing up at the top as they are perfect. In many cases that we searched, if an item matches 100%, it is shown at the top. Anybody can please explain what is happening here. We are using standard analyzier.

dotcoder
  • 2,828
  • 10
  • 34
  • 50

1 Answers1

0

First thing I'd look at is what other fields are included in the search? A description field loaded with the word Agile could be pushing the first two up for example.

Paul
  • 6,188
  • 1
  • 41
  • 63
  • There are only only two fields; one is item unique id, another is item name. While searching, we search only in the item name. – dotcoder Dec 30 '11 at 13:52