You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by WATHELET Thomas <TW...@europarl.eu.int> on 2006/03/22 12:24:30 UTC

Lucene 1.9.1 Query

How to replace this Expression Query query =
QueryParser.parse(this.searchvalue, "text", new StandardAnalyzer()); in
Lucene 1.9.1 because the method parse is deprecated?


RE: Lucene 1.9.1 Query

Posted by Koji Sekiguchi <ko...@m4.dion.ne.jp>.
Please use an instance method version:

QueryParser pq = new QueryParser( "text", new StandardAnalyzer() );
Query query = qp.parse( searchvalue );

regards,

Koji

> -----Original Message-----
> From: WATHELET Thomas [mailto:TWathelet@europarl.eu.int]
> Sent: Wednesday, March 22, 2006 8:25 PM
> To: java-user@lucene.apache.org
> Subject: Lucene 1.9.1 Query
> 
> 
> How to replace this Expression Query query =
> QueryParser.parse(this.searchvalue, "text", new StandardAnalyzer()); in
> Lucene 1.9.1 because the method parse is deprecated?
> 
> 


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