lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel de Souza Teixeira" <dan...@ccuec.unicamp.br>
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));


Regards!

-- 
Daniel

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


Mime
View raw message