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

TermVectors and Attributes in Lucene 4.0

2012-12-17 Thread Piotr Pęzik
Hi, I've been trying to enumerate over all terms in all documents in a Lucene 4.0 index in order to retrieve their attributes (payloads, positions etc.). I have an index with documents containing stored, tokenized fields with term vectors, offsets and payloads. Below is what I have tried s