elasticsearch-autocomplete | standalone microservice to to provide | Autocomplete library
kandi X-RAY | elasticsearch-autocomplete Summary
kandi X-RAY | elasticsearch-autocomplete Summary
This is a standalone microservice to to provide autocomplete functionality over large datasets using node and elasticsearch.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of elasticsearch-autocomplete
elasticsearch-autocomplete Key Features
elasticsearch-autocomplete Examples and Code Snippets
Community Discussions
Trending Discussions on elasticsearch-autocomplete
QUESTION
First at all, I would like to say that I use Elasticsearch and Logstash 6.2 and due the big update, a lot of topics are not compatible. I looked twice before posting mine. :)
I use MySQL as database and with Logstash 6.2 and JDBC, I transfer automatically my rows in Elasticsearch 6.2. Everything works fine from this side !
However, I'm trying to use Elasticsearch as search engine in a Node/Express' project. I would like to create an autocomplete searchbar as describes in this tutorial Leveraging the Power of Elasticsearch: Autocomplete and Fuzzy Search.
The problem is I can't enable auto completion because my data loaded from MySQL are as String and not as Completion type:
Illegal_argument_exception, reason:Field [extid] is not a completion suggest field, status:400
So for the getSuggestions function, I try this :
...ANSWER
Answered 2018-May-19 at 08:31I finally answer myself.
When I created the mapping, I used a default mapping found on github.
I added to this mapping the type completion for the needed fields and it resolved my issue.
Simple as that !
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install elasticsearch-autocomplete
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page