Skip Navigation

[Gelöst] Search Keywords not bringing back expected results

This support ticket is created vor 1 Jahr, 1 Monat. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 4 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von Minesh vor 1 Jahr, 1 Monat.

Assistiert von: Minesh.

Author
Artikel
#2652495
Screenshot 2023-10-13 at 8.45.00 AM.jpg
Screenshot 2023-10-13 at 8.44.37 AM.jpg

Tell us what you are trying to do?
On this page, versteckter Link I have a search with drop downs and a text search. If you text search for "Olafur" no results are found. Yet this is an artist first name as you see in the drop down above it. This page searches a CPT call Artwork and Artwork has a relationship to Artist. I've installed Relvanssi as suggested but still not getting this to work as expected. Can you please assist?

#2652603

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

When you add text search to a View it is searching the title and contents (and possibly custom fields, if enabled) of the posts being queried by that View.

If "Olafur" doesn't belong to the posts being queried but instead belongs to a related post, then it's not possible to use it as a search term for the posts being queried.

Views doesn't support filtering by fields of related posts, and Relevanssi can't help in that regard.

You would need to create a field for the post type being queried that includes the keywords you intend users to be able to search for.

#2655117
Screenshot 2023-10-20 at 7.27.31 AM.jpg
Screenshot 2023-10-20 at 7.25.43 AM.jpg

Hi Nigel! I created a custom field called "artist-name-for-searching" in the artwork CPT. I populated this field on one record,
Panoramic awareness pavilion and then rebuilt index in Relavanssi. Then emptied cache and tried to search using either of the words in that field and no results were still returned.

#2655183

Minesh
Supporter

Sprachen: Englisch (English )

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

Can you please send me admin access details and let me review how you added the text search filter.

Please share details with what keyword I should search and what is your expected result.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2655735

Minesh
Supporter

Sprachen: Englisch (English )

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

Can you please check now: versteckter Link

The issue was with the frontend filter you added for text search.

You have to chose the option "Title, body and custom field" for text search query filter added for text search. Please check the following screenshot:
=> versteckter Link

#2655777

Thank you so much!