query_string不适用于ElasticSearch中的大写字符串

'query' => array(
                    'query_string' => array(
                        'fields'=> array('name'),
                        "analyze_wildcard" => true,
                        'query' => '*tom*'
                    )
                )

I use this query phrase in php program,and It match lowercase strings, eg: tom/test/1 , but 'Tom/test/2' is not matched, I tried 'query' => 'Tom' also not worked. Any suggestions? Thanks a lot.

How about changing the line

'query' => '*tom*'

to

strtolower('query') => strtolower('*tom*')

I've not tested that - so it may not work, but in theory, set both sides of the equation to lowercase and it should ignore case.