LisaHJung / Part-4-Running-Aggregations-with-Elasticsearch-and-Kibana

77 stars 55 forks source link

Query results differ #4

Open ddu2019 opened 3 years ago

ddu2019 commented 3 years ago

First of all, thank you for this excellent beginner's crash course.

On Part 4 of the tutorial, I did not get the same results as desribed in this repo or in the video.

However, if I replace the 0 with a 1 in the STEP 3 query, the results were again matching.

STEP 3: Remove the negative values from the field "UnitPrice".

ORIGINAL

POST ecommerce_data/_delete_by_query
{
  "query": {
    "range": {
      "UnitPrice": {
        "lte": 0
      }
    }
  }
}

MODIFIED

POST ecommerce_data/_delete_by_query
{
  "query": {
    "range": {
      "UnitPrice": {
        "lte": 1
      }
    }
  }
}

Keep up the good work :+1: !!!

Moandh81 commented 2 years ago

Thank you so much for mentioning this. I have now the same values as in the repo

nickchomey commented 2 years ago

Yeah, I just discovered the same thing - assumed she had used 1 since her min value was 1.01 rather than the 0.001 that I was receiving.