exists filter broken on 1.5.0 with restored index?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

exists filter broken on 1.5.0 with restored index?

Mads Martin Jørgensen
Hello all,

Just installed es-1.5.0 with cloud-aws-2.5.0 on a machine. Did a restore of a snapshot made with es-1.4.1. All documents are there, but the exists filter seems broken. The query that used to return all documents matching, now return 0 documents, even though the field exists when reading the documents.

curl -XGET "http://localhost:9200/my_own_index/document/_search" -d'

{

   "query": {

      "constant_score": {

         "filter": {

            "exists": {

               "field": "history"

            }

         }

      }

   }

}'


If we populate new documents, then the exists filter works just fine.


Regards,

Mads Martin

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4d7d4080-c997-412e-85cd-04d7aeda0e27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: exists filter broken on 1.5.0 with restored index?

Igor Motov-3
Hi Mads Martin,

Could you check the version that is returned when you run curl "localhost:9200/my_own_index/_settings?pretty". The version will be in 

        "version" : {
          "created" : "XXXXXXX"
        }

Could you compare it to the version that is returned by the same index in the pre-1.5.0 cluster?

Igor

On Wednesday, 25 March 2015 09:27:03 UTC-4, Mads Martin Jørgensen wrote:
Hello all,

Just installed es-1.5.0 with cloud-aws-2.5.0 on a machine. Did a restore of a snapshot made with es-1.4.1. All documents are there, but the exists filter seems broken. The query that used to return all documents matching, now return 0 documents, even though the field exists when reading the documents.

curl -XGET "<a href="http://www.google.com/url?q=http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search\46sa\75D\46sntz\0751\46usg\75AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search\46sa\75D\46sntz\0751\46usg\75AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg';return true;">http://localhost:9200/my_own_index/document/_search" -d'

{

   "query": {

      "constant_score": {

         "filter": {

            "exists": {

               "field": "history"

            }

         }

      }

   }

}'


If we populate new documents, then the exists filter works just fine.


Regards,

Mads Martin

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3937725f-6381-442b-9e2b-638913514d3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: exists filter broken on 1.5.0 with restored index?

Mads Martin Jørgensen
They're similar. The 1.5.0 cluster has "created" : "1000199", and the 1.4.1 cluster also has "created" : "1000199"

On Wednesday, March 25, 2015 at 4:45:30 PM UTC+1, Igor Motov wrote:
Hi Mads Martin,

Could you check the version that is returned when you run curl "localhost:9200/my_own_index/_settings?pretty". The version will be in 

        "version" : {
          "created" : "XXXXXXX"
        }

Could you compare it to the version that is returned by the same index in the pre-1.5.0 cluster?

Igor

On Wednesday, 25 March 2015 09:27:03 UTC-4, Mads Martin Jørgensen wrote:
Hello all,

Just installed es-1.5.0 with cloud-aws-2.5.0 on a machine. Did a restore of a snapshot made with es-1.4.1. All documents are there, but the exists filter seems broken. The query that used to return all documents matching, now return 0 documents, even though the field exists when reading the documents.

curl -XGET "<a href="http://www.google.com/url?q=http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search\46sa\75D\46sntz\0751\46usg\75AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search\46sa\75D\46sntz\0751\46usg\75AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg';return true;">http://localhost:9200/my_own_index/document/_search" -d'

{

   "query": {

      "constant_score": {

         "filter": {

            "exists": {

               "field": "history"

            }

         }

      }

   }

}'


If we populate new documents, then the exists filter works just fine.


Regards,

Mads Martin

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ff38b5a8-ebab-4061-a963-5e74a807de3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: exists filter broken on 1.5.0 with restored index?

Igor Motov-3
Thanks for checking. It's a bug, which should be fixed in 1.5.1 https://github.com/elastic/elasticsearch/pull/10268

On Wednesday, 25 March 2015 13:43:28 UTC-4, Mads Martin Jørgensen wrote:
They're similar. The 1.5.0 cluster has "created" : "1000199", and the 1.4.1 cluster also has "created" : "1000199"

On Wednesday, March 25, 2015 at 4:45:30 PM UTC+1, Igor Motov wrote:
Hi Mads Martin,

Could you check the version that is returned when you run curl "localhost:9200/my_own_index/_settings?pretty". The version will be in 

        "version" : {
          "created" : "XXXXXXX"
        }

Could you compare it to the version that is returned by the same index in the pre-1.5.0 cluster?

Igor

On Wednesday, 25 March 2015 09:27:03 UTC-4, Mads Martin Jørgensen wrote:
Hello all,

Just installed es-1.5.0 with cloud-aws-2.5.0 on a machine. Did a restore of a snapshot made with es-1.4.1. All documents are there, but the exists filter seems broken. The query that used to return all documents matching, now return 0 documents, even though the field exists when reading the documents.

curl -XGET "<a href="http://www.google.com/url?q=http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search\46sa\75D\46sntz\0751\46usg\75AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search\46sa\75D\46sntz\0751\46usg\75AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg';return true;">http://localhost:9200/my_own_index/document/_search" -d'

{

   "query": {

      "constant_score": {

         "filter": {

            "exists": {

               "field": "history"

            }

         }

      }

   }

}'


If we populate new documents, then the exists filter works just fine.


