lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Durbin <>
Subject Compatibility between Lucene "Query" and Solr "SolrQuery" in classes SolrJ
Date Tue, 26 Feb 2013 16:30:06 GMT
I'm exploring a switch from Lucene to Solr in a Java EE webapp.

We have a method called getHitIds() that accepts as a parameter a
Lucene "Query" object:

My IDE is telling me I can't simply pass it a "SolrQuery" object instead:

... so I'm finding myself significantly rewriting and changing how
search works just to get something working in Solr:

change getHitIds() param from Query to SolrQuery

I'd rather just keep the existing business logic in place, if
possible. That is to say, I'd like getHitIds() to return the same list
of IDs, but with Solr instead of Lucene.

If someone could point me in the right direction, I would really appreciate it.




View raw message