75 lines
4.7 KiB
XML
75 lines
4.7 KiB
XML
<?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="district_threads" version="1.1">
|
|
<types>
|
|
<fieldtype name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
|
|
<fieldType name="integer" class="solr.IntField" omitNorms="true"/>
|
|
<fieldType name="double" class="solr.DoubleField" omitNorms="true"/>
|
|
<fieldType name="date" class="solr.DateField" sortMissingLast="true" omitNorms="true"/>
|
|
<fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>
|
|
<fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="true"/>
|
|
<fieldType name="text_cjk" class="solr.TextField">
|
|
<analyzer class="org.apache.lucene.analysis.cjk.CJKAnalyzer"/>
|
|
</fieldType>
|
|
<fieldType name="text_std" class="solr.TextField">
|
|
<analyzer type="index">
|
|
<tokenizer class="org.wltea.analyzer.solr.IKTokenizerFactory" isMaxWordLength="false"/>
|
|
<filter class="solr.SynonymFilterFactory" synonyms="../../synonyms.txt" ignoreCase="true" expand="true"/>
|
|
</analyzer>
|
|
<analyzer type="query">
|
|
<tokenizer class="org.wltea.analyzer.solr.IKTokenizerFactory" isMaxWordLength="false"/>
|
|
<filter class="solr.SynonymFilterFactory" synonyms="../../synonyms.txt" ignoreCase="true" expand="true"/>
|
|
</analyzer>
|
|
</fieldType>
|
|
|
|
</types>
|
|
<fields>
|
|
<field name="ID_CITY" type="string" indexed="true" stored="false" multiValued="false" required="true" comments="评论编号_城市"/>
|
|
<field name="ID" type="integer" indexed="true" stored="true" multiValued="false" required="true" comments="评论编号" />
|
|
<field name="CITY" type="string" indexed="true" stored="true" multiValued="false" comments="城市"/>
|
|
<field name="THREAD_URL" type="string" indexed="true" stored="false" multiValued="false" comments="评论地址"/>
|
|
<field name="THREAD_AUTHOR" type="string" indexed="true" stored="false" multiValued="false" comments="评论作者"/>
|
|
<field name="THREAD_DATE" type="string" indexed="true" stored="false" multiValued="false" comments="评论日期"/>
|
|
|
|
<field name="TITLE" type="text_std" indexed="true" stored="false" multiValued="false" comments="评论标题"/>
|
|
<field name="CONTENT" type="text_std" indexed="true" stored="false" multiValued="false" comments="评论内容"/>
|
|
<field name="KEYWORD" type="text_std" indexed="true" stored="false" multiValued="true" comments="关键字" />
|
|
|
|
<field name="OBJ_ID" type="integer" indexed="true" stored="false" multiValued="false" comments="小区ID"/>
|
|
<field name="THREAD_REPUTATION" type="string" indexed="true" stored="false" multiValued="false" comments="评分" />
|
|
<field name="USER_ID" type="integer" indexed="true" stored="false" multiValued="false" comments="评论用户ID" />
|
|
<field name="STATUS" type="integer" indexed="true" stored="false" multiValued="false" comments="状态"/>
|
|
<field name="AGREE_COUNT" type="integer" indexed="true" stored="false" multiValued="false" comments="支持数持数"/>
|
|
<field name="DISAGREE_COUNT" type="integer" indexed="true" stored="false" multiValued="false" comments="反对数对数" />
|
|
<field name="GSCORE" type="sdouble" indexed="true" stored="false" multiValued="false" comments="排序分数" />
|
|
<field name="COMMENT_COUNT" type="integer" indexed="true" stored="false" multiValued="false" comments="回复数量"/>
|
|
<field name="REGION" type="string" indexed="true" stored="false" multiValued="false" comments="区县"/>
|
|
<dynamicField name="IF_*" type="integer" indexed="true" stored="false" multiValued="false" comments="判别字段"/>
|
|
</fields>
|
|
|
|
<copyField source="TITLE" dest="KEYWORD"/>
|
|
<copyField source="CONTENT" dest="KEYWORD"/>
|
|
|
|
<!-- field to use to determine and enforce document uniqueness. -->
|
|
<uniqueKey>ID_CITY</uniqueKey>
|
|
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
|
<defaultSearchField>KEYWORD</defaultSearchField>
|
|
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
<solrQueryParser defaultOperator="OR"/>
|
|
</schema>
|