Custom script sort type [integer] not supported

Hey guys,

I'm trying to make a custom script sorting and can't find what type values I may use. This page says that short, integer and float types are supported, but it gives me an error:

      "reason" : {
        "type" : "search_parse_exception",
        "reason" : "custom script sort type [integer] not supported",
        "line" : 12,
        "col" : 7
      }

The default scripting language is Painless and it calls integers ints. Sorry for the confusion. That page you linked is about Elasticsearch's types in mappings. Here are some pages about painless.

I use ES 2.3.3 where groovy is default I guess, so both int and integer ain't working. The number type from example is working.

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