FuzzyQuery with short words

2013-09-11 Thread Allison, Timothy B.
All, Apologies if I missed this in the documentation, but should: FuzzyQuery q = new FuzzyQuery(new Term("field", "ab"), 2) retrieve a document that contains: abcd and vice versa. Same question for: xy~1 and a document that contains "x". Will submit test case if this is not a known issue or

Fwd: SpellChecker adding and removing words

2013-09-11 Thread Johnny Jenkins
I've now managed to add words into the spell checker index (i.e. not just the F_WORD field), unfortunately it is a dirty hack...which wouldn't have been necessasry if those private methods were made protected. Next problem... Deleting words: 1) (a) create index (b) add word (c) delete word = SUC

Re: Unable to find JAR for lucene-contrib

2013-09-11 Thread Abhinav M Kulkarni
Okay, I found what I wanted, thanks to Steve Rowe's reply. There's no contrib jar as such. There are different components in contrib such as analyzers or highlighter and each one of them have a JAR. Thanks, Abhinav On 09/10/2013 07:31 PM, Abhinav M Kulkarni wrote: Hi, This is probably a very

Re: Unable to find JAR for lucene-contrib

2013-09-11 Thread Steve Rowe
Hi Abhinav, There never has been a lucene-contrib jar - instead, each so-called contrib (as of v4.0, these are instead referred to as modules) is packaged as its own jar. Is there some contrib/module/feature/class in particular you're looking for? Steve On Sep 10, 2013, at 10:31 PM, Abhinav

Re: Check if Term present in Existing Index before Merging indexes from Directory.

2013-09-11 Thread Ian Lea
If you want to stick with the approach of multiple indexes you'll have to add some logic to work round it. Option 1. Post merge, loop through all docs identifying duplicates and deleting the one(s) you don't want. Option 2. Pre merge, read all indexes in parallel, identifying and deleting as a

Retrieving attributes of terms in lucene

2013-09-11 Thread nischal reddy
Hi, I have written a custom Tokenizer which will split my input text into tokens, i have overridden the incrementToken method and setting chartermAttribute, offsetAttribute, typeAttribute (Please find the method below..) @Override final public boolean incrementToken() throws IOException {

Check if Term present in Existing Index before Merging indexes from Directory.

2013-09-11 Thread Ankit Murarka
Hello Have a peculiar problem to deal with and I am sure there must be some way to handle it. 1. Indexes exist on the server for existing files. 2. Generating indexing is automated so files when generated will also lead to index generation. 3. I am merging the newly generated indexes and exi