I want to use aggregations over the search result of the knn_search api in elasticsearch (because I need facet search on the user interface), but I cannot pass the agg parameter as in the search api. Any suggestions?
Tldr;
As per the documentation of this endpoint GET /<index>/_knn_search.
You just can not give the parameter agg.
In 8.4
Although in the latest version of elasticsearch, you can use the knn search in the standard search queries.
Related
I want to take a look at the actual terms in an Elasticsearch index. In Solr, I can just open the admin and get a list of the most common terms. Is there an Elasticsearch equivalent of this?
How to add script in elastic search 7.9.3?
The recent docs shows that, for using the scripts with the terms aggregation, we need runtime fields which are not yet available in the elastic search 7.9.3. Now what to do?
Can We use MLT concept of ES to filter documents with similar fields.Is it possible to give weight to the individual field. What is elastic search recommendations.
Yes you can: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html According to your fields, this could be easy or difficult.
According to the the Elasticsearch 5 release note listing breaking changes , the geo_distance_range query is no longer supported.
Eventhough the official documentation doesn't state such a change, using this API is printing an error :
[geo_distance_range] queries are no longer supported for geo_point field types. Use geo_distance sort or aggregations
The suggestion is to use bucket aggregations instead of the geo_distance_range query feature.
But aggregations are by nature something quite different from applying a search filter (possibily in combination with other filters).
Is there any way to achieve the same thing as this feature originally provided in previous versions of Elastic search ?
I just started Kibana TERM Analysis with Elasticsearch. when i Search 'Barak Obama' it shows in TERM Analysis different results like Barak(15),Obama(18) in separate Term. I want in Single Pharse like Barak Obama(30). where should i change in configuration.
Thanks in Advance
You can customize your analyzer to do this with using shingle token filter.
What is an analyzer?
What is shingle token filter?