Files
2021-03-13 13:48:21 +08:00

82 lines
5.1 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="evaluation" version="1.1">
<types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
<fieldType name="integer" class="solr.IntField" omitNorms="true"/>
<fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>
<fieldtype name="slong" class="solr.SortableLongField" 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_CITY" type="string" indexed="true" tokenized="false" stored="false" multiValued="false" required="true" comments="城市估价表或真实表编号"/>
<field name="ID" type="integer" indexed="true" stored="true" multiValued="false" required="true" comments="估价表或真实表ID"/>
<field name="CITY" type="string" tokenized="false" indexed="true" stored="false" multiValued="false" comments="城市" required="true"/>
<field name="USER_ID" type="integer" indexed="true" stored="false" multiValued="false" required="true" comments="用户ID"/>
<field name="DISTRICT_ID" type="integer" indexed="true" stored="true" multiValued="false" required="true" comments="小区ID"/>
<field name="HOUSE_NUM" type="string" tokenized="false" indexed="true" stored="false" multiValued="false" required="true" comments="号"/>
<field name="ROOM_NUM" type="string" tokenized="false" indexed="true" stored="false" multiValued="false" comments="室" required="true"/>
<field name="BUILD_TYPE" type="integer" indexed="true" stored="false" multiValued="false" required="true" comments="建筑类型,1表示公寓,2表示别墅"/>
<field name="DATA_FROM" type="integer" indexed="true" stored="true" multiValued="false" required="true" comments="数据来源,1表示用户估价记录,2表示真实数据"/>
<field name="HOUSE_NUM_YES" type="string" indexed="true" stored="false" multiValued="false" comments="有无门牌号"/>
<field name="HOUSE_AREA" type="sint" indexed="true" stored="false" multiValued="false" comments="面积"/>
<field name="TOTAL_PRICE" type="sint" indexed="true" stored="false" multiValued="false" comments="总价"/>
<field name="MODIFICATION_DATE" type="string" indexed="true" stored="true" multiValued="false" comments="发布日期"/>
<field name="HOUSE_ROOM" type="integer" indexed="true" stored="false" multiValued="false" comments="室"/>
<field name="KEYWORD" type="text_std" indexed="true" stored="false" multiValued="false" comments="关键字"/>
<field name="REGION" type="string" indexed="true" stored="false" multiValued="false" comments="区县"/>
<field name="BLOCK" type="string" indexed="true" stored="false" multiValued="false" comments="版块"/>
<field name="HOUSEAREARANGE" type="sint" indexed="true" stored="false" multiValued="false" comments="面积范围"/>
<field name="ROOM" type="string" indexed="true" stored="false" multiValued="false" comments="房型"/>
<field name="FITMENT" type="string" indexed="true" stored="false" multiValued="false" comments="装修"/>
<field name="IS_SHOW" type="string" indexed="true" stored="false" multiValued="false" comments="是否显示"/>
<field name="HASHOUSENUM" type="string" indexed="true" stored="false" multiValued="false" comments="有无门牌号"/>
<field name="LNG" type="slong" indexed="true" stored="false" multiValued="false" comments="经度"/>
<field name="LAT" type="slong" indexed="true" stored="false" multiValued="false" comments="纬度"/>
</fields>
<!-- 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>ID_CITY</defaultSearchField>
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
<solrQueryParser defaultOperator="OR"/>
</schema>