I doubt that this is a worthwhile place to spend your time. You're
introducing possibilities for error and saving very, very, very little time
I suspect. I'd only try this if you have *proof* that constructing the query
takes enough time to matter. Have you timed query construction to see if
it's actually a bottleneck?

Best
Erick

On 2/2/07, Ng Vinny <[EMAIL PROTECTED]> wrote:

Dear List,

After processing some text, I have constructed a Boolean query , e.g.
"title:Lucene author:Otis", and I would like to store the query to reuse
when the same piece of text is issued (to avoid re-processing of the same
text).

I thought of storing the string resulted from Query.toString() method, but
there is no constructor of Query to build a new Query from the string I
retrieve from the datastore.

Please shed some light on this.

Thanks a lot.

Reply via email to