solr docker 配置
//建议用7.5版本solr docker run --name mySolr -p 8983:8983 -d solr docker exec -it mySolr bin/solr create_core -c myIKCore //模型 docker restart mySolr //进入容器 docker exec -it -u root 8a0fb538064e bash //复制ik 插件进容器 docker cp ik-analyzer-solr.jar mySolr:/opt/solr-8.7.0/contrib/analysis-extras/lucene-libs // /var/solr/data/myIKCore/conf# vi solrconfig.xml ''' 复制数据复制插件 docker cp .\solr-dataimporthandler-8.7.0.jar mySolr:/opt/solr-8.7.0/server/solr-webapp/webapp/WEB-INF/lib docker cp .\solr-dataimporthandler-extras-8.7.0.jar mySolr:/opt/solr-8.7.0/server/solr-webapp/webapp/WEB-INF/lib docker cp .\mysql-connector-java-5.1.47.jar mySolr:/opt/solr-8.7.0/server/solr-webapp/webapp/WEB-INF/lib ''' <schema name="default-config" version="1.6"> <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> <field name="title" type="text_ik" indexed="true" stored="true" /> <field name="class_en" type="string" indexed="true" stored="true" /> <field name="class_name" type="string" indexed="true" stored="true" /> <field name="tags" type="string" indexed="true" stored="true" /> <field name="desc" type="string" indexed="true" stored="true" /> <field name="md5" type="string" indexed="true" stored="true" /> vi data-config.xml vi solrconfig.xml