Skip Navigation

[Closed] View queries using space characters

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
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 4 replies, has 2 voices.

Last updated by Christian Cox 4 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#1935891

Tell us what you are trying to do?
I want to create a search string to look for {space}tavel{space}, where space is a blank space. Right now, the query is picking up thinkgs like Montavel when I use Select items with field: title is a string like tavel. But, I only want Tavel. How can I fix this?

Is there any documentation that you are following?

Is there a similar example that we can see?
hidden link

What is the link to your site?

#1936987

Hi, can you tell me a bit more?
- Is this a front-end filter, like a text search box where your site visitors can enter their own custom search string, or is this a filter applied in the backend using the Query Filter settings? I'm not able to tell easily based on the link you provided (it's a 404 for me).

- Is this View created in the Block Editor, or is this View created using the legacy Views editor?

- Are you using the Relevanssi plugin to enhance text searches?

#1937209
tavel query.png

Relvannsi is a good tip. I'm not using it, but I'll check it out.

Here's a screenshot of what I'm trying to do. This is a query in a block. I want to remove any results where tavel is part of a larger word. So, I thought adding a space character to the search would get the results I need. Perhaps there's another way to go about this. Thanks!

#1937241

My issue is resolved now. Thank you!

#1937251
equal.png

If you want to match the custom field value "tavel" exactly, but exclude results with custom field values like "ipsumtavel", "lorem tavel ipsum", "tavelipsum", and so on, you can change "like" to "equal to" in the filter configurations (screenshot equal.png).

If you're trying to accomplish something else, I'd need more information.

The topic ‘[Closed] View queries using space characters’ is closed to new replies.