I want to support partial name searches against authors field.
SO I have something like ...
{"match": {"authors": "schm"}},
{"match_phrase": {"authors": "schm"}},
{"match_phrase_prefix": {"authors": {
"query" : "schm",
"boost":10,
"max_expansions" : 10
}}}
I had a couple of clarifications to seek ...
- Do I need both match and match_phrase? I think yes. If searching for "Chris John", "match_phrase" wont give back hits for "Chris", and "match" wont give preference to simultaneous occurance of "Chris John".
- More importantly, if I have match_phrase_prefix, do I need "match_phrase" since match_phrase_prefix builds up on original phrase anyway, somewhat like wildcard?
Thanks!