I'm using Elastic Cloud and the Elastic Search UI. I'm trying to understand how the default search request is created by the onSearch function. For example I'm trying to see why the search-term is queried as a 'should' multi_match. I want this to be a 'must'. I did it by changing the requestBody just before the query was sent. I'm hoping there is less fragile way to do it.
Is there documentation on how the onSearch function creates requests? If not can you point me at the code to review to understand it..
Can you share the code snippet you have where you are overriding the requestBody? Are you using a particular connector?
I couldn't quite track down the exact code in the GitHub repo to tell you how to override this as I've not managed to do it myself. But @joemcelroy may know as he maintains the project.
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.