# Searching data in documents in more exact manner

**URL:** <https://discuss.elastic.co/t/searching-data-in-documents-in-more-exact-manner/14931>\
**Category:** Elasticsearch\
**Created:** [December 18, 2013, 12:05pm UTC](https://discuss.elastic.co/t/searching-data-in-documents-in-more-exact-manner/14931 "2013-12-18T12:05:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deep\_saxena](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@deep\_saxena](https://discuss.elastic.co/u/deep_saxena)\
**Post date:** [December 18, 2013, 12:05pm UTC](https://discuss.elastic.co/t/searching-data-in-documents-in-more-exact-manner/14931/1 "2013-12-18T12:05:25Z")

</div>

{  
DATA:this is a sample querwsf QW$E%#@% T#%#TGRF#@T [https://github.com/T](https://github.com/T) Y$Y%@#  
$T%HYT#R $GNBMKL:?"P":KIJU:UILOKITRTREQFGRT%RTRHGRV ;key=value;key2=value2;  
quer  
key:value  
key2:valu2  
key:value1  
appgroup:value1  
}

appgroup=value1 yes  
key=value1 yes  
"key=value1" no  
"sample value" no  
"sample quer" yes, but quer at the end should not be highlighted  
""P":KL" yes  
"# $T%HYT#R $" yes  
"# $T%HYT#R ^" no  
key=value yes

those with yes should match and no should not return any result

--  
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/dd00f9fe-53f1-42bd-a6d5-3fab5f23eb01%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dd00f9fe-53f1-42bd-a6d5-3fab5f23eb01%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [December 18, 2013, 12:10pm UTC](https://discuss.elastic.co/t/searching-data-in-documents-in-more-exact-manner/14931/2 "2013-12-18T12:10:54Z")

</div>

You posted the same content as an issue. I added a comment there.

Please read carefully help guide here: [http://www.elasticsearch.org/help/](http://www.elasticsearch.org/help/)

Extract:  
a clear description of the problem will help other users to help you.

The best thing to do is to gist a simple, complete curl recreation of the issue. That way, any user can recreate your problem locally.

The most complete your gist is, the quickest you will receive help from users!

I will be happy to help you.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 18 décembre 2013 at 13:05:28, deep saxena ([sandy100ster@gmail.com](mailto:sandy100ster@gmail.com)) a écrit:

{  
DATA:this is a sample querwsf QW$E%#@% T#%#TGRF#@T Y$Y%@# $T%HYT#R $GNBMKL:?"P":KIJU:UILOKITRTREQFGRT%RTRHGRV ;key=value;key2=value2; quer  
key:value  
key2:valu2  
key:value1  
appgroup:value1  
}

appgroup=value1 yes  
key=value1 yes  
"key=value1" no  
"sample value" no  
"sample quer" yes, but quer at the end should not be highlighted  
""P":KL" yes  
"# $T%HYT#R $" yes  
"# $T%HYT#R ^" no  
key=value yes

## those with yes should match and no should not return any result

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/dd00f9fe-53f1-42bd-a6d5-3fab5f23eb01%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dd00f9fe-53f1-42bd-a6d5-3fab5f23eb01%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/etPan.52b190ce.436c6125.111%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.52b190ce.436c6125.111%40MacBook-Air-de-David.local).  
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:00am UTC](https://discuss.elastic.co/t/searching-data-in-documents-in-more-exact-manner/14931/3 "2017-07-06T02:00:24Z")

</div>


