Re: Search for a token appearing after another

2013-07-09 Thread Alan Woodward
> Alan Woodward >> www.flax.co.uk >> >> >> On 9 Jul 2013, at 07:55, Sébastien Druon wrote: >> >>> Hello, >>> >>> I am looking for a way to search for a token appearing after another and >>> retrieve tehir positions. >>>

Re: Search for a token appearing after another

2013-07-09 Thread Sébastien Druon
Woodward > www.flax.co.uk > > > On 9 Jul 2013, at 07:55, Sébastien Druon wrote: > > > Hello, > > > > I am looking for a way to search for a token appearing after another and > > retrieve tehir positions. > > > > ex: T1 (...)* T2 > > > > I know the

Re: Search for a token appearing after another

2013-07-09 Thread Alan Woodward
You can use Integer.MAX_VALUE as the slop parameter. Alan Woodward www.flax.co.uk On 9 Jul 2013, at 07:55, Sébastien Druon wrote: > Hello, > > I am looking for a way to search for a token appearing after another and > retrieve tehir positions. > > ex: T1 (...)*

Search for a token appearing after another

2013-07-08 Thread Sébastien Druon
Hello, I am looking for a way to search for a token appearing after another and retrieve tehir positions. ex: T1 (...)* T2 I know the SpanTermQuery is doing similar when using the slop parameter, but I do not want to limit the distance between T1 and T2. Does anybody have an idea how to solve