SpanNearQuery -- bug or feature?

2014-01-10 Thread Piotr Pęzik
Hi, could anyone please tell me if the following behavior is expected in Lucene 4.5? Let's assume we have an index with two documents: 1. contents: "test bunga bunga test" 2. contents: "test bunga test" We run two SpanNearQueries against this index: 1. spanNear([contents:bunga, contents:bun

Help using ShingleFilter/NGramTokenizer: Could not find implementing class for org.apache.lucene.analysis.tokenattributes.OffsetAttribute

2014-01-10 Thread Russell Jurney
I am having trouble using ShingleFilter/NGramTokenizer. I can't figure out what I am supposed to do in response to the error 'Could not find implementing class for org.apache.lucene.analysis.tokenattributes.OffsetAttribute'. Can anyone lend a hand? The (brief) code is here: https://github.com/rjur

Lucene Token Attributes internal data structure

2014-01-10 Thread pravesh
After going through all lucene api docs, im still confused over one thing: How does a TokenStream/AttributeSource actually stores the attributes. Does it maintains a list of all attributes, like: List termAttList; List posnAttList; Since, it is mentioned all over the API javado