I have an Elasticsearch index ingested with inference pipeline using ELSER. While performing the search I would like to filter and show all the URL's containing "/cn/" in it. (http://www.elastic.co/giude/cn/*).
How to add filter section in the below search query to filter out all the URLs containing "/cn/"?
Of course, it depends on the analyzer you have for the url field (and subfields). Here I presumed that you defined a path subfield which is using a path-hierarchy tokenizer.
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.