The code that is currently available for download and ready to use comes with endpoints, libraries and some code that you might not need for your current project or requirements. So you need to do some cleanup first.
require("../endpoints/admin/thesaurus/models/thesaurus.server.model")(dbConnection);
The next task is to define which Search Engines your application is going to support. In the folder server/engines, discard the engines you don't need.
To add new endpoints please follow these instructions Endpoint Configuration
{ "id": "elastic", "enabled": true, "implementation": "./qpl-elastic", /* QPL JS Engine specific version */ "config": { "server": "http://localhost:9200", "version": 6, "serverAuth": "http://user:[email protected]:9200" } }
Make sure all the endpoints uses elasticsearch engine.
... "processing": [ [ { "label": "typeAhead", "engine": "elastic", ...
{ "id": "solr", "enabled": true, "implementation": "./qpl-solr", "config": { "server": "http://localhost:8983/solr" } }
Make sure all the endpoints uses solr engine. The value must match the id value defined in the engine file.
... "processing": [ [ { "label": "typeAhead", "engine": "solr", ...
{ "id": "google_cloud_search", "enabled": true, "implementation": "./qpl-google-cloud-search", "config": { "service_account_key": "../PATH_TO_YOUR JSON_KEY", "api_version": "v1" } }
Make sure all the endpoints uses Google cloud search engine. The value much match the id value defined in the engine file.
... "processing": [ [ { "label": "typeAhead", "engine": "google_cloud_search", ...
Configuration is done through the Search endpoint (server\endpoint\typeAhead\ endpoint.json)