Re: FuzzyQuery on entire set of terms

2016-10-21 Thread Michael McCandless
You mean the total number of edits between those strings must be <= 2? If so, you must index the entire "Lucene Apache Group" as a single token, and likewise do a FuzzyQuery with the entire "Luceni Apachi Group", etc. If instead you do tokenize and use BooleanQuery to combine them, then that allo

FuzzyQuery on entire set of terms

2016-10-21 Thread Michael Wilkowski
Hi, I need to implement a function that performs fuzzy search on multiple terms in the way that a summarized distance 2 from ALL terms is allowed. For example query: Lucene Apache Group with maximum distance 2 should match: Luceni Apachi Group Lucen Apache Group Luce Apache Group but not: Luce

Re: Migration Lucene 4 -> Lucene 6

2016-10-21 Thread Alan Woodward
Hi, You need to add a NumericDocValuesField here as well - Point is for searching, Stored is for display. Alan Woodward www.flax.co.uk > On 21 Oct 2016, at 10:54, Ludovic Bertin wrote: > > Hi, > > When I'm trying to launch search with ordering, but it fails with exception : > unexpected do

Migration Lucene 4 -> Lucene 6

2016-10-21 Thread Ludovic Bertin
Hi, When I'm trying to launch search with ordering, but it fails with exception : unexpected docvalues type NONE for field 'LOCAL_TIME' (expected=NUMERIC). Re-index with correct docvalues type. For indexing: doc.add(new LongPoint("longValue", (Long) value)); doc.add(new StoredField("longValue