lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie Johnson <jej2...@gmail.com>
Subject Re: Store a query in a database for later use
Date Thu, 17 May 2012 20:23:49 GMT
I think you want to have a look at the QueryParser classes.  Not sure
which you're using to start with but probably the default QueryParser
should suffice.

On Thu, May 17, 2012 at 3:53 PM, Stefan Undorf <google@suncom.de> wrote:
> Hi,
>
> I want to store a query for later use in a database, like:
>
> 1. queryToPersist = booleanQuery.toString();
> 2. store it to the db, go fishing, retrieve it
> 3. Query query = Query.parseString(queryToPersist)
>
> The method Query.parseString does not exist. Is there a way to do something similar?
>

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