Skip Navigation

[Resolved] Can not using Relevanssi setting to added custom field into search

This support ticket is created 4 years, 6 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 9 replies, has 2 voices.

Last updated by Luo Yang 4 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1363075

WP: 5.2.4
Relevanssi: 2.4.3

Message Body:
hidden link

above have picture describe.

And here added admin login for you to check out

hidden link

#1363115

Hello,

Thanks for the details, I have edited your post to remove your website credentials, it is not safe to show those information publicly.

I can log into your website, here are what I found:
1) You are using "Relevanssi Premium" plugin, so those links you mentioned in the screenshot do not work, those link are based on Relevanssi free plugin, download from:
https://wordpress.org/plugins/Relevanssi/

2) In your case, you can follow our document to setup the Relevanssi settings:
https://toolset.com/documentation/user-guides/searching-texts-custom-fields-views-relevanssi/

3) It seems you have already setup those settings correctly, and I have tested it in your website home page, search with keyword "nrthtryrty", I can see there is only one correct item in view's output, for example:
hidden link

One notice:
You can add the following kinds of fields to Relevanssi’s index:
- Single line
- Multiple line
- WYSIWYG

See the document I mentioned above, section "Which custom fields can I add to Relevanssi’s index with Toolset?
"

#1363129
FireShot Capture 025 - Relevanssi ‹ 搜搜商家 — WordPress - sosomerchant.com.png
toolset-relevanssi-adding-fields-to-index.png

Thanks for your help. I already change to free version.

but you say Relevanssi settings index option can not found custom field.

Where can I find custom place to setting.

I buy Premium because can not find custom field place.

#1363147

we want to address, E-mail , phone can be search either.

#1363151

Q1) First, I did not say this: Relevanssi settings index option can not found custom field

Please check these in your website:
Dashboard-> 設定-> Relevanssi-> Indexing
in section "Custom fields", you are using "All" option, so all custom fields will be indexed by "Relevanssi" plugin.

If you need only some specific custom fields to be indexed, you can switch to option "Some", and fill the custom field slugs, like this:

wpcf-k, wpcf-t

"wpcf-k" is field slug of field "關鍵字"
"wpcf-t" is field slug of "其他聯絡方式"

See the document I mentioned above:
https://toolset.com/documentation/user-guides/searching-texts-custom-fields-views-relevanssi/#adding-the-fields-and-rebuilding-the-index

Q2) we want to address, E-mail , phone can be search either.
As the document I mentioned above, there isn't such kind of built-in feature within Toolset Views plugin, Views Relevanssi’s index supports only three kinds of custom field:
- Single line
- Multiple line
- WYSIWYG
You might consider add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#1363153

As a workaround, you can also add three fields in Views custom search form:
- address
- E-mail
- phone

So your user can also search on those custom fields too.

More help:
https://toolset.com/documentation/user-guides/front-page-filters/

#1363603
NN2.jpg
NN1.jpg

I already setting but can not work, and rebuild index and update to Premium can not work too

As picture I added

#1364005

Where and how can I see the problem as you mentioned above:
setting but can not work

I have tried these in your website:
1) Create a new "廠商登錄" post:
hidden link
in field "關鍵字" fill value: keyword A
in field "其他聯絡方式" fill value: keyword B

2) Test it in front-end:
Search with above two keywords, for example:
hidden link
hidden link
I can see it works fine, output the new post correctly.

Is there any missing?

#1364249

setting but can not work

like below picture link

hidden link

#1365169

Thanks for the screenshot, as I mentioned above:

You are using "Relevanssi Premium" plugin, so the link you mentioned in the screenshot does not work, that link is based on Relevanssi free plugin

https://toolset.com/forums/topic/can-not-using-relevanssi-setting-to-added-custom-field-into-search/#post-1363115

You just need to do as mentioned in our document:
Dashboard-> 設定-> Relevanssi Premium-> Indexing
in section "Custom fields", copy/paste the field slugs as what you have already done:

wpcf-t, wpcf-k, wpcf-a
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.