54 lines
3.2 KiB
XML
54 lines
3.2 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="news_all" version="1.1">
|
|
<types>
|
|
<fieldType name="integer" class="solr.IntField" omitNorms="true"/>
|
|
<fieldtype name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
|
|
<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" type="integer" indexed="true" stored="true" multiValued="false" required="true" comments="ID"/>
|
|
<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="CITY" type="string" indexed="true" stored="true" multiValued="false" comments="城市"/>
|
|
<field name="RELATED_ID" type="integer" indexed="true" stored="true" multiValued="true" comments="关系ID"/>
|
|
<field name="CATEGORY" type="integer" indexed="true" stored="false" multiValued="false" comments="关系ID的类型"/>
|
|
<field name="NEWS_KEYWORD" type="string" indexed="true" stored="false" multiValued="true" comments="新闻提取关键词"/>
|
|
<field name="KEYWORD" type="text_std" indexed="true" stored="false" multiValued="false" comments="关键字"/>
|
|
<field name="URL" type="string" indexed="true" stored="false" multiValued="false" comments="URL"/>
|
|
<field name="PUBLISH_DATE" type="string" indexed="true" stored="false" multiValued="false" comments="原始时间"/>
|
|
<field name="CREATION_DATE" type="string" indexed="true" stored="false" multiValued="false" comments="创建时间"/>
|
|
<field name="VERSION" type="string" indexed="true" stored="true" multiValued="false" comments="创建时间"/>
|
|
</fields>
|
|
|
|
<uniqueKey>ID</uniqueKey>
|
|
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
|
<defaultSearchField>TITLE</defaultSearchField>
|
|
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
|
<solrQueryParser defaultOperator="OR"/>
|
|
</schema>
|