How to filter the response of opensearch API in the request?

I want to query an opensearch index and to retrieve only the _source inside the hits tag. I tried to make the request in Postman like: GET: http://localhost:9200/my_index/_search?q="product1234"?format=json?filter_path=hits.hits._source but this also gets me the metadata and all the other informative fields, like: { "took": 17, "timed_out": false, "_shards": { "total": 1, "successful": 1, "skipped": 0,… Read More How to filter the response of opensearch API in the request?

ElasticSearch: Possible to Query with Regex Field?

I have indexed data into ElasticSearch using the following index settings: KNN_INDEX = { "settings": { "index.knn": True, "index.knn.space_type": "cosinesimil", "index.mapping.total_fields.limit": 10000, "analysis": { "analyzer": { "default": { "type": "standard", "stopwords": "_english_" } } } }, "mappings": { "dynamic_templates": [ { "sentence_vector_template": { "match": "sent_vec*", "mapping": { "type": "knn_vector", "dimension": 384, "store": True } }… Read More ElasticSearch: Possible to Query with Regex Field?