mirror of https://github.com/apache/lucene.git
SOLR-7041: Remove a lot of defaultOperator and defaultSearchField from test configs (still more work to do)
This commit is contained in:
parent
e96dc4f21c
commit
61f64829d8
|
@ -337,9 +337,6 @@
|
||||||
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
||||||
<defaultSearchField>text</defaultSearchField>
|
<defaultSearchField>text</defaultSearchField>
|
||||||
|
|
||||||
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
|
|
||||||
<!-- copyField commands copy one field to another at the time a document
|
<!-- copyField commands copy one field to another at the time a document
|
||||||
is added to the index. It's used either to index the same field differently,
|
is added to the index. It's used either to index the same field differently,
|
||||||
or to add multiple fields to the same field for easier/faster searching. -->
|
or to add multiple fields to the same field for easier/faster searching. -->
|
||||||
|
|
|
@ -205,8 +205,4 @@
|
||||||
|
|
||||||
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
||||||
<defaultSearchField>text</defaultSearchField>
|
<defaultSearchField>text</defaultSearchField>
|
||||||
|
|
||||||
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -68,5 +68,4 @@
|
||||||
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
<defaultSearchField>desc</defaultSearchField>
|
<defaultSearchField>desc</defaultSearchField>
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -313,8 +313,4 @@
|
||||||
|
|
||||||
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
||||||
<defaultSearchField>desc</defaultSearchField>
|
<defaultSearchField>desc</defaultSearchField>
|
||||||
|
|
||||||
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -584,9 +584,6 @@
|
||||||
-->
|
-->
|
||||||
<defaultSearchField>text</defaultSearchField>
|
<defaultSearchField>text</defaultSearchField>
|
||||||
|
|
||||||
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
||||||
<solrQueryParser defaultOperator="OR" />
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
copyField commands copy one field to another at the time a document
|
copyField commands copy one field to another at the time a document
|
||||||
is added to the index. It's used either to index the same field
|
is added to the index. It's used either to index the same field
|
||||||
|
|
|
@ -582,9 +582,6 @@
|
||||||
-->
|
-->
|
||||||
<defaultSearchField>text</defaultSearchField>
|
<defaultSearchField>text</defaultSearchField>
|
||||||
|
|
||||||
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
copyField commands copy one field to another at the time a document
|
copyField commands copy one field to another at the time a document
|
||||||
is added to the index. It's used either to index the same field
|
is added to the index. It's used either to index the same field
|
||||||
|
|
|
@ -25,7 +25,4 @@
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
<defaultSearchField>id</defaultSearchField>
|
||||||
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
||||||
|
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -27,6 +27,5 @@
|
||||||
<field name="direct1text" type="direct1" indexed="true" stored="true"/>
|
<field name="direct1text" type="direct1" indexed="true" stored="true"/>
|
||||||
<dynamicField name="*" type="direct1"/>
|
<dynamicField name="*" type="direct1"/>
|
||||||
|
|
||||||
<defaultSearchField>direct1text</defaultSearchField>
|
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
<dynamicField name="*_c" type="currency" indexed="true" stored="true" multiValued="true"/>
|
<dynamicField name="*_c" type="currency" indexed="true" stored="true" multiValued="true"/>
|
||||||
<!-- END BAD STUFF -->
|
<!-- END BAD STUFF -->
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/>
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/>
|
||||||
<field name="money" type="currency" indexed="true" stored="true"/>
|
<field name="money" type="currency" indexed="true" stored="true"/>
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/>
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/>
|
||||||
<field name="money" type="currency" indexed="true" stored="true"/>
|
<field name="money" type="currency" indexed="true" stored="true"/>
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/>
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/>
|
||||||
<field name="money" type="currency" indexed="true" stored="true"/>
|
<field name="money" type="currency" indexed="true" stored="true"/>
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/>
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/>
|
||||||
<field name="money" type="currency" indexed="true" stored="true"/>
|
<field name="money" type="currency" indexed="true" stored="true"/>
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
<field name="money" type="currency" indexed="true" stored="true" multiValued="true"/>
|
<field name="money" type="currency" indexed="true" stored="true" multiValued="true"/>
|
||||||
<!-- END BAD STUFF -->
|
<!-- END BAD STUFF -->
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
<dynamicField name="*_twice" type="string" indexed="true" stored="true"/>
|
<dynamicField name="*_twice" type="string" indexed="true" stored="true"/>
|
||||||
<!-- END BAD STUFF -->
|
<!-- END BAD STUFF -->
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
||||||
|
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
||||||
|
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
<dynamicField name="bad_*" type="string" default="BAD"/>
|
<dynamicField name="bad_*" type="string" default="BAD"/>
|
||||||
<!-- END BAD STUFF -->
|
<!-- END BAD STUFF -->
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
<dynamicField name="bad_*" type="string" required="true"/>
|
<dynamicField name="bad_*" type="string" required="true"/>
|
||||||
<!-- END BAD STUFF -->
|
<!-- END BAD STUFF -->
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
||||||
|
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
||||||
|
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
||||||
|
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
|
|
||||||
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
<dynamicField name="*_sS" type="string" indexed="false" stored="true"/>
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -38,6 +38,4 @@
|
||||||
|
|
||||||
<field name="sim1text" type="ft-overrides-default-sim" indexed="true" stored="true"/>
|
<field name="sim1text" type="ft-overrides-default-sim" indexed="true" stored="true"/>
|
||||||
|
|
||||||
<defaultSearchField>sim1text</defaultSearchField>
|
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -38,6 +38,4 @@
|
||||||
|
|
||||||
<field name="sim1text" type="ft-overrides-default-sim" indexed="true" stored="true"/>
|
<field name="sim1text" type="ft-overrides-default-sim" indexed="true" stored="true"/>
|
||||||
|
|
||||||
<defaultSearchField>sim1text</defaultSearchField>
|
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -31,6 +31,4 @@
|
||||||
<field name="sim1text" type="sim1" indexed="true" stored="true"/>
|
<field name="sim1text" type="sim1" indexed="true" stored="true"/>
|
||||||
<dynamicField name="*" type="sim1"/>
|
<dynamicField name="*" type="sim1"/>
|
||||||
|
|
||||||
<defaultSearchField>sim1text</defaultSearchField>
|
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
||||||
|
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
||||||
|
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -35,8 +35,7 @@
|
||||||
|
|
||||||
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
||||||
|
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -34,8 +34,7 @@
|
||||||
|
|
||||||
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
|
||||||
|
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
<copyField source="XXX" dest="id"/>
|
<copyField source="XXX" dest="id"/>
|
||||||
<!-- END BAD STUFF -->
|
<!-- END BAD STUFF -->
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
<field name="id" type="string" indexed="true" stored="true"/>
|
<field name="id" type="string" indexed="true" stored="true"/>
|
||||||
<!-- END BAD STUFF -->
|
<!-- END BAD STUFF -->
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
<field name="id" type="string" indexed="true" stored="true" default="XXX"/>
|
<field name="id" type="string" indexed="true" stored="true" default="XXX"/>
|
||||||
<!-- END BAD STUFF -->
|
<!-- END BAD STUFF -->
|
||||||
|
|
||||||
<defaultSearchField>id</defaultSearchField>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -38,7 +38,6 @@ Test for HighlighterMaxOffsetTest which requires the use of ReversedWildcardFilt
|
||||||
|
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
<defaultSearchField>content</defaultSearchField>
|
<defaultSearchField>content</defaultSearchField>
|
||||||
<solrQueryParser defaultOperator="AND"/>
|
|
||||||
|
|
||||||
|
|
||||||
<fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
|
<fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
<?xml version="1.0" ?>
|
|
||||||
<!--
|
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
|
||||||
this work for additional information regarding copyright ownership.
|
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
(the "License"); you may not use this file except in compliance with
|
|
||||||
the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<schema name="test" version="1.2">
|
|
||||||
|
|
||||||
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
|
|
||||||
|
|
||||||
<fieldType name="nametext" class="solr.TextField">
|
|
||||||
<analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
|
|
||||||
</fieldType>
|
|
||||||
|
|
||||||
<field name="id" type="int" indexed="true" stored="true" multiValued="false" required="true"/>
|
|
||||||
<field name="name" type="nametext" indexed="true" stored="true"/>
|
|
||||||
<field name="title" type="nametext" indexed="true" stored="true"/>
|
|
||||||
<field name="text" type="nametext" indexed="true" stored="true"/>
|
|
||||||
|
|
||||||
<defaultSearchField>text</defaultSearchField>
|
|
||||||
<solrQueryParser defaultOperator="AND"/>
|
|
||||||
<uniqueKey>id</uniqueKey>
|
|
||||||
|
|
||||||
</schema>
|
|
||||||
|
|
|
@ -692,7 +692,4 @@
|
||||||
<copyField source="title_*" dest="*_s"/>
|
<copyField source="title_*" dest="*_s"/>
|
||||||
<copyField source="title_*" dest="*_dest_sub_s"/>
|
<copyField source="title_*" dest="*_dest_sub_s"/>
|
||||||
<copyField source="title_*" dest="dest_sub_no_ast_s"/>
|
<copyField source="title_*" dest="dest_sub_no_ast_s"/>
|
||||||
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -661,7 +661,4 @@
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
<copyField source="*" dest="text"/>
|
<copyField source="*" dest="text"/>
|
||||||
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -74,8 +74,4 @@
|
||||||
|
|
||||||
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
||||||
<defaultSearchField>text</defaultSearchField>
|
<defaultSearchField>text</defaultSearchField>
|
||||||
|
|
||||||
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -284,21 +284,6 @@
|
||||||
-->
|
-->
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
<!-- DEPRECATED: The defaultSearchField is consulted by various query parsers when
|
|
||||||
parsing a query string that isn't explicit about the field. Machine (non-user)
|
|
||||||
generated queries are best made explicit, or they can use the "df" request parameter
|
|
||||||
which takes precedence over this.
|
|
||||||
Note: Un-commenting defaultSearchField will be insufficient if your request handler
|
|
||||||
in solrconfig.xml defines "df", which takes precedence. That would need to be removed.
|
|
||||||
<defaultSearchField>text</defaultSearchField> -->
|
|
||||||
|
|
||||||
<!-- DEPRECATED: The defaultOperator (AND|OR) is consulted by various query parsers
|
|
||||||
when parsing a query string to determine if a clause of the query should be marked as
|
|
||||||
required or optional, assuming the clause isn't already marked by some operator.
|
|
||||||
The default is OR, which is generally assumed so it is not a good idea to change it
|
|
||||||
globally here. The "q.op" request parameter takes precedence over this.
|
|
||||||
<solrQueryParser defaultOperator="OR"/> -->
|
|
||||||
|
|
||||||
<!-- copyField commands copy one field to another at the time a document
|
<!-- copyField commands copy one field to another at the time a document
|
||||||
is added to the index. It's used either to index the same field differently,
|
is added to the index. It's used either to index the same field differently,
|
||||||
or to add multiple fields to the same field for easier/faster searching. -->
|
or to add multiple fields to the same field for easier/faster searching. -->
|
||||||
|
|
|
@ -29,9 +29,6 @@ public class TestSchemaResource extends SolrRestletTestBase {
|
||||||
"count(/response/lst[@name='schema']/float[@name='version']) = 1",
|
"count(/response/lst[@name='schema']/float[@name='version']) = 1",
|
||||||
"/response/lst[@name='schema']/float[@name='version'][.='1.6']",
|
"/response/lst[@name='schema']/float[@name='version'][.='1.6']",
|
||||||
|
|
||||||
"count(/response/lst[@name='schema']/lst[@name='solrQueryParser']/str[@name='defaultOperator']) = 1",
|
|
||||||
"/response/lst[@name='schema']/lst[@name='solrQueryParser']/str[@name='defaultOperator'][.='OR']",
|
|
||||||
|
|
||||||
"count(/response/lst[@name='schema']/str[@name='uniqueKey']) = 1",
|
"count(/response/lst[@name='schema']/str[@name='uniqueKey']) = 1",
|
||||||
"/response/lst[@name='schema']/str[@name='uniqueKey'][.='id']",
|
"/response/lst[@name='schema']/str[@name='uniqueKey'][.='id']",
|
||||||
|
|
||||||
|
@ -113,7 +110,6 @@ public class TestSchemaResource extends SolrRestletTestBase {
|
||||||
|
|
||||||
"/schema/name=='test-rest'",
|
"/schema/name=='test-rest'",
|
||||||
"/schema/version==1.6",
|
"/schema/version==1.6",
|
||||||
"/schema/solrQueryParser/defaultOperator=='OR'",
|
|
||||||
"/schema/uniqueKey=='id'",
|
"/schema/uniqueKey=='id'",
|
||||||
"/schema/defaultSearchField=='text'",
|
"/schema/defaultSearchField=='text'",
|
||||||
|
|
||||||
|
@ -154,7 +150,6 @@ public class TestSchemaResource extends SolrRestletTestBase {
|
||||||
|
|
||||||
"/schema/@name = 'test-rest'",
|
"/schema/@name = 'test-rest'",
|
||||||
"/schema/@version = '1.6'",
|
"/schema/@version = '1.6'",
|
||||||
"/schema/solrQueryParser/@defaultOperator = 'OR'",
|
|
||||||
"/schema/uniqueKey = 'id'",
|
"/schema/uniqueKey = 'id'",
|
||||||
"/schema/defaultSearchField = 'text'",
|
"/schema/defaultSearchField = 'text'",
|
||||||
|
|
||||||
|
|
|
@ -250,21 +250,6 @@
|
||||||
-->
|
-->
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
<!-- DEPRECATED: The defaultSearchField is consulted by various query parsers when
|
|
||||||
parsing a query string that isn't explicit about the field. Machine (non-user)
|
|
||||||
generated queries are best made explicit, or they can use the "df" request parameter
|
|
||||||
which takes precedence over this.
|
|
||||||
Note: Un-commenting defaultSearchField will be insufficient if your request handler
|
|
||||||
in solrconfig.xml defines "df", which takes precedence. That would need to be removed.
|
|
||||||
<defaultSearchField>text</defaultSearchField> -->
|
|
||||||
|
|
||||||
<!-- DEPRECATED: The defaultOperator (AND|OR) is consulted by various query parsers
|
|
||||||
when parsing a query string to determine if a clause of the query should be marked as
|
|
||||||
required or optional, assuming the clause isn't already marked by some operator.
|
|
||||||
The default is OR, which is generally assumed so it is not a good idea to change it
|
|
||||||
globally here. The "q.op" request parameter takes precedence over this.
|
|
||||||
<solrQueryParser defaultOperator="OR"/> -->
|
|
||||||
|
|
||||||
<!-- copyField commands copy one field to another at the time a document
|
<!-- copyField commands copy one field to another at the time a document
|
||||||
is added to the index. It's used either to index the same field differently,
|
is added to the index. It's used either to index the same field differently,
|
||||||
or to add multiple fields to the same field for easier/faster searching. -->
|
or to add multiple fields to the same field for easier/faster searching. -->
|
||||||
|
@ -981,9 +966,8 @@
|
||||||
|
|
||||||
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
||||||
|
|
||||||
NOTE: If you want to optimize search for precision, use default operator AND in your query
|
NOTE: If you want to optimize search for precision, use default operator AND in your request
|
||||||
parser config with <solrQueryParser defaultOperator="AND"/> further down in this file. Use
|
handler config (q.op) Use OR if you would like to optimize for recall (default).
|
||||||
OR if you would like to optimize for recall (default).
|
|
||||||
-->
|
-->
|
||||||
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
|
|
|
@ -186,21 +186,6 @@
|
||||||
-->
|
-->
|
||||||
<uniqueKey>messageId</uniqueKey>
|
<uniqueKey>messageId</uniqueKey>
|
||||||
|
|
||||||
<!-- DEPRECATED: The defaultSearchField is consulted by various query parsers when
|
|
||||||
parsing a query string that isn't explicit about the field. Machine (non-user)
|
|
||||||
generated queries are best made explicit, or they can use the "df" request parameter
|
|
||||||
which takes precedence over this.
|
|
||||||
Note: Un-commenting defaultSearchField will be insufficient if your request handler
|
|
||||||
in solrconfig.xml defines "df", which takes precedence. That would need to be removed.
|
|
||||||
<defaultSearchField>text</defaultSearchField> -->
|
|
||||||
|
|
||||||
<!-- DEPRECATED: The defaultOperator (AND|OR) is consulted by various query parsers
|
|
||||||
when parsing a query string to determine if a clause of the query should be marked as
|
|
||||||
required or optional, assuming the clause isn't already marked by some operator.
|
|
||||||
The default is OR, which is generally assumed so it is not a good idea to change it
|
|
||||||
globally here. The "q.op" request parameter takes precedence over this.
|
|
||||||
<solrQueryParser defaultOperator="OR"/> -->
|
|
||||||
|
|
||||||
<!-- copyField commands copy one field to another at the time a document
|
<!-- copyField commands copy one field to another at the time a document
|
||||||
is added to the index. It's used either to index the same field differently,
|
is added to the index. It's used either to index the same field differently,
|
||||||
or to add multiple fields to the same field for easier/faster searching. -->
|
or to add multiple fields to the same field for easier/faster searching. -->
|
||||||
|
@ -901,9 +886,8 @@
|
||||||
|
|
||||||
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
||||||
|
|
||||||
NOTE: If you want to optimize search for precision, use default operator AND in your query
|
NOTE: If you want to optimize search for precision, use default operator AND in your request
|
||||||
parser config with <solrQueryParser defaultOperator="AND"/> further down in this file. Use
|
handler config (q.op) Use OR if you would like to optimize for recall (default).
|
||||||
OR if you would like to optimize for recall (default).
|
|
||||||
-->
|
-->
|
||||||
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
|
|
|
@ -250,21 +250,6 @@
|
||||||
-->
|
-->
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
<!-- DEPRECATED: The defaultSearchField is consulted by various query parsers when
|
|
||||||
parsing a query string that isn't explicit about the field. Machine (non-user)
|
|
||||||
generated queries are best made explicit, or they can use the "df" request parameter
|
|
||||||
which takes precedence over this.
|
|
||||||
Note: Un-commenting defaultSearchField will be insufficient if your request handler
|
|
||||||
in solrconfig.xml defines "df", which takes precedence. That would need to be removed.
|
|
||||||
<defaultSearchField>text</defaultSearchField> -->
|
|
||||||
|
|
||||||
<!-- DEPRECATED: The defaultOperator (AND|OR) is consulted by various query parsers
|
|
||||||
when parsing a query string to determine if a clause of the query should be marked as
|
|
||||||
required or optional, assuming the clause isn't already marked by some operator.
|
|
||||||
The default is OR, which is generally assumed so it is not a good idea to change it
|
|
||||||
globally here. The "q.op" request parameter takes precedence over this.
|
|
||||||
<solrQueryParser defaultOperator="OR"/> -->
|
|
||||||
|
|
||||||
<!-- copyField commands copy one field to another at the time a document
|
<!-- copyField commands copy one field to another at the time a document
|
||||||
is added to the index. It's used either to index the same field differently,
|
is added to the index. It's used either to index the same field differently,
|
||||||
or to add multiple fields to the same field for easier/faster searching. -->
|
or to add multiple fields to the same field for easier/faster searching. -->
|
||||||
|
@ -981,9 +966,8 @@
|
||||||
|
|
||||||
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
||||||
|
|
||||||
NOTE: If you want to optimize search for precision, use default operator AND in your query
|
NOTE: If you want to optimize search for precision, use default operator AND in your request
|
||||||
parser config with <solrQueryParser defaultOperator="AND"/> further down in this file. Use
|
handler config (q.op) Use OR if you would like to optimize for recall (default).
|
||||||
OR if you would like to optimize for recall (default).
|
|
||||||
-->
|
-->
|
||||||
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
|
|
|
@ -874,9 +874,8 @@
|
||||||
|
|
||||||
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
||||||
|
|
||||||
NOTE: If you want to optimize search for precision, use default operator AND in your query
|
NOTE: If you want to optimize search for precision, use default operator AND in your request
|
||||||
parser config with <solrQueryParser defaultOperator="AND"/> further down in this file. Use
|
handler config (q.op) Use OR if you would like to optimize for recall (default).
|
||||||
OR if you would like to optimize for recall (default).
|
|
||||||
-->
|
-->
|
||||||
<dynamicField name="*_txt_ja" type="text_ja" indexed="true" stored="true"/>
|
<dynamicField name="*_txt_ja" type="text_ja" indexed="true" stored="true"/>
|
||||||
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
||||||
|
|
|
@ -873,9 +873,8 @@
|
||||||
|
|
||||||
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
||||||
|
|
||||||
NOTE: If you want to optimize search for precision, use default operator AND in your query
|
NOTE: If you want to optimize search for precision, use default operator AND in your request
|
||||||
parser config with <solrQueryParser defaultOperator="AND"/> further down in this file. Use
|
handler config (q.op) Use OR if you would like to optimize for recall (default).
|
||||||
OR if you would like to optimize for recall (default).
|
|
||||||
-->
|
-->
|
||||||
<dynamicField name="*_txt_ja" type="text_ja" indexed="true" stored="true"/>
|
<dynamicField name="*_txt_ja" type="text_ja" indexed="true" stored="true"/>
|
||||||
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
||||||
|
|
|
@ -256,21 +256,6 @@
|
||||||
-->
|
-->
|
||||||
<uniqueKey>id</uniqueKey>
|
<uniqueKey>id</uniqueKey>
|
||||||
|
|
||||||
<!-- DEPRECATED: The defaultSearchField is consulted by various query parsers when
|
|
||||||
parsing a query string that isn't explicit about the field. Machine (non-user)
|
|
||||||
generated queries are best made explicit, or they can use the "df" request parameter
|
|
||||||
which takes precedence over this.
|
|
||||||
Note: Un-commenting defaultSearchField will be insufficient if your request handler
|
|
||||||
in solrconfig.xml defines "df", which takes precedence. That would need to be removed.
|
|
||||||
<defaultSearchField>text</defaultSearchField> -->
|
|
||||||
|
|
||||||
<!-- DEPRECATED: The defaultOperator (AND|OR) is consulted by various query parsers
|
|
||||||
when parsing a query string to determine if a clause of the query should be marked as
|
|
||||||
required or optional, assuming the clause isn't already marked by some operator.
|
|
||||||
The default is OR, which is generally assumed so it is not a good idea to change it
|
|
||||||
globally here. The "q.op" request parameter takes precedence over this.
|
|
||||||
<solrQueryParser defaultOperator="OR"/> -->
|
|
||||||
|
|
||||||
<!-- copyField commands copy one field to another at the time a document
|
<!-- copyField commands copy one field to another at the time a document
|
||||||
is added to the index. It's used either to index the same field differently,
|
is added to the index. It's used either to index the same field differently,
|
||||||
or to add multiple fields to the same field for easier/faster searching. -->
|
or to add multiple fields to the same field for easier/faster searching. -->
|
||||||
|
@ -1032,9 +1017,8 @@
|
||||||
|
|
||||||
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
<!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
|
||||||
|
|
||||||
NOTE: If you want to optimize search for precision, use default operator AND in your query
|
NOTE: If you want to optimize search for precision, use default operator AND in your request
|
||||||
parser config with <solrQueryParser defaultOperator="AND"/> further down in this file. Use
|
handler config (q.op) Use OR if you would like to optimize for recall (default).
|
||||||
OR if you would like to optimize for recall (default).
|
|
||||||
-->
|
-->
|
||||||
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
|
|
|
@ -60,8 +60,5 @@
|
||||||
|
|
||||||
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
||||||
<defaultSearchField>name</defaultSearchField>
|
<defaultSearchField>name</defaultSearchField>
|
||||||
|
|
||||||
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,5 @@
|
||||||
|
|
||||||
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
||||||
<defaultSearchField>name</defaultSearchField>
|
<defaultSearchField>name</defaultSearchField>
|
||||||
|
|
||||||
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,5 @@
|
||||||
|
|
||||||
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
||||||
<defaultSearchField>name</defaultSearchField>
|
<defaultSearchField>name</defaultSearchField>
|
||||||
|
|
||||||
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
||||||
<solrQueryParser defaultOperator="OR"/>
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue