| <?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. |
| --> |
| <config> |
| <xi:include href="solrconfig.snippet.randomindexconfig.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| <luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion> |
| <!-- The DirectoryFactory to use for indexes. |
| solr.StandardDirectoryFactory, the default, is filesystem based. |
| solr.RAMDirectoryFactory is memory based and not persistent. --> |
| <dataDir>${solr.data.dir:}</dataDir> |
| <directoryFactory name="DirectoryFactory" class="solr.NRTCachingDirectoryFactory"/> |
| <schemaFactory class="ClassicIndexSchemaFactory"/> |
| |
| <updateHandler class="solr.DirectUpdateHandler2"/> |
| |
| <requestHandler name="/select" class="solr.SearchHandler" /> |
| |
| <searchComponent class="solr.SuggestComponent" name="suggest"> |
| <!--Suggest Component for context filtering test --> |
| <lst name="suggester"> |
| <str name="name">suggest_blended_infix_suggester</str> |
| <str name="lookupImpl">BlendedInfixLookupFactory</str> |
| <str name="dictionaryImpl">DocumentDictionaryFactory</str> |
| <str name="field">cat</str> |
| <str name="weightField">price</str> |
| <str name="contextField">my_contexts_t</str> |
| <str name="suggestAnalyzerFieldType">text</str> |
| <str name="buildOnCommit">false</str> |
| <str name="buildOnStartup">false</str> |
| <str name="storeDir">suggest_blended_infix_suggester</str> |
| <str name="indexPath">suggest_blended_infix_suggester</str> |
| <str name="highlight">false</str> |
| </lst> |
| |
| <lst name="suggester"> |
| <str name="name">suggest_blended_infix_suggester_string</str> |
| <str name="lookupImpl">BlendedInfixLookupFactory</str> |
| <str name="dictionaryImpl">DocumentDictionaryFactory</str> |
| <str name="field">cat</str> |
| <str name="weightField">price</str> |
| <str name="contextField">my_contexts_s</str> |
| <str name="suggestAnalyzerFieldType">text</str> |
| <str name="buildOnCommit">false</str> |
| <str name="buildOnStartup">false</str> |
| <str name="storeDir">suggest_blended_infix_suggester_string</str> |
| <str name="indexPath">suggest_blended_infix_suggester_string</str> |
| <str name="highlight">false</str> |
| </lst> |
| |
| <lst name="suggester"> |
| <str name="name">suggest_lookup_has_no_context_implementation</str> |
| <str name="lookupImpl">AnalyzingLookupFactory</str> |
| <str name="dictionaryImpl">DocumentDictionaryFactory</str> |
| <str name="field">cat</str> |
| <str name="weightField">price</str> |
| <str name="suggestAnalyzerFieldType">text</str> |
| <str name="buildOnCommit">false</str> |
| <str name="buildOnStartup">false</str> |
| <str name="storeDir">suggest_lookup_has_no_context_implementation</str> |
| <str name="indexPath">suggest_lookup_has_no_context_implementation</str> |
| <str name="highlight">false</str> |
| </lst> |
| |
| <lst name="suggester"> |
| <str name="name">suggest_context_filtering_not_implemented</str> |
| <str name="lookupImpl">AnalyzingLookupFactory</str> |
| <str name="dictionaryImpl">DocumentDictionaryFactory</str> |
| <str name="field">cat</str> |
| <str name="weightField">price</str> |
| <str name="suggestAnalyzerFieldType">text</str> |
| <str name="buildOnCommit">false</str> |
| <str name="buildOnStartup">false</str> |
| <str name="contextField">my_contexts_t</str> |
| <str name="storeDir">suggest_context_filtering_not_implemented</str> |
| <str name="indexPath">suggest_context_filtering_not_implemented</str> |
| <str name="highlight">false</str> |
| </lst> |
| |
| |
| <lst name="suggester"> |
| <str name="name">suggest_context_implemented_but_not_configured</str> |
| <str name="lookupImpl">BlendedInfixLookupFactory</str> |
| <str name="dictionaryImpl">DocumentDictionaryFactory</str> |
| <str name="field">cat</str> |
| <str name="weightField">price</str> |
| <str name="suggestAnalyzerFieldType">text</str> |
| <str name="buildOnCommit">false</str> |
| <str name="buildOnStartup">false</str> |
| <str name="storeDir">suggest_context_implemented_but_not_configured</str> |
| <str name="indexPath">suggest_context_implemented_but_not_configured</str> |
| <str name="highlight">false</str> |
| </lst> |
| |
| </searchComponent> |
| <requestHandler name="/suggest" class="org.apache.solr.handler.component.SearchHandler"> |
| <lst name="defaults"> |
| <str name="suggest">true</str> |
| <str name="suggest.count">5</str> |
| </lst> |
| <arr name="components"> |
| <str>suggest</str> |
| </arr> |
| </requestHandler> |
| |
| <query><useColdSearcher>false</useColdSearcher></query> |
| |
| </config> |
| |