You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing a hybrid query along with bucket aggregation, the aggregation field in the response is empty but if the same query is converted to bool format, it gives proper response. Tried with both neural query and text query, gives empty aggregations in both.
{
"index": "117",
"description": "BEHR PREMIUM PLUS Exterior Paint & Primer is a 100% Acrylic, low VOC formula designed for a long-lasting finish that resists moisture, fading & stains and provides a mildew and corrosion resistant finish. It delivers exceptional hide and excellent touch-up while also providing comprehensive all-climate protection.",
"brand": "BEHR PREMIUM PLUS"
}
Sample query with params (search_pipeline=home-depot-search-pipeline)
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 2,
"successful": 2,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 2,
"relation": "eq"
},
"max_score": 0.5,
"hits": [
{
"_index": "home-depot-nlp",
"_id": "2536",
"_score": 0.5,
"_source": {
"description": "Add a fine touch of elegance in your modern inspired living space with this modern style round suar side table with stainless steel legs. This side table is in a category of its own since it is made from suar wood and stainless steel. The beautiful natural dark brown finish of the table surface is crafted from wood while the stable legs it sits in is forged from stainless steel. The unique sleek and low-profile design of the legs and the brown accent of the table surface will make an excellent addition to your living room space in your modern home. This item comes shipped in 1 carton. Suitable for indoor use only. Maximum weight limit is 100 lbs. Made in Indonesia. Contemporary design.",
"brand": "Litton Lane"
}
}
]
},
"aggregations": {
"response_codes": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
}
}
Thanks for creating the github issue.
Aggregations is not be supported with Hybrid query as of now. This can be taken up as a feature request.
navneet1v
added
Features
Introduces a new unit of functionality that satisfies a requirement
and removed
bug
Something isn't working
labels
Oct 10, 2023
navneet1v
changed the title
[BUG] Aggregations with Hybrid Query
[Feature] Support Aggregations with Hybrid Query
Oct 10, 2023
Describe the bug?
When performing a hybrid query along with bucket aggregation, the aggregation field in the response is empty but if the same query is converted to bool format, it gives proper response. Tried with both neural query and text query, gives empty aggregations in both.
How can one reproduce the bug?
What is the expected behavior?
Bucket aggregation is returned for the documents.
Screenshots
Create Index Request
Create normalization processor
/_search/pipeline/home-depot-search-pipeline
Sample Document
Sample query with params
(search_pipeline=home-depot-search-pipeline)
Response:
Query with bool clause
Response for query with bool clause
What is your host/environment?
OS: Linux running on EC2 installed with docker-compose
The text was updated successfully, but these errors were encountered: