In my ES mapping I have an \'uri\' field which is currently set to not_analysed and I\'m not allowed to change the mapping.I wanted to search for uri parts with a query_string q
Try to use match query instead of query string.
{ "sort": [ { "updated": { "order": "desc" } } ], "query": { "bool": { "must": [ { "match": { "uri": "*w3\\.org\\/2014\\/01\\/a*" } } ] } }, "size": 50 }
Query string queries are not analyzed and but match queries are analyzed.