We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to implement typeahead?
This depends on #21. There are the following solutions:
The text was updated successfully, but these errors were encountered:
Working solution using the completion suggester:
Create index:
curl -X PUT "http://localhost:9200/syslog" -d '{ "mappings" : { "event" : { "properties" : { "host" : { "type" : "string", "index" : "not_analyzed" }, "host_suggest" : { "type" : "completion" }, [...] } } } }'
Configure rsyslog:
set $!host = $hostname; set $!host_suggest = $hostname; template(name="outfmt" type="list") { property(name="$!") constant(value="\n") } module(load="omelasticsearch") action(type="omelasticsearch" template="outfmt" searchIndex="syslog" asyncrepl="on" searchType="event" server="127.0.0.1" serverport="9200"
Search for documents:
{ "event": { "text": "lo", "completion": { "field": "host_suggest" } } }
Sorry, something went wrong.
No branches or pull requests
How to implement typeahead?
This depends on #21. There are the following solutions:
Better, but needs additional data fields to be stored
(http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html)
http://jontai.me/blog/2013/02/adding-autocomplete-to-an-elasticsearch-search-application/
The text was updated successfully, but these errors were encountered: