I am using Tire gem as an elasticsearch client.
I wanted to know if there is a way to know if the document with known id exists in the index?
something like:
Tire.exists? { index: 'myIndex', type: 'myType', id: 'myId' }
I am using Tire gem as an elasticsearch client.
I wanted to know if there is a way to know if the document with known id exists in the index?
something like:
Tire.exists? { index: 'myIndex', type: 'myType', id: 'myId' }
Please try this,
If the document exists then returns the document with indexed properties or else the response body contains