Wildcard query can't find the detail info

(laoyang360) #1

my es version is: 5.4.0
one of my index document like

when I use wildcard query

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


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!

(Xavier Facq) #2

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

(laoyang360) #3

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

(system) #4

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