The essential
Phraseanet relies exclusively on Elasticsearch search engine.
Based on Apache Lucene, it allows, among others, facets in Phraseanet. It installs on the host application server or on remote server.
The ElasticSearch engine allows indexing and searching data.
Indexing makes index of the content of databases published in Phraseanet application and allows searching the content of records descriptive notes.
Indexing runs in background. It monitors bases to index (Appearance, disappearance or alteration of documents) and maintains up to date search indexes.
Elasticsearch is a prerequisite and Phraseanet installers offer to fill hostname and port to establish the communication.
These parameters can be edited after installation by the GUI or the configuration file.
As Phraseanet administrator, go to Admin / Search engine settings item.
In the Elasticsearch configuration tab, fill the address, port, and name of the search index in the settings form.
[Source]/config/confuguration.yml
search-engine:
type: Alchemy\Phrasea\SearchEngine\Elastic\ElasticSearchEngine
options:
host: 127.0.0.1
port: 9200
index: phraseanet
Once configured, execute the following commands in the console to confirm the configuration and create the search index.
bin/console compile:configuration
bin/console searchengine:index:create
To delete indexes :
bin/console s:i:d
To build indexes :
bin/console s:i:c
To populate indexes :
bin/console s:i:p
Options for “populate”
Usage:
searchengine:index:populate [options]
Options:
--thesaurus Only populate thesaurus data
--records Only populate record data
--databox_id[=DATABOX_ID] Only populate chosen databox (multiple values allowed)
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug