Skip Navigation

[Resolved] Text search – extending to include custom taxonomies

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by Minesh 1 year, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2606981

By default the text search only includes the title and content. Is it possible to extend this to include custom taxonomies? Usually I would do this using a tool like SearchWP but that does not seem to be working here. It's confusing for users to be able to toggle a category to search for something but not type the same term into text search.

#2606997

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

The Views Text search (rather than filtering) uses the built-in WordPress search functionality, which only searches titles and, optionally, the post body.

What if you try to use the relevanssi plugin that includes taxonomies in the search.:
- https://wordpress.org/plugins/relevanssi/

More info:
- https://toolset.com/course-lesson/searching-texts-in-custom-fields-with-toolset-and-relevanssi/

#2607005

Thanks Minesh,

A couple of things:

#2607013

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

well - the plugin says it can index the post type and custom taxonomies:
- https://wordpress.org/plugins/relevanssi/


- Index custom post types and custom taxonomies.

Can you please check without Toolset and with Toolset if you can able to search in taxonomies.

#2607015

According to the post on https://toolset.com/forums/topic/include-taxonomies-in-search-result-with-relevanssi/ custom taxonomies don't work with Relevanssi. There is a proposed solution but it's quite a hack and not really ideal:

One possible workaround, for someone with an absolute requirement, can be to create a regular page for each archive page that should be searchable and then set that page to redirect to the relevant archive page.

Any better solutions? I imagine this is a common enough scenario so it seems like a better solution should really be available.

#2607019

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

No - there is no such feature available as shared Toolset do not have feature but you may check with "relevanssi" plugin support if they can offer you any workaround in this case and if yes, you are welcome to share here.

#2607159

Hi,

I've contacted Relevanssi and it looks like that end is working fine and should (in theory) also work with Toolset. I believe the two links below should in fact give the same results... they are both search for "Dublin" but the results are very different.

This one works -- using the checkbox filters
hidden link

The text search is not however working in the same way and not searching the custom taxonomies
hidden link

#2607167

Sorry I meant to add if you make the search in the Relevanssi admin search the results are correct... but they are not giving the same results in the Toolset view text search.

#2607391

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As shared there is no such feature available to search within taxonomy but you may check with Relevanssi support and check with them how you can achieve this and kindly share the solution you may get here as that will help other users as well.