Highlighting without array

 {
      "from" : 0,
      "size" : 10,
      "query" : {
        "query_string" : {
          "query" : "some query",
          "fields" : [ "field1", "field2", ... ],
          "use_dis_max" : true
        }
      },
      "highlight" : {
        "pre_tags" : [ "<span class=\"mark\">" ],
        "post_tags" : [ "</span>" ],
        "order" : "score",
        "encoder" : "html",
        "require_field_match" : true,
        "fields" : {
          "*" : { }
        }
      }
    }

can i show the highlighter without an array
i tried with number_of_fragments = 0 but nothing happened

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