How to get the Terms from the TermsEnum of an IntField ?

2014-07-29 Thread Olivier Binda
Hello. How do you get the terms for a TermsEnum of an IntField coded with precisionStc = Integer.Max that you get with MultiFields.getTerms(reader, intField).iterator(null) ? I had mitigated success trying to get the terms out of this iterator with NumericUtils.prefixCodedToInt I tried wh

Re: Seeking Additional Moderator Volunteers for java-user@lucene

2014-07-29 Thread Chris Hostetter
On Wed, 23 Jul 2014, Yalamarthi, Vineel wrote: : Can I be volunteer too Vineel: sorry i didn't see your response until now. Thanks for volunteering by asfinfra already processed the request and now we've got plenty of moderators. (i think it was actauly processed before you even replied) -

Re: stemming irregular plurals?

2014-07-29 Thread Rob Nikander
Ah, yes, that does it. Thank you both. Rob On Jul 29, 2014, at 10:30 AM, Alexandre Patry wrote: > > On 29/07/2014 10:28, Rob Nikander wrote: >> Mmm. I don’t see a way to construct one, except passing an FST, which isn’t >> exactly a map. I look at the FST javadoc; it’s a rabbit hole. > You

Re: stemming irregular plurals?

2014-07-29 Thread Alexandre Patry
On 29/07/2014 10:28, Rob Nikander wrote: Mmm. I don’t see a way to construct one, except passing an FST, which isn’t exactly a map. I look at the FST javadoc; it’s a rabbit hole. You probably want to look at http://lucene.apache.org/core/4_9_0/analyzers-common/org/apache/lucene/analysis/miscel

Re: stemming irregular plurals?

2014-07-29 Thread Rob Nikander
Mmm. I don’t see a way to construct one, except passing an FST, which isn’t exactly a map. I look at the FST javadoc; it’s a rabbit hole. Rob On Jul 29, 2014, at 10:14 AM, Robert Muir wrote: > You can put this thing before your stemmer, with a custom map of exceptions: > > http://lucene.apach

Re: stemming irregular plurals?

2014-07-29 Thread Robert Muir
You can put this thing before your stemmer, with a custom map of exceptions: http://lucene.apache.org/core/4_9_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.html On Tue, Jul 29, 2014 at 10:03 AM, Robert Nikander wrote: > Hi, > > I created an Analyzer with a Po

stemming irregular plurals?

2014-07-29 Thread Robert Nikander
Hi, I created an Analyzer with a PorterStemFilter, and I’m searching some test documents. Normal plurals work; searching for “zebra” finds text with “zebras”. But searching for “goose” doesn’t find “geese”. Is that expected? Does it give up on irregular English? Is there a way to make that

remove duplicates from MuliPhraseQuery

2014-07-29 Thread Bernd Fehling
Hi list, can anyone give some hints about removing duplicates from a MultiPhraseQuery? I have the list with: List termarray = (MultiPhraseQuery) myquery).getTermArrays(); But the lucene javadocs have only add, no remove or delete. Only idea so far is to build a temporary MultiPhraseQuery and it