elasticsearch-image icon indicating copy to clipboard operation
elasticsearch-image copied to clipboard

QueryPhaseExecutionException: AbstractMethodError[org.apache.lucene.search.Weight.scorer...

Open kadishmal opened this issue 10 years ago • 3 comments

Using ES 1.3.1. The error also occurs in ES 1.2.1. Works fine with ES 1.1.2.

Mapping:

{
  "digit": {
    "properties": {
      "image": {
        "type": "image",
        "feature": {
          "CEDD": {
            "hash": "BIT_SAMPLING"
          },
          "JCD": {
            "hash": [
              "BIT_SAMPLING",
              "LSH"
            ]
          },
          "FCTH": {}
        },
        "metadata": {
          "jpeg.image_width": {
            "type": "string",
            "store": "yes"
          },
          "jpeg.image_height": {
            "type": "string",
            "store": "yes"
          }
        }
      }
    }
  }
}

Index new data:

curl -XPOST 'localhost:9200/digit_recognizer/digit/1' -d '{
    "image": "iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAklEQVR4AewaftIAAAJ+SURBVL3BsUticQDA8a8/fz1BiGpoOClIaAjC4O4CkRc02BY4HtQSeEQEFYQG0hKH0D/wyBs8CjrLIRsiFKuptSgb2hyi4RKDwMHKsAfHI4IjrufTys/HxhMBfAO+A194XwXgN5AA/tgAAeg0h88OBIEAzaEIYJrm8QjgK83zWdBkkgY5HA4GBweZm5tDVVUuLy9ZXl4mnU5jRtIAVVWJxWJ4PB6euVwuNE0jnU5jRlIHu91OIBBgfX0dKSXb29ukUimEEGxsbOB0Omlvb6dUKvEaiUUdHR0sLi4SCoXY3d1laWmJs7MzDKurqxju7u4olUqYkVg0Pz9PKBQimUwSDAZ5eHjA0N/fz8TEBIa9vT1qkVgwMjLCwsICmqYRDoepVqs8m52dRQjB8fEx8XicWiQ19PX1sbKywuTkJIlEgpdUVUXXdaampsjlctQiqCEQCHBzc0MymeR/hBDk83lyuRxWCEwoikJvby/j4+Pous5LTqcTQzwexyqJia6uLtxuN/f39/zL7XYTjUbxer309PTQ2tqKVRITbW1t+P1+XC4XxWIRw+joKOFwmOHhYU5PT6lWq1QqFaySmCiXy1QqFTY3Nzk4OMDn8+HxeFAUhbW1NSKRCKlUCq/Xi1USE/l8nrGxMSKRCDMzMxg0TWN/f59sNouu69ze3nJxcYFVkhp2dnY4OjpiaGgIw+HhIdfX1zzz+Xycn59jlcSCQqHA1tYWr+ns7MQqwRt0d3fjcDjIZDJYJXgDKSU2m416CN7A7/fT0tJCPQRwQoMGBgYQQlCHEwH8okHZbJbHx0eurq6wKGPjSQyY5mP9BKJ2nqSBIvAJcPG+ToAo8AMo/wW9pc9PVN6/VgAAAABJRU5ErkJgggAAAAIAAAABAAAA/////wEAAAAAAAAAAAAAAAEAAQABAAAAAB5rAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="
}'

Trying to search the same image:

curl -XPOST 'localhost:9200/digit_recognizer/digit/_search' -d '{
  "query": {
    "image": {
      "image": {
        "feature": "CEDD",
        "image": "iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAklEQVR4AewaftIAAAJ+SURBVL3BsUticQDA8a8/fz1BiGpoOClIaAjC4O4CkRc02BY4HtQSeEQEFYQG0hKH0D/wyBs8CjrLIRsiFKuptSgb2hyi4RKDwMHKsAfHI4IjrufTys/HxhMBfAO+A194XwXgN5AA/tgAAeg0h88OBIEAzaEIYJrm8QjgK83zWdBkkgY5HA4GBweZm5tDVVUuLy9ZXl4mnU5jRtIAVVWJxWJ4PB6euVwuNE0jnU5jRlIHu91OIBBgfX0dKSXb29ukUimEEGxsbOB0Omlvb6dUKvEaiUUdHR0sLi4SCoXY3d1laWmJs7MzDKurqxju7u4olUqYkVg0Pz9PKBQimUwSDAZ5eHjA0N/fz8TEBIa9vT1qkVgwMjLCwsICmqYRDoepVqs8m52dRQjB8fEx8XicWiQ19PX1sbKywuTkJIlEgpdUVUXXdaampsjlctQiqCEQCHBzc0MymeR/hBDk83lyuRxWCEwoikJvby/j4+Pous5LTqcTQzwexyqJia6uLtxuN/f39/zL7XYTjUbxer309PTQ2tqKVRITbW1t+P1+XC4XxWIRw+joKOFwmOHhYU5PT6lWq1QqFaySmCiXy1QqFTY3Nzk4OMDn8+HxeFAUhbW1NSKRCKlUCq/Xi1USE/l8nrGxMSKRCDMzMxg0TWN/f59sNouu69ze3nJxcYFVkhp2dnY4OjpiaGgIw+HhIdfX1zzz+Xycn59jlcSCQqHA1tYWr+ns7MQqwRt0d3fjcDjIZDJYJXgDKSU2m416CN7A7/fT0tJCPQRwQoMGBgYQQlCHEwH8okHZbJbHx0eurq6wKGPjSQyY5mP9BKJ2nqSBIvAJcPG+ToAo8AMo/wW9pc9PVN6/VgAAAABJRU5ErkJgggAAAAIAAAABAAAA/////wEAAAAAAAAAAAAAAAEAAQABAAAAAB5rAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
        "hash": "BIT_SAMPLING",
        "boost": 2.1,
        "limit": 100
      }
    }
  }
}'

