lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Williams <william...@gmail.com>
Subject term position in phrase query using queryparser
Date Wed, 25 Feb 2009 20:52:13 GMT
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 at the same term position using the
queryparser syntax.

Thanks,
--tim

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message