Hi

It's not quite that simple.  Other things being equal, results that
match all keywords are likely to come first but there are other
factors such as term frequency and the length of the document.

Searcher.explain() will give you the gory details.  Luke will let you
see what is in your index.  A google for relevancy or scoring will
give you more info.  DefaultSimilarity is the default scoring
implementation.


--
Ian.


On Fri, Jul 31, 2009 at 11:01 AM, bourne71<gary...@live.com> wrote:
>
> Hi, new here.
>
> I recently started using lucene and had encounter a problem.I crawl and
> index a number of documents.
> When i perform a search, lets say "tall fat", by right the results that
> matches all the keyword should be on top and display first.
>
> But in my search results, some of the document with only 1 matches of the
> keyword like 'tall' is display first. Why is that? What had i done wrong?
>
> can anyone advise me on this? thanks
> --
> View this message in context: 
> http://www.nabble.com/Boosting-Search-Results-tp24753954p24753954.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to