Re: Store a query in a database for later use

2012-05-18 Thread Ahmet Arslan
> 2. toString() doesn't always generate a query that the > QueryParser can parse. I remember similar discussion, I think Xml-Query-Parser is more suitable for this use case. http://www.lucidimagination.com/blog/2009/02/22/exploring-query-parsers/ --

Re: Store a query in a database for later use

2012-05-17 Thread Trejkaz
On Fri, May 18, 2012 at 6:23 AM, Jamie Johnson wrote: > 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. There are (at least) two catches though: 1. The semantics of a QueryParser might

Re: Store a query in a database for later use

2012-05-17 Thread Jamie Johnson
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 wrote: > Hi, > > I want to store a query for later use in a database, like: > > 1. queryToPers

Store a query in a database for later use

2012-05-17 Thread Stefan Undorf
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?