Keep some taxonomies out of suggestions

  • rvs
    Participant
    # 5 days, 12 hours ago

    Hi,

    I have some taxonomies that i don’t want to appear in my suggestions.
    Is there a way to keep them out (but still being used for search results) ?

    wpsolr
    Keymaster
    # 5 days, 11 hours ago

    Is it for keyword suggestions, or content suggestions?

    rvs
    Participant
    # 5 days, 10 hours ago

    Sorry, it’s for keyword suggestions.

    wpsolr
    Keymaster
    # 5 days, 10 hours ago

    In Elasticsearch there is a notion of “contexts” to filter autocompletions. But not in Solr. Therefore, there is no plan to filter keywords by categories.

    But, there is a plan to introduce a new notion of “views” in WPSOLR later.

    Currently, all menus 2.x define a single (implicit) “view”. By generalizing this notion to multiple views, you would be able to define a view for your search with categories (2.1 for the search, and 2.2 with categories), and another view for your suggestions without categories (2.2 without categories, and 2.4 for your suggestions). Each view would use its own index, or share other views indexes.

    This would enable your feature, for both Elasticsearch and Solr, but also many other complex settings.

    • This reply was modified 5 days, 10 hours ago by  wpsolr.
    rvs
    Participant
    # 5 days, 10 hours ago

    Ok thank you for this answer!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.