# Highlight does not work when searching on attachment with ES 0.19

**URL:** <https://discuss.elastic.co/t/highlight-does-not-work-when-searching-on-attachment-with-es-0-19/7000>\
**Category:** Elasticsearch\
**Created:** [March 14, 2012, 3:50pm UTC](https://discuss.elastic.co/t/highlight-does-not-work-when-searching-on-attachment-with-es-0-19/7000 "2012-03-14T15:50:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Heimburger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandre_heimburger/32/2941_2.png) [@Alexandre\_Heimburger](https://discuss.elastic.co/u/Alexandre_Heimburger)\
**Post date:** [March 14, 2012, 3:50pm UTC](https://discuss.elastic.co/t/highlight-does-not-work-when-searching-on-attachment-with-es-0-19/7000/1 "2012-03-14T15:50:58Z")

</div>

Hi,

Everything is in the title.

When I run the script from the gist : [https://gist.github.com/1075067](https://gist.github.com/1075067)

Highlight is not returned.

Any idea ?

--  
Regards,

ahb

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 14, 2012, 4:44pm UTC](https://discuss.elastic.co/t/highlight-does-not-work-when-searching-on-attachment-with-es-0-19/7000/2 "2012-03-14T16:44:43Z")

</div>

Hi Alexandre,

Seems that you hit the same problem as before :  
[https://groups.google.com/group/elasticsearch/browse\_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807](https://groups.google.com/group/elasticsearch/browse_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807)

Do you want me to test again the gist on my side ?  
Did you start with a clean fresh new installation of ES ?

David.

On 14 mar, 16:50, Alexandre Heimburger [alexheimbur...@gmail.com](mailto:alexheimbur...@gmail.com)  
wrote:

> Hi,
> 
> Everything is in the title.
> 
> When I run the script from the gist :[Test of attachments plugin · GitHub](https://gist.github.com/1075067)
> 
> Highlight is not returned.
> 
> Any idea ?
> 
> --  
> Regards,
> 
> ahb

---

<div class="post-metadata">

**Author:** ![alheim](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@alheim](https://discuss.elastic.co/u/alheim)\
**Post date:** [March 14, 2012, 5:20pm UTC](https://discuss.elastic.co/t/highlight-does-not-work-when-searching-on-attachment-with-es-0-19/7000/3 "2012-03-14T17:20:17Z")

</div>

It's not really the same ptoblem because I run ES on a debian box, and I  
get some result.

Just the highlight is missing.

Is it working on your side ?

On Wed, Mar 14, 2012 at 5:44 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Hi Alexandre,
> 
> Seems that you hit the same problem as before :
> 
> [https://groups.google.com/group/elasticsearch/browse\_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807](https://groups.google.com/group/elasticsearch/browse_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807)
> 
> Do you want me to test again the gist on my side ?  
> Did you start with a clean fresh new installation of ES ?
> 
> David.
> 
> On 14 mar, 16:50, Alexandre Heimburger [alexheimbur...@gmail.com](mailto:alexheimbur...@gmail.com)  
> wrote:
> 
> > Hi,
> > 
> > Everything is in the title.
> > 
> > When I run the script from the gist :[Test of attachments plugin · GitHub](https://gist.github.com/1075067)
> > 
> > Highlight is not returned.
> > 
> > Any idea ?
> > 
> > --  
> > Regards,
> > 
> > ahb

## -- Alexandre Heimburger VP Engineering blueKiwi Software tel : +33687880997 email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com) adress : 93 rue Vieille du Temple, 75003 Paris

blueKiwi is the innovation leader in Enterprise Social Software. Our  
solutions enable enterprises worldwide to engage and interact with their  
internal and external social networks in multiple business domains.  
blueKiwi has been consistently recognized by Gartner Inc. as a visionary  
provider since 2007.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 14, 2012, 5:29pm UTC](https://discuss.elastic.co/t/highlight-does-not-work-when-searching-on-attachment-with-es-0-19/7000/4 "2012-03-14T17:29:18Z")

</div>

I will try later (@home)

Keep in touch.

Le 14 mars 2012 à 18:20, Alexandre Heimburger [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com) a  
écrit :

> because I run ES on a debian box, and I get some result.
> 
> Just the highlight is missing.
> 
> Is it working on your side ?
> 
> On Wed, Mar 14, 2012 at 5:44 PM, David Pilato \< [david@pilato.fr](mailto:david@pilato.fr)  
> [mailto:david@pilato.fr](mailto:david@pilato.fr) \> wrote:
> 
> > Seems that you hit the same problem as before :  
> > [https://groups.google.com/group/elasticsearch/browse\_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807](https://groups.google.com/group/elasticsearch/browse_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807)  
> > [https://groups.google.com/group/elasticsearch/browse\_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807](https://groups.google.com/group/elasticsearch/browse_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807)
> > 
> > Do you want me to test again the gist on my side ?  
> > Did you start with a clean fresh new installation of ES ?
> > 
> > David.
> > 
> > On 14 mar, 16:50, Alexandre Heimburger \< [alexheimbur...@gmail.com](mailto:alexheimbur...@gmail.com)  
> > [mailto:alexheimbur...@gmail.com](mailto:alexheimbur...@gmail.com) \>  
> > wrote:
> > 
> > > Hi,
> > > 
> > > Everything is in the title.
> > > 
> > > When I run the script from the gist : [Test of attachments plugin · GitHub](https://gist.github.com/1075067)  
> > > [https://gist.github.com/1075067](https://gist.github.com/1075067)
> > > 
> > > Highlight is not returned.
> > > 
> > > Any idea ?
> > > 
> > > --  
> > > Regards,
> > > 
> > > ahb
> 
> ## -- Alexandre Heimburger VP Engineering blueKiwi Software tel : +33687880997 email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com) [mailto:ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com) adress : 93 rue Vieille du Temple, 75003 Paris
> 
> blueKiwi is the innovation leader in Enterprise Social Software. Our  
> solutions enable enterprises worldwide to engage and interact with their  
> internal and external social networks in multiple business domains.  
> blueKiwi has been consistently recognized by Gartner Inc. as a visionary  
> provider since 2007.

--  
David Pilato  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 14, 2012, 9:34pm UTC](https://discuss.elastic.co/t/highlight-does-not-work-when-searching-on-attachment-with-es-0-19/7000/5 "2012-03-14T21:34:33Z")

</div>

Hi Alexandre,

Everything is working fine :

I get this answer from ES :

{"ok":true,"\_shards":{"total":1,"successful":1,"failed":0}}{

```
"hits" : [ {

  "_index" : "test",

  "_type" : "attachment",

  "_id" : "s_C9wgsCQRKteC4i_WbjjQ",

  "_score" : 0.005872132,

  "fields" : {

    "file.title" : "ISL99201"

  },

  "highlight" : {

    "file" : ["\nMono <em>Amplifier</em>\nThe ISL99201 is a fully integrated high efficiency class-D \nmono <em>amplifier</em>. It is designed"]

  }

} ]

```

}

}

I used ES 0.19.0, elasticsearch-mapper-attachments-1.3.0, JDK 1.6.0\_25 on Windows 7 32 bits.

HTH

David.

De : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] De la part de Alexandre Heimburger  
Envoyé : mercredi 14 mars 2012 18:20  
À : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
Objet : Re: Highlight does not work when searching on attachment with ES 0.19

It's not really the same ptoblem because I run ES on a debian box, and I get some result.

Just the highlight is missing.

Is it working on your side ?

On Wed, Mar 14, 2012 at 5:44 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Hi Alexandre,

Seems that you hit the same problem as before :  
[https://groups.google.com/group/elasticsearch/browse\_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807](https://groups.google.com/group/elasticsearch/browse_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807)

Do you want me to test again the gist on my side ?  
Did you start with a clean fresh new installation of ES ?

David.

On 14 mar, 16:50, Alexandre Heimburger [alexheimbur...@gmail.com](mailto:alexheimbur...@gmail.com)  
wrote:

> Hi,
> 
> Everything is in the title.
> 
> When I run the script from the gist :[Test of attachments plugin · GitHub](https://gist.github.com/1075067)
> 
> Highlight is not returned.
> 
> Any idea ?
> 
> --  
> Regards,
> 
> ahb

--  
Alexandre Heimburger  
VP Engineering  
blueKiwi Software  
tel : +33687880997  
email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com)  
adress : 93 rue Vieille du Temple, 75003 Paris

* * *

blueKiwi is the innovation leader in Enterprise Social Software. Our solutions enable enterprises worldwide to engage and interact with their internal and external social networks in multiple business domains. blueKiwi has been consistently recognized by Gartner Inc. as a visionary provider since 2007.

---

<div class="post-metadata">

**Author:** ![alheim](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@alheim](https://discuss.elastic.co/u/alheim)\
**Post date:** [March 14, 2012, 11:10pm UTC](https://discuss.elastic.co/t/highlight-does-not-work-when-searching-on-attachment-with-es-0-19/7000/6 "2012-03-14T23:10:54Z")

</div>

Ok. The thing was related to my default analyzer which was the keyword one.

Using a standard analyzer correct my issue.

Thanks guys

On Wed, Mar 14, 2012 at 10:34 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Hi Alexandre,\*\*\*\*
> 
> * * *
> 
> * * *
> 
> Everything is working fine :\*\*\*\*
> 
> I get this answer from ES :\*\*\*\*
> 
> {"ok":true,"\_shards":{"total":1,"successful":1,"failed":0}}{\*\*\*\*
> 
> ```
> "hits" : [ { ****
> 
> "_index" : "test", ****
> 
> "_type" : "attachment", ****
> 
> "_id" : "s_C9wgsCQRKteC4i_WbjjQ", ****
> 
> "_score" : 0.005872132, ****
> 
> "fields" : { ****
> 
> "file.title" : "ISL99201" ****
> 
> }, ****
> 
> "highlight" : { ****
> 
> "file" : [ "\nMono <em>Amplifier</em>\nThe ISL99201 is a fully
> 
> ```
> 
> integrated high efficiency class-D \nmono _amplifier_. It is  
> designed" ]\*\*\*\*
> 
> ```
> } ****
> 
> } ] ****
> 
> ```
> 
> }\*\*\*\*
> 
> }\*\*\*\*
> 
> * * *
> 
> I used ES 0.19.0, elasticsearch-mapper-attachments-1.3.0, JDK 1.6.0\_25 on  
> Windows 7 32 bits.\*\*\*\*
> 
> * * *
> 
> HTH\*\*\*\*
> 
> David.\*\*\*\*
> 
> * * *
> 
> * * *
> 
> * * *
> 
> _De :_ [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [mailto:  
> [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] _De la part de_ Alexandre Heimburger  
> _Envoyé :_ mercredi 14 mars 2012 18:20  
> _À :_ [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> _Objet :_ Re: Highlight does not work when searching on attachment with  
> ES 0.19\*\*\*\*
> 
> * * *
> 
> It's not really the same ptoblem because I run ES on a debian box, and I  
> get some result.\*\*\*\*
> 
> * * *
> 
> Just the highlight is missing.\*\*\*\*
> 
> * * *
> 
> Is it working on your side ?\*\*\*\*
> 
> On Wed, Mar 14, 2012 at 5:44 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:\*\*\*\*
> 
> Hi Alexandre,
> 
> Seems that you hit the same problem as before :
> 
> [https://groups.google.com/group/elasticsearch/browse\_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807](https://groups.google.com/group/elasticsearch/browse_thread/thread/8781e5b9bddd39e0/e9a9a0c509d2b807?#e9a9a0c509d2b807)
> 
> Do you want me to test again the gist on my side ?  
> Did you start with a clean fresh new installation of ES ?
> 
> David.
> 
> On 14 mar, 16:50, Alexandre Heimburger [alexheimbur...@gmail.com](mailto:alexheimbur...@gmail.com)  
> wrote:\*\*\*\*
> 
> > Hi,
> > 
> > Everything is in the title.
> > 
> > When I run the script from the gist :[Test of attachments plugin · GitHub](https://gist.github.com/1075067)
> > 
> > Highlight is not returned.
> > 
> > Any idea ?
> > 
> > --  
> > Regards,
> > 
> > ahb\*\*\*\*
> 
> * * *
> 
> * * *
> 
> --  
> Alexandre Heimburger  
> VP Engineering  
> blueKiwi Software  
> tel : +33687880997  
> email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com)  
> adress : 93 rue Vieille du Temple, 75003 Paris\*\*\*\*
> 
> * * *
> 
> * * *
> 
> blueKiwi is the innovation leader in Enterprise Social Software. Our  
> solutions enable enterprises worldwide to engage and interact with their  
> internal and external social networks in multiple business domains.  
> blueKiwi has been consistently recognized by Gartner Inc. as a visionary  
> provider since 2007.\*\*\*\*
> 
> * * *

## -- Alexandre Heimburger VP Engineering blueKiwi Software tel : +33687880997 email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com) adress : 93 rue Vieille du Temple, 75003 Paris

blueKiwi is the innovation leader in Enterprise Social Software. Our  
solutions enable enterprises worldwide to engage and interact with their  
internal and external social networks in multiple business domains.  
blueKiwi has been consistently recognized by Gartner Inc. as a visionary  
provider since 2007.

---

<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, 3:36am UTC](https://discuss.elastic.co/t/highlight-does-not-work-when-searching-on-attachment-with-es-0-19/7000/7 "2017-07-06T03:36:04Z")

</div>


