Issue with re-opening IndexWriter

2017-03-13 Thread Vitaly Stroutchkov
Hello, We are using Lucene 6.4.2 with a file-based index, Oracle JDK 1.8.0_121, Windows 10. We found that the following steps generate unrecoverable error (we have to restart our JVM in order to resume normal work which is not acceptable): 1. Create an index directory, open IndexWriter, gene

Re: Best way to do time sort

2017-03-13 Thread Michael McCandless
Doc values (your option 3) is the right way to sort by time. Index it with whatever precision you need, e.g. msec since epoch as a long NumericDocValuesField. Mike McCandless http://blog.mikemccandless.com On Mon, Mar 13, 2017 at 9:53 AM, aravinth thangasami < aravinththangas...@gmail.com> wrot

Best way to do time sort

2017-03-13 Thread aravinth thangasami
I am indexing a time field. I need to get the latest results and my index contains millions of documents with frequent updates almost 90% of the index updates. option 1: To index the time as string option 2: To index the time field as Number option 3: To index the time field as DocValue Wh

Re: A flush exception in lucene 4.10.0

2017-03-13 Thread Yonghui Zhao
The exception in my case is related to one index field. The field is string type, indexed, tokenized and stored, index option is docsAndFreqsAndPositionsAndOffsets. Each doc may index this field more than one times. For example doc 0 may index it 3 times, 1st value is "A B C", 2nd is "D E F",3rd