Recently I've started to learn elasticsearch and currently working with some sample product data. Now I want to suggest the product as user type it. I've checked some documentations for Completion Suggester and implemented some examples for completion.
I checked some benefits of using _suggest than normal _search like
- SPEED
- Real Time
- Readability
- Custom Ordering
Here is the script I tried:
`POST /products/_suggest
{
"product" : {
"text" : "fres",
"completion" : {
"field" : "name"
}
}
}`
But now, I want to implement suggester that will suggest as user type with the picture of product and some other options with product name like Add to cart etc
I am implementing all this with the help of elasticsearch-rails gem over ruby on rails.
So can I do it with normal completion type as it provides lots of feature over search or else normal search will be good for this scenario?