yesil
yesil

Reputation: 697

How to fetch all the literal values from an index field in AWS CloudSearch

We are developing an application that needs to populate the tag parameter in the search options with all the literal values from tags field in cloudsearch (multi-valued literals).

tags field is a faceted index that I would like to fetch its values without defining q parameter value in my query. Is that ever possible?

Upvotes: 0

Views: 698

Answers (1)

alexroussos
alexroussos

Reputation: 2681

The query term is always required but you can use the matchall operator with the structured parser to match all documents (docs), eg

?q=matchall&q.parser=structured&facet.tags={}&size=0

That will give the facets for tags across all documents in your index.

Upvotes: 1

Related Questions