flask elasticsearch
1.0.0
全文搜索用戶的實現,以使用自然語言在網站上查找信息。
Elasticsearch是一種開源全文搜索引擎。
我已經以一種很容易切換到另一個引擎的方式實現了所有文本索引和搜索功能。這將使您可以用任何替代搜索引擎替換我的實現:Apache Solr,Whoosh,Xapian,Sphinx
Elasticsearch
Python 3.8.10或更高
Elasticsearch的文檔具有一個安裝頁面,其中包含有關如何安裝它的詳細信息。
您還可以閱讀我如何在PC上進行設置的方式 - 設置彈性 - 搜索
要驗證您在計算機運行https:localhost:9200在瀏覽器上。這應該以JSON格式返回服務的一些基本信息。
# clone the repo
$ git clone https://github.com/AMuriuki/flask-elasticsearch.git
# enter the project directory
$ cd flask-elasticsearch
# included on all recent Python version
$ python3 -m venv venv
# activating the virtual env
$ . venv/bin/activate
# if using Microsoft Windows CMD
$ venvScriptsactivate
# migrate files to db
$ flask db upgrade