Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 3 replies, 2 voices, and was last updated 4 years, 11 months ago by
Casper Blackwell.
-
AuthorPosts
-
10/31/2018 at 11:20 pm #476130
Casper Blackwell
ParticipantHi Steve,
On this page: https://theaumnation.com/wellness-services/?cn-country=United%2BStatesIf you do a “name or keyword” search for “medium” 22 results are shown, but only 6 profiles have “medium” as a keyword, (see screen pic).
The site owner says this happens with some other words as well.
Please advise.
Thanks in advance,
Casper10/31/2018 at 11:23 pm #476131Casper Blackwell
ParticipantThis reply has been marked as private.11/01/2018 at 10:07 am #476153Steven Zahm
Keymaster@ Casper
Ok, I admit it did take me about 20 mins to figure this out … but the search results are correct.
The bio field is saved as HTML — when sending a search query to the database, the database does not ignore HTML tags and such. So, when a search is performed, class names, image file paths, link URLs will also be searched and returned as hits it they contain a match.
In the case of
medium
this is matching a class name of medium applied to the WP images added in the bio field. So, they are returned as matches.This is not a bug or Connections limitation. Take for example this search applied to the whole site using the core WP search:
https://theaumnation.com/?s=medium
The second result is this page:
https://theaumnation.com/building-strong-relationships-teresayork/
The word medium is not found in the page text but it applied as a class name to an image so it is returned as a result.
The same this for these pages:
- https://theaumnation.com/whatsonyourmind-patriciajoy/
- https://theaumnation.com/dont-eat-anything-with-a-face-byteresayork/
- https://theaumnation.com/clutter-teresa-york/
In fact only the first search result has medium in the text body. All the other on the first page of results did not. I did not check the remaining search result pages.
I hope this explains it clearly enough that you can explain it to your client.
Hope this helps!
ps. I did search to see if HTML could be ignored, it can not. The only viable solution would be to save the bio twice. The second instance would have HTML stripped. It is this instance that would then have to be searched instead. Implementing this would be a considerable challenge at this point and not that much benefit.
11/02/2018 at 7:57 pm #476285Casper Blackwell
ParticipantThanks for the clarity Steve, makes sense!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.