I'm looking for a solution where I need to match a query phrase against multiple fields, represented below as companyField1, companyField2, and companyField3.
I currently am using the following query in my Java program:
QueryBuilders.multiMatchQuery(companyName, "companyField1", "companyField2", "companyField3").type(MatchQueryBuilder.Type.PHRASE_PREFIX).operator(Operator.AND);
This works very well for company searches like "International Business Machines", "Business Machines", "International Business Mach", but I am also looking for it to match again "national Business Machines". In other words, I'm looking for something like MatchQueryBuilder.Type.PHRASE_PREFIX but instead of PHRASE_PREFIX I would like a PHRASE_SUFFIX field. Is there anything like this possible, since there is no PHRASE_SUFFIX built into elasticsearch?