【程序源代碼】Springboot2.1+Solr7.5搭建的企業(yè)級(jí)搜索平臺(tái)
“?關(guān)鍵字:?企業(yè)查詢平臺(tái)??”?
介紹
Springboot2.1+Solr7.5搭建的企業(yè)級(jí)搜索平臺(tái),項(xiàng)目目前支持文檔內(nèi)容和數(shù)據(jù)庫(kù)檢索,已經(jīng)集成分詞技術(shù)。支持文檔內(nèi)容檢索類(lèi)型包含:pdf、doc、docx、ppt、pptx、txt、log等
數(shù)據(jù)庫(kù)已支持MySQL增量自動(dòng)建立索引
? ? ? ? 部署教程
solr安裝啟動(dòng)
進(jìn)入?solr-7.5.0/bin目錄
執(zhí)行?solr start
說(shuō)明:solr運(yùn)行,依賴JDK8solr控制臺(tái)
http://localhost:8983/solr,如果可以順利打開(kāi),說(shuō)明solr啟動(dòng)成功。solr停止 進(jìn)入?
solr-7.5.0/bin目錄
執(zhí)行?solr stop -p 8983search項(xiàng)目啟動(dòng) search項(xiàng)目為普通Springboot項(xiàng)目,下載后將源碼導(dǎo)入到IDE,在SearchApplication右鍵--> Run ...即可。
? ? ? ?Solr配置說(shuō)明
Solr MySQL相關(guān) 進(jìn)入?
solr-7.5.0/server/solr/test_core/confdb-data-config.xml?-> 需要索引的表配置managed-schema?-> 需要索引的字段配置Solr MySQL 數(shù)據(jù)自動(dòng)增量同步配置說(shuō)明 進(jìn)入?
solr-7.5.0/server/solr/conf/?dataimport.properties?-> 自動(dòng)同步數(shù)據(jù)相關(guān)配置Solr 文件檢索配置 進(jìn)入?
solr-7.5.0/server/solr/file_core/conftika-data-config.xml?-> 索引文件目錄及類(lèi)型配置managed-schema?-> 需要索引的字段配置
? ? ? search配置說(shuō)明
配置文件?
src/main/resources/application.properties
本配置文件目前只配置了三部分。
solr 鏈接
靜態(tài)資源路徑
thymeleaf
端口,文根等其他配置請(qǐng)可自行配置
02
—
源碼下載
gitee:?https://gitee.com/11230595/springboot-solr?_from=gitee_search
聯(lián)
方
式
公眾號(hào)ID:??itcode
視頻號(hào):? 程序源代碼
微信ID:??itcoder
免
聲
明
—————————————
?????
?????
?????
?????
?????
?
?????
?????
?????
?????
?????
———————

————————
【你的每一份打賞就是對(duì)我最真誠(chéng)的鼓勵(lì)】
