diqa / faceted-search-2
增强检索功能为 Mediawiki 和 SMW 提供了分面搜索。它需要一个 SOLR 服务器作为后端。
dev-main
2024-09-27 14:33 UTC
Requires
- php: >=7.4.0
- composer/installers: 1.*,>=1.0.1
- netresearch/jsonmapper: >=v4.4.1
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-09-27 14:33:52 UTC
README
EnhancedRetrieval 的下一代
创建虚拟机
- 安装 Virtualbox -
https://virtualbox.ac.cn/
- 安装 Vagrant -
https://www.vagrantup.com/
打开命令提示符并切换到 "vm-ubuntu" 文件夹并运行
vagrant up
通过运行以下命令进入虚拟机
vagrant ssh
然后进入 /var/www/html/mediawiki/vm-ubuntu
并运行
./solr-installPowerSearch.sh
./solr-installCore.sh
构建前端
安装 NPM - https://node.org.cn/en/download
打开控制台并切换到文件夹 facetedSearch2/fs-react
- npm install (首次安装或更新依赖后)
- npm start (运行本地开发时的 web 服务器)
- npm run dev-build (开发构建)
- npm run build (生产构建)
- npm test (运行所有单元测试)
导入 it-tests 的测试数据
php test/importTestdataForIT.php
- npm run it-test (运行所有集成测试)
后端
运行后端测试
./runTests
导入前端测试数据
php test/importTestdataForFrontend.php