Ahmet,  Thanks, though that isn't quite what I was going for, and it's
resolved besides...

On Mon, Feb 8, 2010 at 10:24 AM, Ahmet Arslan <iori...@yahoo.com> wrote:
>> 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