# Is it a correct use of highlighting? And some wildcard highlight field issues

**URL:** <https://discuss.elastic.co/t/is-it-a-correct-use-of-highlighting-and-some-wildcard-highlight-field-issues/11301>\
**Category:** Elasticsearch\
**Created:** [March 25, 2013, 7:58pm UTC](https://discuss.elastic.co/t/is-it-a-correct-use-of-highlighting-and-some-wildcard-highlight-field-issues/11301 "2013-03-25T19:58:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roytmana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roytmana/32/44855_2.png) [@roytmana](https://discuss.elastic.co/u/roytmana)\
**Post date:** [March 25, 2013, 7:58pm UTC](https://discuss.elastic.co/t/is-it-a-correct-use-of-highlighting-and-some-wildcard-highlight-field-issues/11301/1 "2013-03-25T19:58:52Z")

</div>

Could you please validate my use of highlighting to make sure I am using  
some unexpected behavior

I search on "\_all" (or another multi\_field created composite field) but  
then list my individual (primary) properties in highlight section. As  
long as I used the same analyzer on \_all and on those fields I am  
highlighting (stemming) I get correct highlights on my individual (primary)  
fields. If I understand correctly, as long as I do not tell ES to highlight  
on matched fields only, highlighting is pretty much independent from  
actual searching

Also I have a wildcard based highlighting question. The problem I am  
running into is ES exception when one of the fields matching wildcard is  
numeric (or date I guess).  
Is it possible to either have more flexible selection criteria (including  
say field type match) or have a lenient flag not to try highlighting text  
tokens in numeric fields (or highlight numeric tokens using lexicographical  
matching)?

Thank you,  
Alex

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:44am UTC](https://discuss.elastic.co/t/is-it-a-correct-use-of-highlighting-and-some-wildcard-highlight-field-issues/11301/2 "2017-07-06T02:44:36Z")

</div>


