Skip Navigation

[Resolved] Fuzzy Search

This support ticket is created 2 years, 9 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
- 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 1 reply, has 2 voices.

Last updated by Minesh 2 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#2335155

Tell us what you are trying to do?
We are currently building a search page on our development site. The search functionality will have free text fields that can search custom posts. The custom posts might have an address field with data such as "19 Elmbury Rd". Is it possible to configure the Toolset search so that if a user is searching "19 Elmbury Road" that it would return a result such as "19 Elmbury Rd"? Essentially, this is fuzzy searching. There would be a lot more scenarios like this (i.e. - "Pk" instead of "Park", "Ave" instead of "Avenue", etc...)

Is there any documentation that you are following?
Not at the moment.

Is there a similar example that we can see? Not at the moment

What is the link to your site? Site is in development at the moment, so not publicly available.

#2335189

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Toolset offers the function to search within the values available within the database. Toolset do not have any artificial intelligance so that if you search for "19 Elmbury Road" it should return the "19 Elmbury Rd".

But I believe if you use the like clause with your search it should return the result as you wanted. I suggest you should try to create a search with like clause and see if you able to see desired results.

When you setup a text search with Toolset that will eventually search within post title and content (as optional), when you search for "19 Elmbury Road" it should give you both results "19 Elmbury Road" and "19 Elmbury Rd".

I suggest you setup a test site on our free test platform http://www.discover-wp.com and create a test site using any of our readymade reference site and try to check with text search functionality:
- https://discover-wp.com/site-templates/

Here is the Doc about how you can add text search:
- https://toolset.com/course-lesson/searching-texts-in-custom-fields-with-toolset-and-relevanssi/#integration-with-custom-searches

More info:
- https://toolset.com/course-lesson/creating-a-custom-search/