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

107 lines
8.0 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) -->
<!-- 编辑使用 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="house_agg" 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="sdouble" class="solr.SortableDoubleField" 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="MD5_CITY" type="string" indexed="true" stored="false" multiValued="false" required="true" comments="唯一键"/>
<field name="ID_CITY" type="string" indexed="true" stored="false" multiValued="false" required="true" comments="ID_CITY"/>
<field name="ID" type="integer" indexed="true" stored="true" multiValued="false" required="true" comments="房源编号"/>
<field name="MD5" type="string" indexed="true" stored="false" multiValued="true" comments="MD5"/>
<field name="MIN_PRICE" type="string" indexed="true" stored="true" multiValued="false" comments="最小价格"/>
<field name="MAX_PRICE" type="string" indexed="true" stored="true" multiValued="false" comments="最大价格"/>
<field name="CITY" type="string" 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="DISTRICT_ID" type="integer" 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="ESTATETYPE" type="string" indexed="true" stored="false" multiValued="false" comments="物业类型"/>
<field name="ROOM" type="integer" indexed="true" stored="false" multiValued="false" comments="室"/>
<field name="HOUSE_AREA" type="sint" indexed="true" stored="false" multiValued="false" comments="面积"/>
<field name="HOUSEAREARANGE" type="sint" indexed="true" stored="false" multiValued="false" comments="面积范围"/>
<field name="AVERAGE_PRICE" type="sint" indexed="true" stored="false" multiValued="false" comments="均价"/>
<field name="TOTAL_PRICE" type="sint" indexed="true" stored="false" multiValued="false" comments="总价"/>
<field name="TOTALPRICERANGE" type="sint" indexed="true" stored="false" multiValued="false" comments="总价范围"/>
<field name="STATUS" type="integer" indexed="true" stored="false" multiValued="false" comments="状态"/>
<field name="USER_ID" type="integer" indexed="true" stored="false" multiValued="false" comments="用户编号"/>
<field name="TAGS" type="string" indexed="true" stored="false" multiValued="true" 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="LNG" type="slong" indexed="true" stored="false" multiValued="false" comments="经度"/>
<field name="LAT" type="slong" indexed="true" stored="false" multiValued="false" comments="纬度"/>
<field name="DEMAND_TYPE" type="integer" indexed="true" stored="false" multiValued="true" comments="智能选房类型"/>
<field name="FLOOR" type="sint" indexed="true" stored="false" multiValued="true" comments="楼层"/>
<field name="SITE_NAME" type="string" indexed="true" stored="false" multiValued="false" comments="CPC的用户名"/>
<field name="HOUSEAGERANGE" type="integer" indexed="true" stored="false" multiValued="false" comments="房龄范围"/>
<field name="PUBLISHER_TYPE" type="integer" indexed="true" stored="false" multiValued="false" comments="发布类型"/>
<field name="PHONE_NUMBER" type="string" indexed="true" stored="false" multiValued="false" comments="手机号"/>
<field name="TOTAL_PRICE_SPAN" type="string" indexed="true" stored="false" multiValued="false" comments="最小最大价格"/>
<field name="GSCORE" type="sint" indexed="true" stored="false" multiValued="false" comments="排序域"/>
<field name="VERSION" type="string" indexed="true" stored="true" multiValued="false" comments="版本"/>
<dynamicField name="*_DATE" type="string" indexed="true" stored="false" multiValued="false" comments="日期"/>
<dynamicField name="*_AVG" type="sdouble" indexed="true" stored="false" multiValued="false" comments="小区评分"/>
<dynamicField name="IF_*" type="integer" indexed="true" stored="false" multiValued="false" comments="判别字段"/>
</fields>
<!-- field to use to determine and enforce document uniqueness. -->
<uniqueKey>MD5_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>