Hi;

I use Lucene 4.6.1 for my project. I can analyze my documents with my
custom analyzer. I want that:: if a token is matched a starts with regex
query I want to get previous 10 tokens and after 10 tokens (totally 20
tokens - if exists) and also current token. I don't want to do it analysis
process as usual. I want to index them and I want to make a search on that
index and I want to retrieve that 21 stored tokens. How can I achieve it
with Lucene.

Thanks;
Furkan KAMACI

Reply via email to