Skip Navigation

[Resolved] Toolset Search Not Working

This thread is resolved. Here is a description of the problem and solution.

Problem: I am using a WordPress Archive for the site search archive, including custom post types and custom fields. The results are not complete.

Solution: Check to be sure Relevanssi is configured to index custom fields and custom post types. Also check the minimum word length if you want to index a two-letter abbreviation, like "UX".

Relevant Documentation:

https://toolset.com/documentation/user-guides/searching-texts-custom-fields-views-relevanssi/

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 20 replies, has 2 voices.

Last updated by maxfieldB 5 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1376565
Screen Shot 2019-11-05 at 10.14.04 AM.png
Screen Shot 2019-11-05 at 10.14.14 AM.png
Screen Shot 2019-11-05 at 10.14.24 AM.png
Screen Shot 2019-11-05 at 10.14.35 AM.png

It looks like I spoke too soon,

While some terms, such as "computer" are now working - other terms, (attached image), are returning blank search results even though we have multiple entries with these terms.

I am actually a bit frustrated on how much effort has gone into getting search to work. I would expect that this would have worked with little or no effort given what a core function search is to WP. Really hoping this can get resolved without a lot of extra work on our end.

#1376667
Screen Shot 2019-11-05 at 2.27.46 PM.png

The Relevanssi index shows no custom fields have been indexed (see the attached screenshot). From what I can see, "Microsoft" in your example is included a custom field called "program-name" that has not been indexed. This is why you do not see "Microsoft" results in the custom search results. Please index this custom field, and any others you want to include in search results, as described in the documentation here:
https://toolset.com/documentation/user-guides/searching-texts-custom-fields-views-relevanssi/

Then let me know if you do not see the correct search results appear.

#1379035
Screen Shot 2019-11-08 at 9.03.36 AM.png
Screen Shot 2019-11-08 at 9.03.47 AM.png

Thank you,

This seems to improve most of the results, but I'm still seeing a few get lost, for example "UX" - attached below. Can you help with this?

#1379353

Sorry, I responded to the wrong comment. I'm looking at the UX missing issue now.

#1379355
Screen Shot 2019-11-10 at 9.36.03 AM.png

I see, the minimum word length for Relevanssi is set at 3 by default. In your case, that should be lower if you want to index the "UX" abbreviation. I made that adjustment for you, saved the options, then rebuilt the index and cleared the page cache. See the screenshot, I made this change in Settings > Relevanssi > Indexing > Advanced Indexing Settings. Now several more posts appear when searching for the term "UX". You should note that lowering the minimum word length for indexing has other impacts on Relevanssi results, where some less-relevant results appear. If you'd like to customize that, I think you'll have the best results speaking to Relevanssi support since I'm not an expert in their system.

#1379535

Thank you for your help there. Apologies for all the back and forth - I think that, for whatever reason, it just took us some time to find the right options. And you are correct that changing the word length totally fixed it.

Thanks again!!
Max