Wildcard query can't find the detail info

my es version is: 5.4.0
one of my index document like
"....\ntest\n\n\n|taga|..."

when I use wildcard query

but when I use wildcard like below:
POST kwindex/kwtype/_search
{
"query": {
"wildcard": {
"extra_search": "|taga|"
}
},
"_source":
[
"extra_search"

]
}

the result I got is :slightly_smiling_face:
{
"took": 43,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits":
}
}

I google for long time, but I did not find the reason.

any help would be sincerely appreciate!

This wildcard query returns no documents because it doesn't match your document. What did you expect with pipes ?

1 Like

thank you for your reply, I already resolve it by add "extra_search.keyword"

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