If I explicitly call for just TVs (which there are quite a few of) to be searchable in the &whereSearch parameter, I never get results.Have you try to add &withTvs=`term` to limit the search to the Tvs named "term" ?
Have you try to add &withTvs=`term` to limit the search to the Tvs named "term" ?
[!AjaxSearch? ajaxSearch=`1` &liveSearch=`1` &debug=`-3` &whereSearch=`tv` &withTvs=`tags` &highlightResult=`0` &AS_landing=`119` &moreResultsPage=`119` &showMoreResults=`1` &extract=`0` &addJscript=`0` &AS_showResults=`1` &jScript=`jquery` &jsJquery=`/assets/js/jquery-1.3.2.min.js` !]
SELECT sc.id, sc.pagetitle, sc.longtitle, sc.description, sc.alias, sc.introtext, sc.menutitle, sc.content, sc.publishedon, GROUP_CONCAT( DISTINCT CAST( ntv.id AS CHAR ) SEPARATOR "," ) AS tv_id, GROUP_CONCAT( DISTINCT ntv.value SEPARATOR ", " ) AS tv_value FROM `modx_site_content` sc LEFT JOIN ( SELECT DISTINCT tv.id, tv.value, tv.contentid FROM `modx_site_tmplvar_contentvalues` tv INNER JOIN `modx_site_tmplvars` tmpl ON tv.tmplvarid = tmpl.id WHERE ( ( ( tmpl.name IN ( 'tags' ) ) ) AND ( ( tv.value LIKE '%Foobar%' ) ) ) ) AS ntv ON sc.id = ntv.contentid WHERE ( ( sc.published =1 ) AND ( sc.searchable =1 ) AND ( sc.deleted =0 ) AND ( sc.type = 'document' ) AND ( sc.privateweb =0 ) ) GROUP BY sc.id HAVING ( ( ( sc.pagetitle LIKE '%Foobar%' ) OR ( sc.longtitle LIKE '%Foobar%' ) OR ( sc.description LIKE '%Foobar%' ) OR ( sc.alias LIKE '%Foobar%' ) OR ( sc.introtext LIKE '%Foobar%' ) OR ( sc.menutitle LIKE '%Foobar%' ) OR ( sc.content LIKE '%Foobar%' ) OR ( tv_value LIKE '%Foobar%' ) ) ) ORDER BY sc.publishedon, sc.pagetitle
