ruby - Check if document key/id exists with Tire -
I am using tire gem as an elastic finder client.
I have to know if there is any way to know whether the document with known ID exists in the index?
Something like this:
Tire. Axisists? {Index: 'myIndex', type: 'myType', id: 'myId'}
< P> Please try it, Tire :: configuration.client.get "# {Tire :: Configuration. Url} / My Index / MyTit / Mide? Beautiful" < / Pre> If the document exists in the document then returns the document with indexed properties or in the body of the reaction
{"exists": wrong}
Comments
Post a Comment