Help partial Windows directory path match

Dear,

i need to match a partial directory path.
Example i have that path C:\Windows\system32\config\systemprofile\AppData\Roaming\ , and i want to match in a query only the first part of the path C:\Windows\system32 .

Who can help me understand how can i do?

Thank you a lot.

I'd use a path tokenizer: https://www.elastic.co/guide/en/elasticsearch/reference/5.2/analysis-pathhierarchy-tokenizer.html

Thank you Davide, i just use toke but i don't know why but the token is not match and the query is null.

it's really strange!!!