• 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 at acs_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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrea Landonio

    (@lando1982)

    Hi Amy,

    I’m working on a big plugin extension.. I’ll manage your issue as soon as possible. Keep in touch ??

    Many thanks,
    Bye

    Thread Starter amywieliczka

    (@amywieliczka)

    Let me know if there’s anything I can do to help. I’m a pretty seasoned developer with faceting in particular, but I’m also very new to WordPress and php. I’m happy to work on this with you, but I just don’t quite know the best places to integrate this. If there’s a general strategy that you think would work well, feel free to outline it and I’ll see what I can do about hacking it together. I’ll let you know if I make any progress before you do.

    Thanks always for your quick and friendly replies.
    -Amy

    Plugin Author Andrea Landonio

    (@lando1982)

    Hi Amy, i’m appreciate for your support, really! Now, I’ve my mind only on the other extensions.. your issue should be easy….I hope ?? … let me think about it and I’ll give you a feedback..
    Wait for me ??
    Bye!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category Facet’ is closed to new replies.