lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Am I correctly parsing the strings ? Terms or Phrases ?
Date Mon, 21 Mar 2011 21:15:47 GMT
> Date: Monday, March 21, 2011, 7:39 PM
> One more thing: It is actually not
> clear to me how to use PhraseQuery... I
> thought I can just pass a phrase to it, but I see only
> add(Term) method...
> should I parse the string by myself to single terms ?

Yes, you need to do it. 

QueryParser transforms String into Query.

http://lucene.apache.org/java/2_9_3/api/core/org/apache/lucene/queryParser/QueryParser.html



      

---------------------------------------------------------------------
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