Results in the following error:

{
  "took": 77,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 4,
    "failed": 1,
    "failures": [
      {
        "index": "digit_recognizer",
        "shard": 2,
        "status": 500,
        "reason": "QueryPhaseExecutionException[[digit_recognizer][2]: query[filtered(image.CEDD.hash.BIT_SAMPLING,[1903, 1139, 3287, 2053, 3462, 31, 3771, 2619, 2800, 1156, 3427, 1547, 2963, 2514, 54, 2615, 92, 3889, 1420, 1063, 1420, 2252, 1352, 4054, 1985, 2649, 3935, 3715, 2188, 1853, 1760, 3958, 3233, 1181, 2210, 2277, 2487, 3780, 2495, 2638, 1722, 2286, 1989, 2191, 1754, 353, 206, 588, 713, 159, 891, 3237, 2154, 2933, 3317, 3719, 2381, 164, 3008, 2457, 2223, 1131, 223, 1066, 1326, 1630, 108, 1240, 811, 2069, 3380, 2128, 3063, 1094, 2666, 2321, 3275, 3008, 154, 402, 2982, 1699, 1093, 1056, 3367, 2065, 1342, 659, 3793, 2259, 3581, 373, 3398, 3896, 2975, 1065, 2846, 2185, 779, 2817],100,image.CEDD,CEDD^2.1)->cache(_type:digit)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: AbstractMethodError[org.apache.lucene.search.Weight.scorer(Lorg/apache/lucene/index/AtomicReaderContext;Lorg/apache/lucene/util/Bits;)Lorg/apache/lucene/search/Scorer;];"
      }
    ]
  },
  "hits": {
    "total": 0,
    "max_score": null,
    "hits": []
  }
}

kadishmal avatar Aug 08 '14 08:08 kadishmal

I' facing same problem. ES 1.3.0 plugin 1.2.0

{ took: 61 timed_out: false _shards: { total: 5 successful: 3 failed: 2 failures: [ { index: dodol-themes shard: 1 status: 500 reason: QueryPhaseExecutionException[[dodol-themes][1]: query[filtered(theme_image.JCD,JCD)->cache(_type:theme)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: AbstractMethodError; } { index: dodol-themes shard: 2 status: 500 reason: RemoteTransportException[[node003][inet[/10.98.225.204:9300]][search/phase/query]]; nested: QueryPhaseExecutionException[[dodol-themes][2]: query[filtered(theme_image.JCD,JCD)->cache(_type:theme)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: AbstractMethodError; } ] } hits: { total: 0 max_score: null hits: [ ] } }

jeesim2 avatar Sep 23 '14 04:09 jeesim2

I think it has been fixed in the master. https://github.com/kzwang/elasticsearch-image/commit/89bce3146c2b0e10838afeb78ab7bb30f3cc8490

I am not sure when it will be released though...

thorikawa avatar Sep 29 '14 04:09 thorikawa

I'm also facing the same issue while querying the index. Can someone let me know when the 1.3.0 plugin will be available for download? Or is there any other way to make it work with ES 1.3.0 & plugin 1.2.0?

curl -XPOST http://localhost:9200/test/test/_search

{ "took": 81, "timed_out": false, "_shards": { "total": 5, "successful": 2, "failed": 3, "failures": [ { "index": "test", "shard": 4, "status": 500, "reason": "QueryPhaseExecutionException[[test][4]: query[filtered(my_img.CEDD,CEDD)->cache(_type:test)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: AbstractMethodError; " }, { "index": "test", "shard": 0, "status": 500, "reason": "QueryPhaseExecutionException[[test][0]: query[filtered(my_img.CEDD,CEDD)->cache(_type:test)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: AbstractMethodError; " }, { "index": "test", "shard": 1, "status": 500, "reason": "QueryPhaseExecutionException[[test][1]: query[filtered(my_img.CEDD,CEDD)->cache(_type:test)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: AbstractMethodError; " } ] }, "hits": { "total": 0, "max_score": null, "hits": [ ] } }

Thirunavukkarasu avatar May 13 '15 14:05 Thirunavukkarasu