Finding out if result from query is different from previous result


(Magnus Wahlstrand) #1

Hi,

I'm using javascript 'elasticsearch.js' to query and the Sequence diagram lib 'mermaid.js' to create sequence diagram from elasticsearch data. Below is some of my code.

Question: Is there a way to check if a result (data here) is the same as last time I used search?

  data = {
       ...
      "body": {
        "query": {
          "bool" : {
              "must" : [
                time_range
              ]
          }
      ....

  const response = client.search(data, function(error, response, status) {

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.