lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cynthia Park <bodymo...@gmail.com>
Subject SolrJ: SolrQuery and ModifiableSolrParams
Date Tue, 18 Mar 2014 13:48:32 GMT
Hello,

What is the difference between setting parameters via SolrQuery vs
ModifiableSolrParams? If there is a difference,  is there a preferred
choice?  I'm using Solr 4.6.1.

SolrQuery query = new SolrQuery();
query.setParam("wt", "json");

ModifiableSolrParams params = new ModifiableSolrParams();

params.set("wt", "json");

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