Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

Document Boost

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


furkhans at yahoo

Apr 19, 2007, 12:08 PM

Post #1 of 1 (172 views)
Permalink
Document Boost

Hi there,
I am new to Lucene and would appreciate any help on this. Thank you in
advance.
I want the order of the search results based on the keywords mentioned in
the meta information of the document. For example, if I have two very
similar documents first.htm and second.htm, first.htm has keywords
("security") mentioned in its meta and the second.htm does not mention those
keywords in its meta information, but both documents contain "security" in
its content, then I would want to see the first.htm at the top of the search
results lists.
I tried to boost these keywords (added new fields to the document and
setting the boost for these fields) before adding to the document, but when
I do a search, the results are not as expected.

Any ideas how to accomplish this.

Thanks
HG
--
View this message in context: http://www.nabble.com/Document-Boost-tf3609184.html#a10084937
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe[at]lucene.apache.org
For additional commands, e-mail: java-dev-help[at]lucene.apache.org

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.