Re: Phonetic search with Lucene 3.2

2011-11-07 Thread Paul Libbrecht
Felipe, in Lucene in Action there's a little bit on that. Basically it's just about using the right analyzer. paul Le 8 nov. 2011 à 01:45, Felipe Carvalho a écrit : > Hello, > I'm using Lucene 3.2 on a phone book app and phonetic search is a > requirement. I've googled up "lucene phonetic sea

Phonetic search with Lucene 3.2

2011-11-07 Thread Felipe Carvalho
Hello, I'm using Lucene 3.2 on a phone book app and phonetic search is a requirement. I've googled up "lucene phonetic search" but could not find many references. I did find this article, but I'm not sure about how updated it is: http://tech.javayogi.com/hello-world-lucene.html I couldn't find

Re: Reopening an index reader still giving me deleted records ?

2011-11-07 Thread Paul Taylor
On 07/11/2011 17:45, Michael McCandless wrote: How did you open the first IndexReader (is this an NRT reader or a "normal" (via IndexReader.open) reader?)? Hi, its a normal index reader , I create an Index searcher from a directory IndexSearcher indexSearcher = new IndexSearcher(directory); an

RE: Numeric field min max values

2011-11-07 Thread Uwe Schindler
This is caused by lower-precision terms used by NumericField to allow fast NumericRangeQuery. You have to filter those values by looking at the first few bits, which contains the precision. - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de

Re: Numeric field min max values

2011-11-07 Thread Christian Reuschling
hm - I recognized that when I iterate with TermEnum and decode the value with prefixCodedToInt (..), I get correct values, but I also get values that are not Field values of this field in the entire index. E.g. I get in the number-encoded field with the timestams also a '0' as term - but all docume

Re: Reopening an index reader still giving me deleted records ?

2011-11-07 Thread Michael McCandless
How did you open the first IndexReader (is this an NRT reader or a "normal" (via IndexReader.open) reader?)? Also, be careful with threads: I think your code isn't thread-safe because one thread can finish getIndexSearcher() but not yet incRef'd the reader, when another thread closes that reader.

Reopening an index reader still giving me deleted records ?

2011-11-07 Thread Paul Taylor
I build indexes from scratch every three hours in a seperate process, then when they are built I replace the old indexes with these new ones in my search server. Then I tell the search to reload the indexes as follows: public void reloadIndex() throws CorruptIndexException, IOException {