Lucene Span Queries - An Example
A walkthrough of a Lucene span-based search, using a combination of SpanNot, SpanOr and SpanNear queries. We also take a quick look at an alternative approach using Lucene’s Standard Query Parser with interval functions.