Category Facet
-
Hello again ??
I’d really like to be able to facet on categories and tags. I noticed in cloud-search-schema.php categories and tags are defined with
'type'=>'text-array'
, and do have'FacetEnabled'=>true
in their respective options. Unfortunately, text-arrays are not facet enabled in CloudSearch! In the CloudSearch docs (https://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html):FacetEnabled — You can get facet information for any FacetEnabled field. Text fields cannot be used for faceting. Valid for: int, int-array, date, date-array, double, double-array, latlon, literal, literal-array.
Can Category and Tag be changed to a
'type' => 'literal-array'
? (I was able to just change mine, ran a re-index, and had no issues.)What would be the best way to add Category facets to a custom
cloud-search-template.php
? I’m looking atacs_perform_search_documents
but not seeing any facet parameters. Is there a hook I can use to attach faceting parameters to the search query before acs_index_documents_search?Thanks,
Amy
- The topic ‘Category Facet’ is closed to new replies.