# ElasticSearchAPIConnector - snippet or highlight query

**URL:** https://discuss.elastic.co/t/elasticsearchapiconnector-snippet-or-highlight-query/320147
**Category:** Elasticsearch
**Created:** [November 30, 2022, 11:36am UTC](https://discuss.elastic.co/t/elasticsearchapiconnector-snippet-or-highlight-query/320147 "2022-11-30T11:36:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tavaradhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tavaradhan/32/102983_2.png) [@tavaradhan](https://discuss.elastic.co/u/tavaradhan)
#### Post date: [November 30, 2022, 11:36am UTC](https://discuss.elastic.co/t/elasticsearchapiconnector-snippet-or-highlight-query/320147/1 "2022-11-30T11:36:59Z")

</div>

hi,  
I am experimenting with ElasticsearchAPIConnector using SearchUI on a small document base. I want to get the full field returned with highlights. The field is less than 1000 characters long. I tried using highlight with number\_of\_fragments as zero, but I seem to not have success in getting the full field. I see that if i include snippet in the result\_fields (holdover from using appsearch connector), I get highlighted snippet, but it is truncated (whereas when using appsearch, I set size as 900 and was able to get the full field back with highlights).  
If I go to dev console in kibana, and query with a search term and highlight with number\_of\_fragments =0, then I get the proper result in kibana dev console (i.e. highlighted full field is returned along with raw field)  
any pointers?  
warning: I am a newbie at this, and hence, might be making simple/newbie type mistakes too.

thanks  
varadhan

---

<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: [December 28, 2022, 11:37am UTC](https://discuss.elastic.co/t/elasticsearchapiconnector-snippet-or-highlight-query/320147/2 "2022-12-28T11:37:55Z")

</div>

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