Edwin,

Use copyfield to copy all fields to one field, which could be your default field. This is a common pattern in Solr installations.

cheers -- Rick

https://cwiki.apache.org/confluence/display/solr/Copying+Fields
https://drupal.stackexchange.com/questions/54538/search-api-solr-how-to-index-fulltext-fields-with-and-without-stemming

On 2017-05-25 02:45 AM, Zheng Lin Edwin Yeo wrote:
Hi,
I'm using Solr 6.5.1.

Would like to check, is it possible to set a configuration in
solrconfig.xml whereby the search will go through all the fields in the
collections?

Currently, I am defining the fields to be search under the "df" setting,
but unlike "fl", I could not set it to the value "*". The only way which I
can think of currently is to list all the fields under the "df" setting.
However, this doesn't seems like a very good way, so I'm checking if there
are better methods.

     <requestHandler name="/select" startup="lazy"
enable="${solr.clustering.enabled:true}" class="solr.SearchHandler">
     <lst name="defaults">
       <str name="echoParams">none</str>
       <int name="rows">1000</int>
  <str name="wt">json</str>
        <str name="indent">true</str>
   <str name="df">id,content</str>
   <str name="fl">*</str>

Reply via email to