You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/12/20 20:17:41 UTC

[Solr Wiki] Update of "SchemaXml" by DavidSmiley

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SchemaXml" page has been changed by DavidSmiley:
http://wiki.apache.org/solr/SchemaXml?action=diff&rev1=53&rev2=54

Comment:
Advised against specifying defaultSearchFiled and defaultOperator in lieu of request handler or LocalParams

  Note that if you have enabled the QueryElevationComponent in solrconfig.xml it requires the schema to have a uniqueKey of type StrField.  It cannot be, for example, an int field.
  
  === The Default Search Field ===
- The `<defaultSearchField>` is used by Solr when parsing queries to identify which field name should be searched in queries where an explicit field name has not been used.
+ The `<defaultSearchField>` is used by Solr when parsing queries to identify which field name should be searched in queries where an explicit field name has not been used.  It is preferable to not use or rely on this setting; instead the request handler or query LocalParams for a search should specify the default field(s) to search on.  This setting here can be omitted and it is being considered for deprecation.
  
  
  
  === Default query parser operator ===
- The default operator used by Solr's query parser ([[http://lucene.apache.org/solr/docs/api/org/apache/solr/search/SolrQueryParser.html|SolrQueryParser]]) can be configured with <solrQueryParser defaultOperator="AND|OR"/>.  The default operator is "OR" if unspecified.
+ The default operator used by Solr's query parser ([[http://lucene.apache.org/solr/docs/api/org/apache/solr/search/SolrQueryParser.html|SolrQueryParser]]) can be configured with <solrQueryParser defaultOperator="AND|OR"/>.  The default operator is "OR" if unspecified.  It is preferable to not use or rely on this setting; instead the request handler or query LocalParams should specify the default operator.  This setting here can be omitted and it is being considered for deprecation.
+ 
  
  <<Anchor(copyField)>>