Re: Lucene Query reuse

2008-09-05 Thread Chris Hostetter
: I was was just a bit surprised to see that I had to go from objects to a : string-rep. Like i said you don't *have* do ... if you use Solr in an embeeded context, or change your code to be a Solr plugin then you you can use Query obecjts as is ... but when you send the data over the wire it ha

Re: Lucene Query reuse

2008-09-05 Thread Tobias Hill
Hoss, thanks for your feedback. I was was just a bit surprised to see that I had to go from objects to a string-rep. I did indeed also find out that some information was lost in that process, for instance setMinimumNumberShouldMatch on BooleanQuery. Also, some empty clauses (which was silently ac

Re: Lucene Query reuse

2008-08-29 Thread Chris Hostetter
: Rephrasing: I do realize that I would be able to "flatten" my Lucene : Query-object to its String-representation and possibly use that as a query : input to SolrQuery. But would that work for all queries ... or is the Lucene : object-representation more expressive (i.e. richer) than the string-r

Re: Lucene Query reuse

2008-08-29 Thread Tobias Hill
Rephrasing: I do realize that I would be able to "flatten" my Lucene Query-object to its String-representation and possibly use that as a query input to SolrQuery. But would that work for all queries ... or is the Lucene object-representation more expressive (i.e. richer) than the string-rep? Mayb

Lucene Query reuse

2008-08-29 Thread Tobias Hill
Hi, I am process of moving from HibernateSearch (backed by Lucene) to Solr (ditto) in our application- In HibernateSearch I use the Query-class provided by Lucene to build a rather intricate query programatically. I would like to make my transition into Solr + Solrj as smooth as possible and hen