Unable to retrieve TermVectorOffsets using Lucene 6

2016-12-02 Thread Szymon Sutek
Hello, I am trying to index a txt file and then retrieve it's terms offset positions.(if it occured more than once while indexing) I present most important parts of the code: 1)StandardAnalyzer used. 2)FieldType used while indexing. FieldType fieldType = new FieldType(); fieldType.setTok

Unable to retrieve OffsetTermVector for given term using Apache Lucene 6

2016-12-02 Thread Szymon Sutek
Hello, I am trying to index a txt file and then retrieve it's terms offset positions. Unfortunately I can only get only one offset information per term, not all of it(if it occured more than once while indexing) Here are most important parts of the code: FieldType used while indexing. private Fie

Re: Unable to retrieve OffsetTermVector for given term using Apache Lucene 6

2016-12-02 Thread Szymon Sutek
I made a mistake in last part of code. It should be: while((byteRef = iterator.next()) != null) { String term = byteRef.utf8ToString(); //Here I would like to retrieve all offset postions for given term variable } 2016-12-02 10:08 GMT+01:00 Szymon Sutek : > Hello, I am trying to in