Setting "df" (default field) from solrj?

2012-08-08 Thread homernabble
I see in Solr 4 the defaultSearchField tag in schema.xml has been deprecated. I was looking in the Solrj API and I don't see a method for setting the default field on a SolrQuery object. This is basically what the code looks like now (stripped down): solrQuery = SolrQuery.new() solrQuery.setQue

Re: Setting "df" (default field) from solrj?

2012-08-08 Thread homernabble
Perfect. Thanks! Jack Krupansky-2 wrote > > You should simply set the default value for the "df" request parameter in > your Solr request handlers in solrconfig.xml. It is set to "text" out of > the > box, but you can set it to your desired field. > > If you still want to set/override "df" f