The guide you linked to is for Elasticsearch 8.15. Always make sure you are looking at the documentation for the version you are using, especially when working in an area that moves as quickly as vector serach. I would recommend you upgrade to the latest version of Elasticsearch (or consult the documentation for the correct version - there has been changes to the page you linked to betwen these versions).
could you help me building the query as i have fields like name, address and description and i want to prioritize search result for name and adress and description should have very less priorities.
i know how we can set priorities for a normal search but how to do it when using an elser model for semantic search.
The easiest way to do this is with RRF. We have some examples in our documentation about how you can do hybrid search that combines standard text search with semantic search and reranking them with RRF. This should get you started.
Alternately you can use linear boosting in each boolean clause in your query.
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.