> So here's what happens if I pass in a
> URL with parameters, SolrJ chokes:
> 
> Exception in thread "main" java.lang.RuntimeException:
> Invalid base
> url for solrj.  The base URL must not contain
> parameters:
> http://locahost:8080/solr/main/select?q=video&qt=dismax

You can't pass url with parameters to CommonsHttpSolrServer constructor.
You need to create a SolrQuery representing your parameters and vaules.
Your url can be translated into something like:

server = new CommonsHttpSolrServer("http://locahost:8080/solr/main/";);

final SolrQuery query = new SolrQuery();
query.setQueryType("dismax");
query.setQuery("video");

final QueryResponse rsp = server.query(query);




Reply via email to