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

can you elaborate a bit more on what it is you are tyring to do?  ... ie: 
show more of hte unit test you are writing ... what exactly are you doing 
with the SolrQuery and/or ModifiableSolrParams objects once you construct 
them?

SolrQuery is a SolrJ API object for executing queries against either a 
remote or embedded instance of Solr; SolrParams is an API used internally 
in Solr when executing requests -- very different purposes.


: 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();
:         solrQuery.setQuery(queryString);
: 
: ... 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?
: 
: Thanks!
: Reuben
: 



-Hoss

Reply via email to