Help me ! i want to use wildcard(*) with span_first query in elasticsearch search query

If you think it is a bug report or you have a technical issue, please answer the following questions. For general questions, you can delete these questions.

Elasticsearch version:
7.17.0
Server OS version:
linux
Describe the issue:
i just want to search by first span of elasticsearch data with ( * wildcard)
Steps to reproduce:
1.GET /ca_location/_search
{
“query”: {
“span_first” : {
“match” : {
“span_term” : { “display_name”: “toro*” }
},
“end” : 1
}
}
}

Expected behavior:
i want all words which start with “toro*” in first span of data
Provide configuration:
elasticsearch/config/elasticsearch.yml
elasticsearch/plugins/search-guard-7/sgconfig/sg_config.yml
kibana/config/kibana.yml (if relevant)

Provide logs:
Elasticsearch
Screenshots (if relevant):
[Uploading: Screenshot from 2022-02-12 15-02-54.png…]( in this query i don’t get any result )
[Uploading: Screenshot from 2022-02-12 15-03-09.png…]( when i use full word then i got result , how can in get result by using (* wildcard) )

Errors in browser console (if relevant):

Additional data:

@nitin_gaur
This issue is not related to the Search Guard security plugin. It is a limitation of the span_term query that is part of Elasticsearch.

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