Boost documents

2002-11-11 Thread Eric Jain
Is there any way (or workaround) to boost the scores for certain documents? My problem is as follows: The documents I am indexing may contain a number of literature references, the more the better. Unfortunately the scoring algorithm ranks documents with a lot of references in their body lower,

Re: Searching Ranges

2002-11-11 Thread Scott Ganyo
Hi Alex, I just looked at this and had the following thought: The RangeQuery must continue to iterate after the first match is found in order to match everything within the specified range. In other words, if you have a range of a to d, you can't stop with a, you need to continue to d. At

Re: Is the functionality to highlight matched words currently availab le?

2002-11-11 Thread Peter Carlson
Look on the contributions page (it's in the left navbar of the Lucene site). There are some example of how to do this. Just to note, the changes that are described in the text are done in the nightly build of Lucene. --Peter On Monday, November 11, 2002, at 07:43 AM, Lichty, Kent wrote: We

RE: Is the functionality to highlight matched words currently availab le?

2002-11-11 Thread Lichty, Kent
Thanks very much. That is exactly what I was looking for. -Original Message- From: Peter Carlson [mailto:carlson;bookandhammer.com] Sent: Monday, November 11, 2002 10:00 AM To: Lucene Users List Subject: Re: Is the functionality to highlight matched words currently availab le? Look on

RE: Indexing synonyms

2002-11-11 Thread Spencer, Dave
Re reducing the set of question/answer pair to consider below - I would expect that using synonyms either in the index or in the reformed query would (annoyingly) increase the number of potential matches or is there something I'm missing. Interesting that this topic just came up as I wanted to

RE: Indexing synonyms

2002-11-11 Thread Alex Murzaku
I wouldn't bother downloading the WordNet - if planning to use only the synonyms, get the Prolog file wn_s.pl where words follow the structure: s(15303,1,'person',n,1,7229). s(15303,2,'individual',n,1,51). s(15303,3,'someone',n,1,17). s(15303,4,'somebody',n,1,0).

RE: Delete document don't work

2002-11-11 Thread Sale, Doug
when deleting by unindexed fields, you need to traverse the entire index, and introspect each document: IndexReader reader = IndexUtils.getIndexReader(index); int max = reader.maxDoc(); for (int i = 0; i max; i++) { if (!reader.isDeleted(i)) { Document doc = reader.document(i); if