On Mon, May 25, 2009 at 3:09 AM, Reza Safari <r.saf...@lukkien.com> wrote:
> One little question: is there any utility that can convert core Lucene query
> (any type e.q. TermQuery etc) to solr query? It's is really a lot of work
> for me to rewrite existing code.

Solr internal APIs take Lucene query types.
I guess perhaps you mean transforming a Lucene query into a parameter
for the external HTTP API?

new TermQuery(new Term("foo","bar"))
  would be transformed to
q=foo:bar

-Yonik
http://www.lucidimagination.com

Reply via email to