RE: Problem searching in the same sentence

2010-09-29 Thread Jagdish Vasani IN
For highlighting to work you need to store position information of each token... So while field creation you need to call following constructor.. Field field = new Field(fieldName, validFieldValue, (store) ? Field.Store.YES : Field.Store.NO,

Re: Problem searching in the same sentence

2010-09-29 Thread Sirish Vadala
Hello All: I am performing the sentence specific phrase search, by adding sentence by sentence to the same field as suggested below. Everything works fine, but when I display my results, highlighter is not able to find the search text phrase. The following is my code: SentenceScanner sentenceSc

Re: File Handle Leaks During Lucene 3.0.2 Merge

2010-09-29 Thread Jamie
Hi Uwe Thanks in advance for your help. Well, I just tried searching again and it made no difference. My LuceneIndex getReader() function will call writer.getReader() on occasion or return a cached copy. To make sure that IndexReader's are closed when they are no longer needed, I wrap the Ind

RE: File Handle Leaks During Lucene 3.0.2 Merge

2010-09-29 Thread Uwe Schindler
The "deleted" files are only freed by OS kernel if no longer an IndexReader accesses them. Did you get a new realtime reader after merging and *closed* the old one? - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message

Re: Searching for null (empty) fields, how to use -field:[* TO *]

2010-09-29 Thread Frank Geary
Since my index cannot be re-indexed easily, I had to go with Erick's first suggestion. I thought others might be interested in an example of the code (I did this using Lucene 2.4.1): // This code worked best to deletes documents with a null field value... BooleanQuery nullFieldsOnlyQuery = new B

File Handle Leaks During Lucene 3.0.2 Merge

2010-09-29 Thread Jamie
Hi There I am noticing file handle leaks appearing on Index files. I think the leaks occur during the Lucene merge operation. Lsof reports the following: java 28604 root 213r REG 8,33 1098681 57409621 /var/index/vol201009/_a4w.cfs (deleted) java 28604 roo