lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan McKinley <ryan...@gmail.com>
Subject Re: passing query string into SOLR
Date Fri, 07 Mar 2008 05:27:33 GMT
Paul Treszczotko wrote:
> What I'm trying to do is to pass a query string as such:
> ?q=searchTerm&facet.field=navigator&facet=true&fq=navigator:"some text" right
into SOLR without splitting each parameter from the query string and setting it with setParam()
or setQuery().
> And the questions I have:
> - is there a method to pass the QS from the above into SOLR and have it set all the params
automatically
> - if there is, is this the best way going about it?
> 

Nope, the solrj API requires a SolrParams object to represent the 
parameters.  There is no way (simple/clean) way to bypass that and 
directly use a query string.

ryan

Mime
View raw message