
com.jaeksoft.searchlib.autocompletion_config.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- License Agreement for OpenSearchServer --> <!-- Copyright (C) 2012 Emmanuel Keller / Jaeksoft --> <!-- http://www.open-search-server.com --> <!-- This file is part of OpenSearchServer. --> <!-- OpenSearchServer is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenSearchServer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Jaeksoft Open Search Server. If not, see <http://www.gnu.org/licenses/>. --> <configuration> <indices> <index name="autocompletion" searchCache="100" filterCache="100" fieldCache="500" /> </indices> <schema> <analyzers> <analyzer name="AutocompletionAnalyzer" lang=""> <tokenizer class="KeywordTokenizer" /> <filter class="LowerCaseFilter" /> <filter class="ISOLatin1AccentFilter" /> <filter class="EdgeNGramFilter" max_gram="200" min_gram="1" scope="QUERY_INDEX" side="front" /> </analyzer> <analyzer name="ClusterAnalyzer" lang=""> <tokenizer class="KeywordTokenizer" /> <filter class="LowerCaseFilter" /> <filter class="ISOLatin1AccentFilter" /> </analyzer> <analyzer name="FreqFilterAnalyzer" lang=""> <tokenizer class="KeywordTokenizer" /> <filter class="NumberFormatFilter" numberFormat="0000000000" scope="QUERY_INDEX" /> </analyzer> </analyzers> <fields default="term"> <field name="term" indexed="yes" stored="yes" termVector="no" analyzer="AutocompletionAnalyzer" /> <field name="cluster" indexed="yes" stored="no" termVector="no" analyzer="ClusterAnalyzer" /> <field name="freq" indexed="yes" stored="no" termvector="no" analyzer="FreqFilterAnalyzer" /> </fields> </schema> <requests> <request name="search" defaultOperator="and" start="0" rows="0" allowLeadingWildcard="yes" collapseMode="cluster" collapseType="optimized" collapseField="cluster" collapseMax="1"> <query>term:("$$")</query> <returnFields>term</returnFields> <sort> <field name="freq" direction="desc" /> </sort> </request> </requests> </configuration>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy