• Hi Is it possible to set the priority of auto suggestions and or results?

    I would ideally like to achieve two things:

    Give different fields a different weight. For example if the term appears in the post title or body make it more important than if it appears in any other custom field.

    Give different custom post types priority over others. At the moment my members contain lots of xprofile fields which I’ve made searchable. This is causing problems because often the members take up all of the suggestions when there are more relevant results.

    E.g. searching for a place should give the place first then the members who work at that place.

    Is this possible?

    • This topic was modified 7 years, 7 months ago by magland.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author BuddyBoss

    (@buddyboss)

    Hi @magland

    Setting priority of searchable components( eg. places over members ) is possible. This will require updating UI in admin for new settings( jQuery-UI-Sortable or something) and code changes.

    But setting weightage of every individual xproifle fields etc will be really complex.

    Thanks for sharing your thoughts, we will keep in our suggestion list for the future update.

    Thread Starter magland

    (@magland)

    Thanks for your reply.

    As a compromise could it just be that post_title and or post_content is by default given a higher weight than all xprofile fields? For now I don’t think individual control of xprofile field weights is useful, just that post_title should be more influential.

    The relevanssi plugin does something like this:

    https://www.relevanssi.com/user-manual/installing-relevanssi-and-adjusting-the-settings/

    search weights

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Priority / order of results’ is closed to new replies.