/local/pluginsdirectory (create it if it doesn't exist)
git clone https://github.com/chimo/gs-elasticsearch.git ElasticSearch
composer installin the
ElasticSearchfolder to install the dependencies
/config.php to use it with (replace
127.0.0.1:9200 with the address/port of your elasticsearch backend server):
$config['elasticsearch']['hosts'] = [ '127.0.0.1:9200' ]; $config['elasticsearch']['index_name'] = 'gnusocial'; addPlugin('ElasticSearch');
You can use the Lucene query syntax when searching.
/search/notice page searches notice text by default. You can filter by notice author with the
author field parameter.
For example, the following input will find all notices containing the word “social”:
The following input will find all notices containing the word “social” authored by username “gnu”:
/search/people page searches profile nicknames by default. You can fiter by the other fields above.