解决方案:
<!--告诉solr工程solrhome的位置-->
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>C:\Program Files\Java\apache-tomcat-9.0.14\bin\solr</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
<!-- 配置中文分词器 -->
<fieldType name="text_ik" class="solr.TextField">
<analyzer class="org.wltea.analyzer.lucene.IKAnalyzer"/>
</fieldType>
<!-- 配置业务字段 -->
<field name="mername" type="text_ik" indexed="true" stored="true"/>
<field name="address" type="text_ik" indexed="true" stored="true"/>
<field name="addressDetailed" type="text_ik" indexed="true" stored="true"/>
<field name="images" type="string" indexed="false" stored="true" />
<field name="mainImages" type="string" indexed="false" stored="true" />
<field name="introduction" type="text_ik" indexed="true" stored="true" />
<field name="telphone" type="string" indexed="false" stored="true" />
<field name="rules" type="string" indexed="false" stored="true" />
<field name="businessTimeStart" type="string" indexed="false" stored="true" />
<field name="businessTimeStop" type="string" indexed="false" stored="true" />
<field name="longitude" type="double" indexed="false" stored="true" />
<field name="vatitude" type="double" indexed="false" stored="true" />
<!-- 配置复制域 -->
<field name="item_keywords" type="text_ik" indexed="true" stored="false" multiValued="true"/>
<copyField source="mername" dest="item_keywords"/>
<copyField source="address" dest="item_keywords"/>
<copyField source="addressDetailed" dest="item_keywords"/>
<copyField source="introduction" dest="item_keywords"/>
至此,solr服务器已经在Tomcat容器中搭建完毕!
4/4/2019 3:18:06 PM 已解决!