Regards,

Mads Martin

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/531c6e3c-5697-4fc0-b037-d8fbc438c5dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: exists filter broken on 1.5.0 with restored index?

Mads Martin Jørgensen
Thanks for fixing!

On Thursday, March 26, 2015 at 3:29:17 PM UTC+1, Igor Motov wrote:
Thanks for checking. It's a bug, which should be fixed in 1.5.1 <a href="https://github.com/elastic/elasticsearch/pull/10268" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Felastic%2Felasticsearch%2Fpull%2F10268\46sa\75D\46sntz\0751\46usg\75AFQjCNFVfdSM8Hekg209rE42-bpl1ItM_A';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Felastic%2Felasticsearch%2Fpull%2F10268\46sa\75D\46sntz\0751\46usg\75AFQjCNFVfdSM8Hekg209rE42-bpl1ItM_A';return true;">https://github.com/elastic/elasticsearch/pull/10268

On Wednesday, 25 March 2015 13:43:28 UTC-4, Mads Martin Jørgensen wrote:
They're similar. The 1.5.0 cluster has "created" : "1000199", and the 1.4.1 cluster also has "created" : "1000199"

On Wednesday, March 25, 2015 at 4:45:30 PM UTC+1, Igor Motov wrote:
Hi Mads Martin,

Could you check the version that is returned when you run curl "localhost:9200/my_own_index/_settings?pretty". The version will be in 

        "version" : {
          "created" : "XXXXXXX"
        }

Could you compare it to the version that is returned by the same index in the pre-1.5.0 cluster?

Igor

On Wednesday, 25 March 2015 09:27:03 UTC-4, Mads Martin Jørgensen wrote:
Hello all,

Just installed es-1.5.0 with cloud-aws-2.5.0 on a machine. Did a restore of a snapshot made with es-1.4.1. All documents are there, but the exists filter seems broken. The query that used to return all documents matching, now return 0 documents, even though the field exists when reading the documents.

curl -XGET "<a href="http://www.google.com/url?q=http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search\46sa\75D\46sntz\0751\46usg\75AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search\46sa\75D\46sntz\0751\46usg\75AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg';return true;">http://localhost:9200/my_own_index/document/_search" -d'

{

   "query": {

      "constant_score": {

         "filter": {

            "exists": {

               "field": "history"

            }

         }

      }

   }

}'


If we populate new documents, then the exists filter works just fine.


Regards,

Mads Martin

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5ef4c402-3609-4780-bc64-049ea5c76751%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: exists filter broken on 1.5.0 with restored index?

Neil Andrassy
Seems like it also impacts "missing". Just checking that the patch will address that too? Looks like it will from the file changes in the patch code, but thought I'd better mention it, just in case! :)

On Thursday, 26 March 2015 18:31:44 UTC, Mads Martin Jørgensen wrote:
Thanks for fixing!

On Thursday, March 26, 2015 at 3:29:17 PM UTC+1, Igor Motov wrote:
Thanks for checking. It's a bug, which should be fixed in 1.5.1 <a href="https://github.com/elastic/elasticsearch/pull/10268" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Felastic%2Felasticsearch%2Fpull%2F10268\46sa\75D\46sntz\0751\46usg\75AFQjCNFVfdSM8Hekg209rE42-bpl1ItM_A';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Felastic%2Felasticsearch%2Fpull%2F10268\46sa\75D\46sntz\0751\46usg\75AFQjCNFVfdSM8Hekg209rE42-bpl1ItM_A';return true;">https://github.com/elastic/elasticsearch/pull/10268

On Wednesday, 25 March 2015 13:43:28 UTC-4, Mads Martin Jørgensen wrote:
They're similar. The 1.5.0 cluster has "created" : "1000199", and the 1.4.1 cluster also has "created" : "1000199"

On Wednesday, March 25, 2015 at 4:45:30 PM UTC+1, Igor Motov wrote:
Hi Mads Martin,

Could you check the version that is returned when you run curl "localhost:9200/my_own_index/_settings?pretty". The version will be in 

        "version" : {
          "created" : "XXXXXXX"
        }

Could you compare it to the version that is returned by the same index in the pre-1.5.0 cluster?

Igor

On Wednesday, 25 March 2015 09:27:03 UTC-4, Mads Martin Jørgensen wrote:
Hello all,

Just installed es-1.5.0 with cloud-aws-2.5.0 on a machine. Did a restore of a snapshot made with es-1.4.1. All documents are there, but the exists filter seems broken. The query that used to return all documents matching, now return 0 documents, even though the field exists when reading the documents.

curl -XGET "<a href="http://www.google.com/url?q=http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search\46sa\75D\46sntz\0751\46usg\75AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcarter%3A9200%2Fskyfish_v2%2Fdocument%2F_search\46sa\75D\46sntz\0751\46usg\75AFQjCNHx9tllVr6Ip2n5zS9uz9FNweGcWg';return true;">http://localhost:9200/my_own_index/document/_search" -d'

{

   "query": {

      "constant_score": {

         "filter": {

            "exists": {

               "field": "history"

            }

         }

      }

   }

}'


If we populate new documents, then the exists filter works just fine.


Regards,

Mads Martin

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4f4e4538-37e0-4da5-8761-1a65fbd74957%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.