Results 1 to 1 of 1
Thread: Additional Weight
- 12-13-2009, 02:22 AM #1Member
- Join Date
- Dec 2009
- Rep Power
I have a large index that searches about a bazillion documents. Usually (but not always), when a user is searching for a page, they are looking for something in one of the departments with which they have an affiliation. Additionally, if they've opened the document before, there is a good chance they're looking for that document again. Therefore, I would like to weight such results higher. The trick here is that the additional weights are different for different users.
It's not even just a re-ordering of the returned 100-or-so top results. There may be 10,000 documents containing the word "networking", but the correct result may not even be in the first 100 results returned by lucene.
My idea was that if there were some way to indicate that a keyword is beneficial if it is contained in the document, but is not a required keyword, I could just append that to the user's query before passing it to lucene.
Does this make sense? Does such a query syntax for "boost words" exist?
Last edited by laserjim; 12-13-2009 at 02:31 AM.
- By bronai in forum Advanced JavaReplies: 1Last Post: 05-16-2011, 07:18 PM
- By dorairaj in forum AWT / SwingReplies: 7Last Post: 10-06-2009, 05:58 AM