Files
main/projects/solrhome/district_location/conf/schema.xml
T
2021-03-13 13:48:21 +08:00

145 lines
9.9 KiB
XML

<?xml version="1.0"?>
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!--
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_location" 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="slong" class="solr.SortableLongField" 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="REGION" type="string" indexed="true" stored="false" multiValued="false" comments="区县"/>
<field name="BLOCK" type="string" indexed="true" stored="false" multiValued="false" comments="版块"/>
<field name="DISTRICT_NAME_STD" type="string" indexed="true" stored="false" multiValued="false" comments="标准小区名称"/>
<field name="DISTRICT_ADDRESS_STD" type="string" indexed="true" stored="false" multiValued="false" comments="标准小区地址"/>
<field name="DISTRICT_NAME" type="text_std" indexed="true" stored="false" multiValued="false" comments="分词小区名称"/>
<field name="DISTRICT_ADDRESS" type="text_std" indexed="true" stored="false" multiValued="false" comments="分词小区地址"/>
<field name="ALIAS_NAME" type="text_std" indexed="true" stored="false" multiValued="true" comments="小区别名"/>
<field name="ALIAS_ADDRESS" type="text_std" indexed="true" stored="false" multiValued="true" comments="地址别名"/>
<field name="DESCRIPTION" 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="PINYIN" type="string" indexed="true" stored="false" multiValued="true" comments="拼音"/>
<field name="PINYIN_ADDRESS" type="string" indexed="true" stored="false" multiValued="true" comments="小区地址"/>
<field name="GSCORE" type="sint" indexed="true" stored="true" multiValued="false" comments="权重得分"/>
<field name="ENVIRONMENT" type="string" indexed="true" stored="false" multiValued="true" comments="环境_del"/>
<field name="DENIZEN" type="string" indexed="true" stored="false" multiValued="true" comments="居民_del"/>
<field name="FIXTURE" type="string" indexed="true" stored="false" multiValued="true" comments="配套_del"/>
<field name="BADHOUSE" type="string" indexed="true" stored="false" multiValued="true" comments="问题房_del"/>
<field name="STATUS" type="integer" indexed="true" stored="false" multiValued="false" comments="状态"/>
<field name="NEW_STATUS" type="integer" indexed="true" stored="false" multiValued="false" comments="新盘状态"/>
<field name="AVG_PRICE" type="sint" indexed="true" stored="false" multiValued="false" comments="小区均价"/>
<field name="AVERAGEPRICERANGE" type="sint" indexed="true" stored="false" multiValued="false" comments="均价范围"/>
<field name="NEW_AVG_PRICE" type="sint" indexed="true" stored="false" multiValued="false" comments="新盘价格"/>
<field name="VILLA_TOTAL_PRICE" type="sint" indexed="true" stored="false" multiValued="false" comments="新盘整栋价格"/>
<field name="DISTRICT_MARKUP" type="sint" indexed="true" stored="false" multiValued="false" comments="涨跌幅"/>
<field name="AVG_RENT_PRICE" type="sint" indexed="true" stored="false" multiValued="false" comments="租房均价"/>
<field name="DISTRICT_RENT_MARKUP" type="sint" indexed="true" stored="false" multiValued="false" comments="租房涨跌幅"/>
<field name="RENT_RATIO" type="sint" indexed="true" stored="false" multiValued="false" comments="租房回报率"/>
<field name="KIND" type="string" indexed="true" stored="false" multiValued="true" comments="新盘的类型"/>
<field name="OPENYEAR" type="string" indexed="true" stored="false" multiValued="false" comments="开盘年份"/>
<field name="OPENMONTH" 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="纬度"/>
<field name="METRO" type="string" indexed="true" stored="false" multiValued="true" comments="地铁"/>
<field name="STATION" type="string" indexed="true" stored="false" multiValued="true" comments="站点"/>
<field name="WALKTIME" type="string" indexed="true" stored="false" multiValued="true" comments="步行时间"/>
<field name="METROINFO" type="string" indexed="true" stored="false" multiValued="true" comments="地铁信息"/>
<field name="TAGS" type="string" indexed="true" stored="false" multiValued="true" comments="小区标签"/>
<field name="EDU_AVG" type="sdouble" indexed="true" stored="false" multiValued="false" comments="教育评分"/>
<field name="INVEST_AVG" type="sdouble" indexed="true" stored="false" multiValued="false" comments="投资评分"/>
<field name="TRAFFIC_AVG" type="sdouble" indexed="true" stored="false" multiValued="false" comments="交通评分"/>
<field name="SURROUND_AVG" type="sdouble" indexed="true" stored="false" multiValued="false" comments="配套评分"/>
<field name="COMPOSITE_AVG" type="sdouble" indexed="true" stored="false" multiValued="false" comments="综合评分"/>
<field name="HOUSE_COUNT" type="sint" indexed="true" stored="true" multiValued="false" comments="小区的房源数量"/>
<field name="RENT_HOUSE_COUNT" type="sint" indexed="true" stored="true" multiValued="false" comments="小区的租房数量"/>
<field name="EVALUATION_COUNT" type="sint" indexed="true" stored="true" multiValued="false" comments="小区的估价数量"/>
<dynamicField name="IF_*" type="integer" indexed="true" stored="false" multiValued="false" comments="判别字段"/>
<dynamicField name="*_DATE" type="string" indexed="true" stored="false" multiValued="false" comments="时间字段"/>
<field name="VIEW_COUNT" type="sint" indexed="true" stored="true" multiValued="false" comments="小区看房次数"/>
<field name="NEAR_METRO" type="sint" indexed="true" stored="true" multiValued="false" comments="是否靠近地铁"/>
<field name="PIC_COUNT" type="sint" indexed="true" stored="true" multiValued="false" comments="图片数量"/>
</fields>
<copyField source="DISTRICT_NAME_STD" dest="DISTRICT_NAME"/>
<copyField source="DISTRICT_ADDRESS_STD" dest="DISTRICT_ADDRESS"/>
<copyField source="DISTRICT_NAME_STD" dest="KEYWORD"/>
<copyField source="DISTRICT_ADDRESS_STD" dest="KEYWORD"/>
<copyField source="ALIAS_NAME" dest="KEYWORD"/>
<copyField source="ALIAS_ADDRESS" dest="KEYWORD"/>
<copyField source="REGION" dest="KEYWORD"/>
<copyField source="BLOCK" 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>