Unexpected Search Result
3 posts by 2 authors in: Forums > CMS Builder
Last Post: September 30, 2009 (RSS)
Hi there,
I'm using a simple CMSB-based search form which looks through one table and searches against title, content and author fields.
The content search (at least) is producing unexpected results and returning records which don't appear to have any variation of the search term in them.
Example:
http://www.networkingtoday.com/article-archive.php
A search 'in content' for the term "networking" produces many results (as expected) but included in those results is an article where that term does not appear in the body content. (http://www.networkingtoday.com/article/Business%20Profile:%20Mind-Over-Weight%20Success%20Formula-1084)
That term does appear in the back-end but is in other fields than the content.
Any ideas on how this is happening or how to tighten up the search function?
J.
I'm using a simple CMSB-based search form which looks through one table and searches against title, content and author fields.
The content search (at least) is producing unexpected results and returning records which don't appear to have any variation of the search term in them.
Example:
http://www.networkingtoday.com/article-archive.php
A search 'in content' for the term "networking" produces many results (as expected) but included in those results is an article where that term does not appear in the body content. (http://www.networkingtoday.com/article/Business%20Profile:%20Mind-Over-Weight%20Success%20Formula-1084)
That term does appear in the back-end but is in other fields than the content.
Any ideas on how this is happening or how to tighten up the search function?
J.
Re: [InHouse] Unexpected Search Result
By Dave - September 30, 2009
Hi Jayme,
If you view source on that page it looks like the term "networking" can be found in an html comment in that page. Search for "networking-today" in the view-source html.
I'm not sure why the html comment survived being pasted into the wysiwyg, but removing it should remove the search result.
Hope that helps! Let me know what happens.
If you view source on that page it looks like the term "networking" can be found in an html comment in that page. Search for "networking-today" in the view-source html.
I'm not sure why the html comment survived being pasted into the wysiwyg, but removing it should remove the search result.
Hope that helps! Let me know what happens.
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com
Re: [Dave] Unexpected Search Result
D'oh! Not sure what that was doing there either. Some interesting jQuery code was embedded also. Once removed though, all was well with the search. Now I need to look at other recent articles to see if similar things were happening there also.
Many thanks Dave.
Must be tiring being right all the time.
J.
Many thanks Dave.
Must be tiring being right all the time.
J.