Re: term position in phrase query using queryparser

2009-03-02 Thread Matt Ronge
On Feb 25, 2009, at 2:52 PM, Tim Williams wrote: Is there a syntax to set the term position in a query built with queryparser? For example, I would like something like: PhraseQuery q = new PhraseQuery(); q.add(t1, 0); q.add(t2, 0); q.setSlop(0); As I understand it, the slop defaults to 0, bu

term position in phrase query using queryparser

2009-02-25 Thread Tim Williams
Is there a syntax to set the term position in a query built with queryparser? For example, I would like something like: PhraseQuery q = new PhraseQuery(); q.add(t1, 0); q.add(t2, 0); q.setSlop(0); As I understand it, the slop defaults to 0, but I don't know how to search for basically two tokens