# Highlighter - long /double field search highlights doesnt work

**URL:** <https://discuss.elastic.co/t/highlighter-long-double-field-search-highlights-doesnt-work/23179>\
**Category:** Elasticsearch\
**Created:** [April 10, 2015, 2:35am UTC](https://discuss.elastic.co/t/highlighter-long-double-field-search-highlights-doesnt-work/23179 "2015-04-10T02:35:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [April 10, 2015, 2:35am UTC](https://discuss.elastic.co/t/highlighter-long-double-field-search-highlights-doesnt-work/23179/1 "2015-04-10T02:35:44Z")

</div>

I have tw

Highlighter doesnt highlight fields of type of double /long

Here is the index mapping and search request with highlight enabled  
Index field mapping is below  
mappings": {

- "document": {
  - "dynamic\_templates": [
    - {
      - "multi": {
        - "mapping": {
          - "type": "multi\_field",
          - "fields": {
            - "{name}\_raw": {
              - "index": "not\_analyzed",
              - "type": "{dynamic\_type}"  
},

            - "{name}": {
              - "index": "analyzed",
              - "type": "{dynamic\_type}"  
}  
}  
},

        - "match": "multi\_\*"  
}  
},

    - {
      - "number": {
        - "mapping": {
          - "index": "not\_analyzed",
          - "type": "{dynamic\_type}"  
},

        - "match": "n0\*"  
}  
}  
],

  - "properties": {
    - "id": {
      - "type": "string"  
},

    - "text": {
      - "type": "string"  
},

    - "rank": {
      - "type": "double"  
},

    - "path": {
      - "type": "string"  
},

    - "createdDateTime": {
      - "format": "dateOptionalTime",
      - "type": "date"  
},

    - "dcn": {
      - "type": "string"  
},

    - "fields": {
      - "properties": {
        - "s2\_StringSort3": {
          - "type": "string"  
},

        - "BegDoc#": {
          - "type": "string"  
},

        - "DocID": {
          - "type": "string"  
},

        - "EMail\_Subject": {
          - "type": "string"  
},

        - "Filename": {
          - "type": "string"  
},

        - "OCRPath": {
          - "type": "string"  
},

        - "Filesize": {
          - "type": "string"  
},

        - "multi\_DateSort2": {
          - "type": "string",
          - "fields": {
            - "multi\_DateSort2\_raw": {
              - "index": "not\_analyzed",
              - "type": "string"  
}  
}  
},

        - "DateSent": {
          - "type": "string"  
},

        - "s1\_StringSort3": {
          - "type": "string"  
},

        - "multi\_StringSort2": {
          - "type": "string",
          - "fields": {
            - "multi\_StringSort2\_raw": {
              - "index": "not\_analyzed",
              - "type": "string"  
}  
}  
},

        - "DateRcvd": {
          - "type": "string"  
},

        - "From": {
          - "type": "string"  
},

        - "multi\_DoubleSort1": {
          - "index": "analyzed",
          - "type": "double",
          - "fields": {
            - "multi\_DoubleSort1\_raw": {
              - "type": "double"  
}  
}  
},

        - "BegAttach": {
          - "type": "string"  
},

        - "n0\_NumSort3": {
          - "type": "long"  
},

        - "n0\_NumSort4": {
          - "type": "long"  
},

        - "multi\_NumSort2": {
          - "index": "analyzed",
          - "type": "long",
          - "fields": {
            - "multi\_NumSort2\_raw": {
              - "type": "long"  
}  
}  
},

        - "multi\_NumSort1": {
          - "type": "string",
          - "fields": {
            - "multi\_NumSort1\_raw": {
              - "index": "not\_analyzed",
              - "type": "string"  
}  
}  
},

        - "n0\_DoubleSort3": {
          - "type": "double"  
},

        - "To": {
          - "type": "string"  
},

        - "n0\_DoubleSort2": {
          - "type": "double"  
},

        - "DateCreated": {
          - "type": "string"  
},

        - "ConversationIndex": {
          - "type": "string"  
},

        - "d0\_DateSort3": {
          - "format": "dateOptionalTime",
          - "type": "date"  
},

        - "NativeFile": {
          - "type": "string"  
},

        - "s3\_StringSort3": {
          - "type": "string"  
}  
}  
}  
}  
}

am doing search with the query ="n0\_DoubleSort2:"67884.18"" request with  
highlight enabled but I dont get any highlights in return

Can some one tell me if am doing some thing wrong

{  
"from": 0,  
"size": 1,  
"highlight": {  
"fragment\_size": 0,  
"number\_of\_fragments": 1,  
"fragment\_offset": 50,  
"fields": {  
"\*": {  
"order": "score",  
"require\_field\_match": true  
}  
}  
},  
"query": {  
"bool": {  
"must": [  
{  
"query\_string": {  
"query": "n0\_DoubleSort2:"67884.18"",  
"fields": [  
"\_all"  
]  
}  
}  
]  
}  
}  
}

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/294c831e-b431-4825-aa7a-e3d7aff478fa%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/294c831e-b431-4825-aa7a-e3d7aff478fa%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:20am UTC](https://discuss.elastic.co/t/highlighter-long-double-field-search-highlights-doesnt-work/23179/2 "2017-07-06T00:20:31Z")

</div>


