Note This project is a work in progress. Feel free to use it but be aware of eventually upcoming breaking changes.
This is the official repository of the intranet of Helsingborg Stad.
To be updated soon. For now, please get in touch with us for instructions.
Please refer to respective theme and/or plugin for deeper documentation.
Please note that licences for this project are specified for each theme and/or plugin. Please refer to respective theme and/or plugin in search for licences.
We use Elasticsearch as our prefered search engine. Here's a few things you might need:
Note: If the response is health status index pri rep docs.count docs.deleted store.size pri.store.size
you have no indexes.
$ curl 'http://localhost:9200/_cat/indices?v'
Note: For this to work, you need to make sure that the setting action.destructive_requires_name
is set to false. Settings it to true will disabel the option to delete all indexes at once.
$ curl -XDELETE 'http://localhost:9200/_all'
$ curl -XDELETE 'http://localhost:9200/<index_name>'
$ curl 'http://localhost:9200/<index_name>/_search?pretty' -d '
{
"query": {
"term": {
"<field_name>": "<field_value>"
}
}
}
'