Does anyone know how to remove the image paths that are showing up in the excerpts
The path is set in a TV and I’m guessing that has something to do with it
By default whereSearch=`content,tv`. and the returned tv field value is the concatenation of all the tv values of the document found.
So use whereSearch=`content` (or content:longtitle,content). By doing this, you simplify the sql statement and doesn’t find results when the search term is in TV. But keep care the &whereSearch should be also in the AS snippet call of the landing page.
If you need to search in one or two specific Tvs, use &withTvs=`tv1,tv2`
if you need a tv value (but doesn’t search in) simply add &tvPhx=`tv3`
[!AjaxSearch?
&debug=`2`
&ajaxSearch=`0`
&whereSearch=`content:longtitle,content`
&landingPage=`414`
&hideMenu=`0`
&parents=`0`
&depth=`2`
&tplInput=`search-form-utility-tpl`
&showResults=`0`
&descriptionShow=`1`
&advSearch=`exactphrase`
!]
except if you would like limit the search to the 2 first level, &parents=`0` &depth=`2` is useless. By default the search occurs in all documents. But the sql order is simpler without using the &parents parameter (you don’t set up a list of ids).
&descriptionShow doesn’t exist as parameter
Don’t forget to remove &debug=`2` when you will be in production
So your AS call should become:
[!AjaxSearch?
&ajaxSearch=`0`
&whereSearch=`content:longtitle,content`
&landingPage=`414`
&hideMenu=`0`
&depth=`2`
&tplInput=`search-form-utility-tpl`
&showResults=`0`
&advSearch=`exactphrase`
!]
[!AjaxSearch?
&ajaxSearch=`0`
&advSearch=`exactphrase`
&showInputForm=`0`
&hideMenu=`0`
[comment]&breadcrumbs=`Breadcrumbs,showHomeCrumb:0,showCrumbsAtHome:0`[/comment]
!]
becomes
[!AjaxSearch?
&ajaxSearch=`0`
&whereSearch=`content:longtitle,content`
&advSearch=`exactphrase`
&showInputForm=`0`
&hideMenu=`0`
!]