lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahman Mukras" <>
Subject Adding a PhraseQuery to a PhraseQuery
Date Mon, 21 May 2007 15:39:09 GMT
Hi all, I would like to add a PhraseQuery to a PhraseQuery so that I can be
able to allow slop between phrases and terms. Something like:

PhraseQuery mainPQ = new PhraseQuery();
PhraseQuery subPQ   = new PhraseQuery();

subPQ.add(new Term("contents","great"));
subPQ.add(new Term("contents","actor"));

mainPQ.add(new Term("contents","Jean"));

Could someone please help

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message