lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel de Souza Teixeira" <>
Subject Transform a sentences in Terms
Date Thu, 17 Jun 2004 15:25:30 GMT
Hi folks!

I needed something like this...
I have a sentence: "I love my dog".
Someone has a code that I can transform this sentence in Terms to add in a
PhraseQuery ?

PhraseQuery pq = new PhraseQuery();

while ( <sentence doesn't ended> )
   query.add(new Term("field", text));



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message