Re: Convert Complex Lucene Query to SolrQuery

2013-01-09 Thread Otis Gospodnetic
Aha. I think the problem here is the assumption that .toString() on Lucene query will give you a string that can then be re-parsed in the proper query and that is currently not the case. But if you start with the raw query like the one you would use with the Lucene QP, you should be fine. Can yo

Re: Convert Complex Lucene Query to SolrQuery

2013-01-09 Thread Jagdish Nomula
Thanks Otis and Jack for your responses. We are trying to use embeddedsolr server with a solr query as follows: EmbeddedSolrServer server = new EmbeddedSolrServer(coreContainer, ""); SolrQuery solrQuery = new SolrQuery(luceneQuery.toString()); // Here luceneQuery is a dismax query with a

Re: Convert Complex Lucene Query to SolrQuery

2013-01-08 Thread Jack Krupansky
How complex? Does it use any of the more advanced Query Types or detailed options that are not supported in the Solr query syntax? What specific problems did you have. -- Jack Krupansky -Original Message- From: Jagdish Nomula Sent: Tuesday, January 08, 2013 9:13 PM To: solr-user@luce

Re: Convert Complex Lucene Query to SolrQuery

2013-01-08 Thread Otis Gospodnetic
Hi Jagdish, So when you use the Lucene parser through Solr you get a different query than if you use Lucene's QP directly? Maybe you can share your raw/English query? Otis Solr & ElasticSearch Support http://sematext.com/ On Jan 8, 2013 9:14 PM, "Jagdish Nomula" wrote: > Hello Solr Users, > >