How to apply fuzzy prefix matching on not_analyzed child field

Hi All,
I am new to elasticsearch. I am having difficulty in construction of query that will do prefix match along with fuzziness on non-analyzed field that is a child field.

i have mapping like A has property B. B has Property C. C is not_analyzed field. I need to do filter/search_as_you_type thing on it.
This works for me

{
"query" : {
"nested" : {
"path": "A.B",
"query": {
"prefix": {
"postcode": "W1"
}
}
}
}
}

Sorry for not constructing question correctly.
TIA

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