I'm done with this. If someone wants to maintain it send me a note and I'll transfer the repo. Or just fork it, or whatever.
Elasticsearch Backend for GNU social
- Navigate to your
/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.
- text: Filters by notice text (default field)
- author: Notice author (in webfinger format: firstname.lastname@example.org)
- type: Notice type (ex: post, share, like, etc)
- created: Date the notice was created
/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":
- nickname (default field)
/search/people page searches profile nicknames by default. You can fiter by the other fields above.