First off, I would start by using Lucene's explain functionality to
see why one result appears before the other. The explain method will
tell you all the factors that go into scoring each of your results, as
it goes beyond just term frequency.
Finally, you might find http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Debugging-Relevance-Issues-Search
helpful. One of the things I often tell people is that if you know
a certain result needs to be in a certain place for a certain query,
just put it there. Otherwise, don't sweat relative position too much
unless you have a result that you think is good buried (i.e. page 5)
deep down in your results.
-Grant
On Mar 19, 2009, at 8:54 AM, m.harig wrote:
Hello all,
i've a search application which uses lucene-2.3.0 ,
and my
application running for a banking domain. Am indexing some banking
urls as
an input and am searching some keywords. What my doubt is when i
search
"cards", the less count keyword url comes up. I mean , for example
http://
www.siteA.com
http://
www.siteB.com
http://
www.siteC.com
in that urls , http://www.siteB.com has got
more
number of words count "cards" than the other two sites. But when am
searching am getting the http://www.siteB.com as the last search
result,
other two urls are coming up.
But i need the url which has more number word
counts
will come up . I used filed.setBoost(100f); Is it the right way to
boost
the field? How do i do my above. ? please anyone help me out of
this.......
--
View this message in context:
http://www.nabble.com/boosting-query-tp22599538p22599538.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