SolrQueryRequest.getParam is deprecated, what to use?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SolrQueryRequest.getParam is deprecated, what to use?

Bertrand Delacretaz
The code says

  @Deprecated
  public String getParam(String name);

But doesn't indicate what the replacement is, what should I use?

-Bertrand
Reply | Threaded
Open this post in threaded view
|

Re: SolrQueryRequest.getParam is deprecated, what to use?

Yonik Seeley-2
For overridable defaults, per-field params, etc, a new SolrParams
class was introduced:

public interface SolrQueryRequest {
  public SolrParams getParams();
  [...]
}


-Yonik