Lucene 4.6 SpanNearQuery or PhraseQuery with Optional term

2014-01-06 Thread Nirav Patel
Hi, Here's my problem, I want to do fuzzy query on "advanced dc motors inc" which matches to all of the following with close score: advanced dc motors inc advanced dc motro incorporation advanced dc motor 1234 inc advance dc motor 1234123 And then I have to evaluate automatically whether I found

MergePolicy for append-only indices?

2014-01-06 Thread Otis Gospodnetic
Hi, (cross-posting to both Solr and Lucene user lists because while this is a Lucene-level question, I suspect a lot of people who know about this or are interested in this subject are actually on the Solr list) I have a large append-only index and I looked at merge policies hoping to identify one

Delete a field in old documents

2014-01-06 Thread manoj raj
Hi, I have stored fields. I want to delete a single field in all documents. Can i do that without reindexing? if yes, is it costly operations..? Thanks, Manoj.

Re: Reusability of QueryParser

2014-01-06 Thread Mindaugas Žakšauskas
Hi, This had helped, thank you Uwe! Regards, Mindaugas On Mon, Jan 6, 2014 at 12:48 PM, Uwe Schindler wrote: > Hi, > > The problem is your Analyzer: As it returns different components for each > field name, the constructor must pass the per field reuse strategy. By > default it uses GLOBAL_RE

RE: Reusability of QueryParser

2014-01-06 Thread Uwe Schindler
Hi, The problem is your Analyzer: As it returns different components for each field name, the constructor must pass the per field reuse strategy. By default it uses GLOBAL_REUSE_STRATEGY (the no-arg constructor does this). So create the Analyzer with PER_FIELD_REUSE_STRATEGY explicitely passed

Reusability of QueryParser

2014-01-06 Thread Mindaugas Žakšauskas
Hi, I was wondering if a QueryParser can be reused (Lucene ver: 4.6.0)? >From my experiment it looks like it retains some state from the previous query. Isolated example: public class Test { public static void main(String[] args) throws ParseException, IOException { MyAnalyzer analy