# Highlight, number\_of\_fragments seem does not work

**URL:** <https://discuss.elastic.co/t/highlight-number-of-fragments-seem-does-not-work/18393>\
**Category:** Elasticsearch\
**Created:** [June 30, 2014, 10:48am UTC](https://discuss.elastic.co/t/highlight-number-of-fragments-seem-does-not-work/18393 "2014-06-30T10:48:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanguy\_Bernard](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@Tanguy\_Bernard](https://discuss.elastic.co/u/Tanguy_Bernard)\
**Post date:** [June 30, 2014, 10:48am UTC](https://discuss.elastic.co/t/highlight-number-of-fragments-seem-does-not-work/18393/1 "2014-06-30T10:48:42Z")

</div>

Hello,  
I'm using this elasticsearch client  
: [https://github.com/nervetattoo/elasticsearch](https://github.com/nervetattoo/elasticsearch)  
And I have no "highlight" result when I search :

$params = array(  
"index" =\>"my\_index",  
"type" =\> "my\_type",  
"body" =\> array(  
"size"=\>30,  
'query' =\> array(  
'multi\_match' =\> array(  
'fields' =\> array('title','description')  
'query' =\> keywords,  
),  
),  
)  
);

```
   * 

```

$params['body']['highlight']['fields'][$value]['number\_of\_fragments']=20; \*// not  
work, I don't know why ?

$results = $this-\>elasticsearchClient-\>search($params);

Can you help me ?  
Thank you in advance.

Tanguy

--  
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/d4f40556-f790-4760-80f4-37f02829ad8f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d4f40556-f790-4760-80f4-37f02829ad8f%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, 1:18am UTC](https://discuss.elastic.co/t/highlight-number-of-fragments-seem-does-not-work/18393/2 "2017-07-06T01:18:55Z")

</div>


