Raghu Venmarathoor
Raghu Venmarathoor

Reputation: 868

Implementing guided navigation using vespa

I'm trying to implement guided navigation using vespa. At present, I am using grouping to implement it. I've written a query like this.

SELECT * FROM entity where sddocname contains 'entity' | all(group(category) each(group(item_category) each(output(count()))));

In the above example category is like "electronics","automobiles" etc and "item_category" is like "mobile phone","car"etc.

I don't want to select any documents, I just wanted to see the grouped data. Is there a better way to solve this problem?

Upvotes: 1

Views: 68

Answers (1)

Jo Kristian Bergum
Jo Kristian Bergum

Reputation: 3184

Use limit 0 to remove the plain hit list. Example here https://docs.vespa.ai/documentation/tutorials/blog-search.html

limit 0 in yql or just specify &hits=0

Upvotes: 2

Related Questions