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

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -