Lucene boosting only on matching field values

2009-07-09 Thread Eric Chu
Hi all, I was wondering if there is any way to do a boost on the document based on which value is in a field matched by a query. ie, (Sample code below) - You have a document that contains 1 field with multiple values. - Field has value ABC boosted by 2.0 - Field has value XYZ boosted by 3.0 - I

Re: Using IN to retrieve data after lucene search.

2009-07-09 Thread Erick Erickson
It depends (tm). How much data are we talking about here?I dislike having to have two data sources for a running app just because it's more complicated, so my first try would be to store all the data in the index and try it. A several Gigabyte index is not a problem at all (depending upon how you u

How to get rid of unused fields?

2009-07-09 Thread Khin, Gerald
Hi folks! After deleting documents from the index it can happen that fields become unused (i.e. no document has this field anymore). And IndexReader.getFieldNames() still returns these unused fields, even after optimizing the index. Is there any chance to get rid of these unused fields? Che