Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General
Adding a PhraseQuery to a PhraseQuery
 

Index | Next | Previous | View Flat


rahman.mukras at googlemail

May 21, 2007, 8:39 AM


Views: 1337
Permalink
Adding a PhraseQuery to a PhraseQuery

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(subPQ);
mainPQ.add(new Term("contents","Jean"));
mainPQ.setSlop(20);
-------

Could someone please help
Rahman.

Subject User Time
Adding a PhraseQuery to a PhraseQuery rahman.mukras at googlemail May 21, 2007, 8:39 AM
    Re: Adding a PhraseQuery to a PhraseQuery erik at ehatchersolutions May 21, 2007, 9:46 AM
    Re: Adding a PhraseQuery to a PhraseQuery rahman.mukras at googlemail May 23, 2007, 2:33 AM
    Re: Adding a PhraseQuery to a PhraseQuery erik at ehatchersolutions May 23, 2007, 3:42 AM
    Re: Adding a PhraseQuery to a PhraseQuery rahman.mukras at googlemail May 23, 2007, 4:26 AM
    Re: Adding a PhraseQuery to a PhraseQuery rahman.mukras at googlemail May 23, 2007, 6:05 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.