Search for St. Cloud vs. St Cloud
Permalink
I have a client using Concrete5.6 and they are using the core search block to search for pages under a certain page for the city in a custom select attribute called "Location", which has the "Content included in sitewide page search index" option checked.
The search works for "St. Cloud", but returns nothing for "St Cloud" (no period). All of the results have "St. Cloud" in the title as well, but do not have "St Cloud" in the title.
Is there a way to get the core search to return items with "St. Cloud" selected for searches of "St. Cloud"?
The search works for "St. Cloud", but returns nothing for "St Cloud" (no period). All of the results have "St. Cloud" in the title as well, but do not have "St Cloud" in the title.
Is there a way to get the core search to return items with "St. Cloud" selected for searches of "St. Cloud"?
Unfortunately this is much harder than it seems, because the core Search block just searches for the exact string, not the individual words in the string.
Thanks hutman. That is pretty much what I figured.
Do you know of any add-ons that do a better job of searching than the core block? I tried using PageList+ to filter by page attribute (rather than search), but I couldn't get it to work.
Do you know of any add-ons that do a better job of searching than the core block? I tried using PageList+ to filter by page attribute (rather than search), but I couldn't get it to work.
I don't know of any add-ons sadly, all I know is that there was a discussion about this for 5.6 quite a while ago here -https://www.concrete5.org/community/forums/chat/how-to-search-multip...
Which talks about a solution, you could give this solution a go, the only problem is that if you do that you're going to get every page that has "st" in it anywhere, which I'm pretty sure isn't what you want either.
You said that the "Location" attribute is a select attribute, would it be better to add a Location dropdown to the form for searching rather than to accept user input?
Which talks about a solution, you could give this solution a go, the only problem is that if you do that you're going to get every page that has "st" in it anywhere, which I'm pretty sure isn't what you want either.
You said that the "Location" attribute is a select attribute, would it be better to add a Location dropdown to the form for searching rather than to accept user input?
That was my thinking, which is why I turned to PageList+. I have had pretty good luck with it in the past, but it doesn't seem to be working here. I even updated it to version 6.0.0.0, which is the highest version supporting Concrete5.6. No luck.
I will try the fix outlined in the link you posted. If that doesn't work, I am going to try filtering out the punctuation to see if that helps. I will let you know what I figure out tomorrow.
Thanks for your help!
I will try the fix outlined in the link you posted. If that doesn't work, I am going to try filtering out the punctuation to see if that helps. I will let you know what I figure out tomorrow.
Thanks for your help!