<![CDATA[ Avoid path to images in AjaxSearch results ? - MODX Community Forums]]> https://forums.modx.com/thread/?thread=97761 <![CDATA[Avoid path to images in AjaxSearch results ?]]> https://forums.modx.com/thread/97761/avoid-path-to-images-in-ajaxsearch-results#dis-post-528668
I have the issue that images in named folders pollute the results from AjaxSearch.

Example
In the html code of some page is some path to an image like:
assets/images/rugby/some-rugbyman.jpg

I don't want that page being returned on the basis of the image path when searching for "rugby". However, if the page contains the word "rugby" in its text, I want it to be returned. Of course, this is for all search expressions and not only "rugby".

I assume I need some Ditto filtering with a regular expression or equivalent. Some filtering that would exclude searching the word when in a chain between double quotes and starting with "assets".

Is there a way to do it?]]>
Jul Jul 21, 2015, 11:28 AM https://forums.modx.com/thread/97761/avoid-path-to-images-in-ajaxsearch-results#dis-post-528668