Re: Numeric field min max values

2011-11-08 Thread Christoph Kaser
Hi Chris, Here is some code we use to obtain the int values from the TermEnum: HashSet ints = new HashSet(); TermEnum te = reader.terms(new Term(fieldName,"")); do { String val = te.term().text(); //See the FieldCache-Implementation: NumericFields

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
Thanks for the reply, Paul! I got this example from Lucene In Action: public void testKoolKat(){ RAMDirectory directory = new RAMDirectory(); Analyzer analyzer = new MetaphoneReplacementAnalyzer(); IndexWriter writer = new IndexWriter(directory, analyzer, true); Document doc = ne

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
One other question: I'm looking at Lucene 3.4 javadocs ( http://lucene.apache.org/java/3_4_0/api/core/index.html) but I can't find MetaphoneReplacementAnalyzer anywhere. Does any one know if this class has been removed from lucene-core. My Lucene In Action edition is from 2004, so I'm guessing thi

Re: Numeric field min max values

2011-11-08 Thread Christian Reuschling
Thank you very much - this really helps me a lot! 2011/11/8 Christoph Kaser : > Hi Chris, > > Here is some code we use to obtain the int values from the TermEnum: > >        HashSet ints = new HashSet(); >        TermEnum te = reader.terms(new Term(fieldName,"")); >        do { >            Strin

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Erik Hatcher
On Nov 8, 2011, at 03:58 , Felipe Carvalho wrote: > One other question: I'm looking at Lucene 3.4 javadocs ( > http://lucene.apache.org/java/3_4_0/api/core/index.html) but I can't find > MetaphoneReplacementAnalyzer anywhere. Does any one know if this class has > been removed from lucene-core. T

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
Thanks, Erik! I'm looking at lucene-all javadocs, and there are some interesting classes (specifically I'd like to use org.apache.lucene.analysis.br.BrazilianAnalyzer). I'm able to find lucene-core on http://search.maven.org/, but is there a lucene-all published on some maven repo? or should I get

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
Sorry, the last was a dumb question, just found org.apache.lucene:lucene-analyzers:3.3.0 on maven central repo Thanks a lot for the help! On Tue, Nov 8, 2011 at 10:16 AM, Felipe Carvalho wrote: > Thanks, Erik! > > I'm looking at lucene-all javadocs, and there are some interesting classes > (spec

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Erik Hatcher
Felipe - Look at the other Lucene JARs available. lucene-analyzers, I think is where it is: Personally, I'd download Lucene 3.4 release from Apache and use the JARs from there. Erik On No

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

2011-11-08 Thread Paul Taylor
On 07/11/2011 20:35, Paul Taylor wrote: On 07/11/2011 17:45, Michael McCandless wrote: I've found the issue, I should not be using reopen because data isn't merely being added to the indexes, the indexes are rebuilt from scratch and then swapped in to replace the old ones. My bad. Paul

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
On Tue, Nov 8, 2011 at 10:06 AM, Erik Hatcher wrote: > > On Nov 8, 2011, at 03:58 , Felipe Carvalho wrote: > > > One other question: I'm looking at Lucene 3.4 javadocs ( > > http://lucene.apache.org/java/3_4_0/api/core/index.html) but I can't > find > > MetaphoneReplacementAnalyzer anywhere. Does

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Paul Libbrecht
Felipe, I do not have a tutorial but what you are describing is what I have been doing in ActiveMath. I have a little paper for you if you want that explains how it goes there (http://www.hoplahup.net/paul_pubs/AccessRetrievalAM.html) and the software is open-source (http://www.activemath.org

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Erik Hatcher
On Nov 8, 2011, at 05:42 , Felipe Carvalho wrote: >> Yes, quite possible, including boosting on exact matches if you want. Use >> a BooleanQuery to wrap clauses parsed once with phonetic analysis, and once >> without, including fields at indexing time for both too of course. >> > > Would it be

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

2011-11-08 Thread KARTHIK SHIVAKUMAR
Hi >>BUT still find records that have been deleted and no longer exist in the index Lucene API 3.3.0 has something like * org.apache.lucene.index.IndexCommit Has this been used after deletion of the records plz check The indexex may still be there and may popup on new search with r

Lucene Architecture/Documentation Site (Update)

2011-11-08 Thread Vineet Sinha
Hey guys, As you guys might have heard we have been working on building a site that would be helpful to the Lucene community. We have gotten some great feedback on it, have made a large set of changes, and were wondering what you guys think of it. You can find the site here: http://www.codemaps.or

Re: Lucene Architecture/Documentation Site (Update)

2011-11-08 Thread janwen
facebook or twitter login is need. 2011-11-09 janwen | China website : http://www.qianpin.com/ 发件人: Vineet Sinha 发送时间: 2011-11-09 03:15 主 题: Lucene Architecture/Documentation Site (Update) 收件人: java-user Hey guys, As you guys might have heard we have been working on building a site t

Re: Re: Lucene Architecture/Documentation Site (Update)

2011-11-08 Thread janwen
bug: Opening Overview of Lucene Core: this may take a few secondsLoading... 100% 2011-11-09 janwen | China website : http://www.qianpin.com/ 发件人: "janwen" 发送时间: 2011-11-09 13:07 主 题: Re: Lucene Architecture/Documentation Site (Update) 收件人: "java-user" facebook or twitter login is need.

Re: Re: Lucene Architecture/Documentation Site (Update)

2011-11-08 Thread Vineet Sinha
Janwen, Thanks for the suggestion regarding Facebook and Twitter login - we will add that. We are looking into the bug regarding that diagram. Others, Thanks for all the feedback you have given us via e-mail and directly on the site. We are excited. :-) Regards, Vineet -- Founder, Architexa - ww