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

67 lines
4.8 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="search_page_view" 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 class="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
</fieldType>
</types>
<fields>
<field name="ID" type="integer" indexed="true" stored="true" multiValued="false" required="true" comments="PageView编号"/>
<field name="CITY" type="string" indexed="true" stored="false" multiValued="false" comments="城市"/>
<field name="DURATION" type="string" indexed="true" stored="false" multiValued="false" comments="期限"/>
<field name="CATEGORY" type="string" 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="AVG_PRICE_RANGE" type="string" indexed="true" stored="false" multiValued="false" comments="单价"/>
<field name="KIND" type="string" indexed="true" stored="false" multiValued="false" comments="房屋类型"/>
<field name="METRO" type="string" indexed="true" stored="false" multiValued="false" comments="地铁线"/>
<field name="STATION" type="string" indexed="true" stored="false" multiValued="false" comments="地铁站点"/>
<field name="WALK_TIME" type="string" indexed="true" stored="false" multiValued="false" comments="步行时间"/>
<field name="HOUSE_AREA_RANGE" type="string" indexed="true" stored="false" multiValued="false" comments="面积"/>
<field name="ROOM" type="string" indexed="true" stored="false" multiValued="false" comments="房型"/>
<field name="TOTAL_PRICE_RANGE" type="string" indexed="true" stored="false" multiValued="false" comments="总价"/>
<field name="FITMENT" type="string" indexed="true" stored="false" multiValued="false" comments="装修"/>
<field name="ESTATE_TYPE" type="string" indexed="true" stored="false" multiValued="false" comments="建筑类型"/>
<field name="INFO_SOURCE" type="string" indexed="true" stored="false" multiValued="false" comments="信息来源"/>
<field name="OPEN_YEAR" type="string" indexed="true" stored="false" multiValued="false" comments="开盘年份"/>
<field name="OPEN_MONTH" type="string" indexed="true" stored="false" multiValued="false" comments="开盘月份"/>
<field name="RENT_PRICE_RANGE" type="string" indexed="true" stored="false" multiValued="false" comments="租金"/>
<field name="RENT_TYPE" type="string" indexed="true" stored="false" multiValued="false" comments="租赁类型"/>
<field name="RENT_MODE" type="string" indexed="true" stored="false" multiValued="false" comments="付款方式"/>
<field name="RENT_PERIOD" type="string" indexed="true" stored="false" multiValued="false" comments="租赁期限"/>
<field name="VIEW_COUNT" type="sint" indexed="true" stored="false" multiValued="false" comments="页面流量"/>
</fields>
<!-- field to use to determine and enforce document uniqueness. -->
<uniqueKey>ID</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>