# Why my query cannot return any result althought the key exist in the message

**URL:** <https://discuss.elastic.co/t/why-my-query-cannot-return-any-result-althought-the-key-exist-in-the-message/353330>\
**Category:** Elasticsearch\
**Created:** [February 15, 2024, 6:33am UTC](https://discuss.elastic.co/t/why-my-query-cannot-return-any-result-althought-the-key-exist-in-the-message/353330 "2024-02-15T06:33:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baber1223](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baber1223/32/83533_2.png) [@baber1223](https://discuss.elastic.co/u/baber1223)\
**Post date:** [February 15, 2024, 6:33am UTC](https://discuss.elastic.co/t/why-my-query-cannot-return-any-result-althought-the-key-exist-in-the-message/353330/1 "2024-02-15T06:33:11Z")

</div>

Dear  
Hi

This is my log sample

```auto
<log realm="channel/192.168.20.10:61615" at="2024-02-14T15:25:04.930" lifespan="383ms">
  <receive>
    <isomsg direction="incoming">
      <!-- com.middle.gateway.packager.ShetabISO87APackager -->
      <field id="0" value="0200"/>
      <field id="2" value="5859471025393012"/>
      <field id="3" value="000000"/>
      <field id="4" value="000000600000"/>
      <field id="6" value="000000600000"/>
      <field id="7" value="0214152504"/>
      <field id="10" value="00000001"/>
      <field id="11" value="030322"/>
      <field id="12" value="152503"/>
      <field id="13" value="0214"/>
      <field id="17" value="0214"/>
      <field id="18" value="5915"/>
      <field id="19" value="364"/>
      <field id="22" value="021"/>
      <field id="25" value="10"/>
      <field id="26" value="04"/>
      <field id="32" value="581672141"/>
      <field id="33" value="950001"/>
      <field id="35" value="585918D5F671D46D00ECB614D0A2571A4548"/>
      <field id="37" value="141010407675"/>
      <field id="41" value="01412547"/>
      <field id="42" value="000000003950073"/>
      <field id="43" value="AF91A4FDFFF5ACFEFFFFFFFFFFFFFFFFFFFFFFFFFFFF9FF3F9FFF5F2A4A28AA1FE91935448524952" type="binary"/>
      <field id="48" value=" 00"/>
      <field id="49" value="364"/>
      <field id="51" value="364"/>
      <field id="52" value="A1C2FF8B0289C78D" type="binary"/>
      <field id="53" value="0202010202000000"/>
      <field id="60" value="00000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
      <field id="62" value="1400000002002011000000000050000N018000000 0032FC346054674088D28543E24A7F7837C600"/>
      <field id="64" value="F2B7F85600000000" type="binary"/>
    </isomsg>
  </receive>
</log>

```

According to follow pic "com.middle.gateway" is showing in the message

 ![el1](https://us1.discourse-cdn.com/elastic/original/3X/0/6/0621f57359cf91829c030356d9d0ab3d12c3fe5f.jpeg)

but when I am running query message: middle it does not return any result  
. What is the issue ?

 ![el2](https://us1.discourse-cdn.com/elastic/original/3X/f/2/f224a8312a5226151ec987cff135ea71887cdf07.jpeg)

---

<div class="post-metadata">

**Author:** ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)\
**Post date:** [February 15, 2024, 6:44am UTC](https://discuss.elastic.co/t/why-my-query-cannot-return-any-result-althought-the-key-exist-in-the-message/353330/2 "2024-02-15T06:44:21Z")

</div>

Hi @baber1223 , I guess this is for exact match.

Could you try with wildcard `message: *middle*` ?

---

<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:** [March 14, 2024, 6:44am UTC](https://discuss.elastic.co/t/why-my-query-cannot-return-any-result-althought-the-key-exist-in-the-message/353330/3 "2024-03-14T06:44:59Z")

</div>

Closed on March 14, 2024, 6:44am UTC

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