<p dir="auto">Hi,</p>
<p dir="auto">I have been trying to run wildcard queries against .kibana indices on ES 1.4.4. I am querying on _id. While prefix query runs, wildcard queries don't.</p>
<p dir="auto">Example</p>
<blockquote>
<p dir="auto">curl localhost:9200/,kibana/_search?pretty -d '{"query":{"prefix":{"_id":"TC"}}}'</p>
</blockquote>
<p dir="auto">Gives results, but</p>
<blockquote>
<p dir="auto">curl localhost:9200/,kibana/_search?pretty -d '{"query":{"wildcard":{"_id":"TC*"}}}'</p>
</blockquote>
<p dir="auto">Gives me an empty result.</p>
<p dir="auto">I'm using Elasticsearch 1.3.4. Occasionally I see the following DEBUG stack trace (few of them are logged sequentially) in the log file. No search requests are failing around the same time though. There was nothing wrong with the cluster too when this exception was logged. Is this exception harmless? If not, what are the repercussions? I did some digging around the same exception on the internet and in the Issues list of Elasticsearch but I found most of those issues were related to <code class="notranslate">scan</code> and <code class="notranslate">scroll</code>. We don't use <code class="notranslate">scan</code> and <code class="notranslate">scroll</code> search requests. Let me know if you need more data.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DEBUG!!default!![2015-02-16 19:41:54,432][DEBUG][action.search.type       ] [&lt;Query Node Name&gt;] [27419] Failed to execute fetch phase
org.elasticsearch.transport.RemoteTransportException: [&lt;Data Node Name&gt;][inet[/xx.x.x.xxx:9300]][search/phase/fetch/id]
Caused by: org.elasticsearch.search.SearchContextMissingException: No search context found for id [27419]
    at org.elasticsearch.search.SearchService.findContext(SearchService.java:481)
    at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:451)
    at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:793)
    at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:782)
    at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:275)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)"><pre class="notranslate"><code class="notranslate">DEBUG!!default!![2015-02-16 19:41:54,432][DEBUG][action.search.type       ] [&lt;Query Node Name&gt;] [27419] Failed to execute fetch phase
org.elasticsearch.transport.RemoteTransportException: [&lt;Data Node Name&gt;][inet[/xx.x.x.xxx:9300]][search/phase/fetch/id]
Caused by: org.elasticsearch.search.SearchContextMissingException: No search context found for id [27419]
    at org.elasticsearch.search.SearchService.findContext(SearchService.java:481)
    at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:451)
    at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:793)
    at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:782)
    at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:275)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)
</code></pre></div>