This query will return results like "Prime" and "Prime Minister", which is correct for my use case.
Problem is when try to add a second term for completion. For example "value": "prime m*". In this case, no results are returned. Any ideas how to fix my query?
You haven't provided many details, but the reason it doesn't work is because the token generated isn't composed of prime and minister.
In this case, I suggest using a shingle analyzer to obtain a token with prime and minister so that your query will work.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.