[ https://issues.apache.org/jira/browse/SOLR-2724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088923#comment-13088923 ]
David Smiley commented on SOLR-2724: ------------------------------------ I like "stop advertising them in the examples". I'd rather people do things the preferred way (df & q.op params) and not see these in the schema and think, "oh, I'll set them here". RE Similary: Ok; I didn't know they were per-field in trunk. It makes sense to keep them here then. If I make a patch complying with how you want this to work, will you commit it? > Deprecate defaultSearchField and defaultOperator defined in schema.xml > ---------------------------------------------------------------------- > > Key: SOLR-2724 > URL: https://issues.apache.org/jira/browse/SOLR-2724 > Project: Solr > Issue Type: Improvement > Components: Schema and Analysis, search > Reporter: David Smiley > Assignee: David Smiley > Priority: Minor > Fix For: 3.4, 4.0 > > Original Estimate: 2h > Remaining Estimate: 2h > > I've always been surprised to see the <defaultSearchField> element and > <solrQueryParser defaultOperator="OR"/> defined in the schema.xml file since > the first time I saw them. They just seem out of place to me since they are > more query parser related than schema related. But not only are they > misplaced, I feel they shouldn't exist. For query parsers, we already have a > "df" parameter that works just fine, and explicit field references. And the > default lucene query operator should stay at OR -- if a particular query > wants different behavior then use q.op or simply use "OR". > <similarity> Seems like something better placed in solrconfig.xml than in the > schema. > In my opinion, defaultSearchField and defaultOperator configuration elements > should be deprecated in Solr 3.x and removed in Solr 4. And <similarity> > should move to solrconfig.xml. I am willing to do it, provided there is > consensus on it of course. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org