Skip Navigation

[Resolved] Is there a way we can improve on the search capabilities

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 22 replies, has 3 voices.

Last updated by ashodK 1 year, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2598651

Is there a way we can improve on the search capabilities typically used like quotation marks for exact searches, asterisk for multi-letter wildcard, question mark for single letter wildcard, etc.

I realize our data is hard to query because it doesn't benefit from fuzzy search.
Thus it will be possible to make "approximate" searches.

#2598679

I was sampling with wildcards I like to use which are the ones I mentioned and results come to the top but also include non matches. Maybe plus and minus would also be helpful. "", *, ?, +, and - and the ability that they can be used in combination like "Agh*a?an" + "George" results should include George Aghjayan, George Aghdjayan, George Aghjaian, George Aghdjaian, etc.

#2598735

Nigel
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there

That's not something available with WordPress search or with Toolset's implementation, and you would need a search plugin to improve on what is currently possible.

Relevanssi includes this, and is integrated with searches created with Views.

hidden link

#2598789

Can It be implemented in archive pages the way we have it configurated?
hidden link
hidden link
hidden link
hidden link
hidden link

#2598791

And is there development required or does it automatically work, once we have the premium Relevanssi plugin installed?

Thanks

#2598967

Hello,

The "Complex Queries" is a feature of Relevanssi plugin, you can follow our document to integrate Relevanssi with Toolset WordPress Archive custom search form:
https://toolset.com/course-lesson/searching-texts-in-custom-fields-with-toolset-and-relevanssi/
section "Integration with custom searches"

#2599367

Can you help me set that up please
not sure I quite understand

1 - first article you guys sent, it say add the following somewhere (no idea where and how)
hidden link

It mentions the following
Search operators. Premium only. Relevanssi Premium includes search operators which you can use to control the search.
Does that mean, if I purchase premium, it will automatically be active on my site? Or is there more config to be done?

2 - I have added relevencie, can you please login to check if it's done correctly please?
hidden link
hidden link
hidden link

Thanks

#2599391

Q1) According to their document, "Complex Queries" feature requires Relevanssi Premium plugin.

Since it is a feature of Relevanssi plugin, it would be better to check their support:
hidden link

Q2) I think you are using correct settings in your screenshot, if you need more assistance for it, please provide your website credentials in below private message box

#2599423

I have checked the Relevanssi settings in your website, I think you are using correct setup, please let me know if you need other assistance.

#2601571

I reached out to their support
haven't heard anything back

#2601945

Just got a response from relevanssi

As these are not standard WordPress search pages, I don't know if these work with Relevanssi or not. You should probably ask Toolset support about it, they'll know better. They're the ones who've done the Relevanssi and Toolset compatility; they know Relevanssi better than I know Toolset.

#2602509

any update?

#2602719

Since I don't have a copy of Relevanssi Premium plugin in my localhost, I am not sure if the "Complex Queries" feature works in Toolset WordPress Archive, can you install the Relevanssi Premium plugin in your website? and follow their document to setup it:
hidden link

#2603359

premium relevanssi has now been installed
Can you check now

#2603855

I have tried these in your website:
1) Edit theme file "functions.php":
hidden link
Line 145, add below line:

add_filter( 'relevanssi_wildcard_search', '__return_true' );

2) Test it in frontend, for example:
hidden link
It does not work, so Toolset plugin does not support this feature does by default.

3) As a workaround, you can pass WP built-in search parameter to WordPress Archive, for example:
Edit WordPress Archive:
hidden link
Add a search box with HTML codes:

WP built-in search:<input type="text" name="s" value="[wpv-search-term param="s"]" class="js-wpv-filter-trigger-delayed form-control">

And disable all AJAX search feature

4) Test it in frontend, for example:
hidden link
It works fine.

For your reference.