Lucene Wildcard for zero or one character

2014-03-25 Thread Sven Teichmann
Hello, does Lucene provide a zero or one character wildcard (like ? in Perl RegEx)? Example of what I mean: "house%" finds "house" and "houses" As far as I know in Lucene the ? wildcard is for exactly one character, but I need a zero or one character wild

Compare scores from multiple indices

2014-04-16 Thread Sven Teichmann
score 8. If I am not wrong, the above would mean that the document from B with score 8 can be a better match than the document from A with score 10. Is that right? If so, what can I do to make the scores from multiple indices comparable? Best regards, Sven Teic

Best practice to map Lucene docids to real ids

2014-05-06 Thread Sven Teichmann
This works as long as no document is deleted and the index optimized after it. Is this a good solution or should we use Fields or DocValues for this? What is the fastest solution? Regards, Sven Teichmann - To unsubscribe, e-

Re: Best practice to map Lucene docids to real ids

2014-05-12 Thread Sven Teichmann
field. If the default DocValuesFormat isn't fast enough, you can always switch to e.g. DirectDocValuesFormat (uses lots of RAM but it just an array lookup). Mike McCandless http://blog.mikemccandless.com On Tue, May 6, 2014 at 4:33 AM, Sven Teichmann wrote: Hi, what is the best way t

Re: Best practice to map Lucene docids to real ids

2014-05-18 Thread Sven Teichmann
Thank you, that helped me a lot. Sven Teichmann __ Software for Intellectual Property GmbH Gewerbering 14a 83607 Holzkirchen (Germany) Phone: +49 (0)8024 46699-00 Fax:+49 (0)8024 46699-02 E-Mail: s.teichm...@s4ip.de Local Court of Munich

Abort a search

2014-10-13 Thread Sven-Teichmann
rs in this case (we are using MMapDirectory)? Is there a way to cleanly abort a running search? Sven Teichmann

IndexFormatTooOldException while upgrading Lucene 4.10 index to 5.2

2015-06-16 Thread Sven Teichmann
Today I tried to upgrade a Lucene 4.10 index to 5.2 using the IndexUpgrader. This throws the following exception: Exception in thread "Lucene Merge Thread #0" org.apache.lucene.index.MergePolicy$MergeException: org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (re