lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tate Avery" <tate.av...@nstein.com>
Subject RE: Displaying Query
Date Wed, 17 Dec 2003 15:48:27 GMT

Try:

String larequet = query.toString("default field name here");

Example:

String larequet = query.toString("texte");

That should give string version of query.


-----Original Message-----
From: Gayo Diallo [mailto:gayo.diallo@imag.fr]
Sent: Wednesday, December 17, 2003 10:46 AM
To: lucene-user@jakarta.apache.org
Subject: Displaying Query


Hi all,

I use this code
Query query = QueryParser.parse(q, "Contenu", new Analyseur());

String larequet = query.toString();

System.out.println("la requête à traiter est: " + larequet);

And I have as this line displayed "org.apache.lucene.search.PhraseQuery@3ee284"

I don't know Why I have't my query string displayed correctly. May someone 
help me.

Best regards,

Gayo

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