I have some products I would like to sort by price. They have two properties, product_price and a special_price. special_price is not always present in the doc. On reading the documentation it looks like you can add a missing element and have it search on this instead. I’ve added the following to the re…
Tag: elasticsearch
Search for country
I have built a web application where you can search for a set of locations. Its a free text field where the visitor can input name, street, city, country, etc. I’m using php and Elasticsearch. The …
Check if the index exists or not Elasticsearch
I want to check in elasticsearch if the index exists or not. If it not exists it should create the index and do other functionality. I try to find out a solution for that, but did not find any perfect solution for that. Can anyone have any solution to solve this problem. I am using Elasticsearch library. Answ…
Applying Cursors pagination in elasticaserch
Im new to elasticasearch and trying to apply the cursor paginatoin seen in facebook, twitter for my api. Is there a way to apply that throw filters, aggregations i already tried a couple queries but the issue that i can reserve the order of the documents, any help will be appreciated ? Answer You can paginate…