Phase Suggestion can be done in the search api. I wonder if there's a way to reuse the query in search api call for the Collate query.
Thanks!
Phase Suggestion can be done in the search api. I wonder if there's a way to reuse the query in search api call for the Collate query.
Thanks!
Hey,
I am not sure, what you mean with reuse here. You have to specify the query manually, wherever you want to place it.
--Alex
Hi Alexander,
I got it now. Thank you! Also is there a way to say only give me suggestion if the total number of documents returned is less than a number?
nothing on top of my head, that would allow you to do this, as the option only checks if there is a match. Only way is to improve the query to be more strict what it returns.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.