lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reuben Firmin <>
Subject Guide to using SolrQuery object
Date Tue, 14 Jul 2009 14:27:50 GMT

It seems that SolrQuery is a better API than the basic ModifiableSolrParams,
but I can't make it work.

Constructing params with:
final ModifiableSolrParams params = new ModifiableSolrParams();
params.set("q", queryString);

...results in a successful search.

Constructing SolrQuery with:
        final SolrQuery solrQuery = new SolrQuery();

... doesn't (with the same unit test driving the search). I'm sure I'm
missing some basic option, but the javadoc is a little terse, and I don't
see what I'm missing. Ideas?

Also, are there enums or constants around the various param names that can
be passed in, or do people tend to define those themselves?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message