Чет зациклило мну, читаю документацию и не въезжаю, в шаблоне и к контексту и тд TV параметр у меня является тэгом, который выводится на стартовой странице и в многих других местах, AjaxSearch находит эти ключевые фразы и выводит их в качестве результатов поиска, что нежелательно (
Чёт видимо мне не помогают параметры поиcка например с таким содержимым:
[!AjaxSearch? &parents=`5` &ajaxSearch=`0` &AS_landing=`4` &moreResultsPage=`4` &showMoreResults=`1` &addJscript=`0` &extract=`0` &AS_showResults=`0` &filter=`[+category+]` !]
Где в &filter=` [+category+]` содержатся слова которые я хочу отбросить.
P.S AjaxSearch прикручиваю впервые и ещё не знаю как чё и к чему ((((
а если так &filter=`category`
Неа, всё равно находит документы в которых слова введённые в поиск не встречаются но указаны в качестве тэга....
// &whereSearch
// Define where should occur the search
// a separated list of keywords describing the tables where to search
// keywords allowed :
// "content" for site_content, "tv" for site_tmplvar_contentvalues, "jot" for jot_content, "maxigallery" for maxigallery
// you could add your own keywords. But the keyword should be a user function which describes the tables to use
// by default all the text fields are searchable but you could specify the fields like this:
// whereSearch=`content:pagetitle,introtext,content|tv:tv_value|maxigallery:gal_title`
$cfg[’whereSearch’] = isset($whereSearch) ? $whereSearch : (isset($__whereSearch) ? $__whereSearch : ’content|tv’);
// &subSearch [ int , int ]
// Define the maximum number of choice and the default choice selected
// by default 5 choices and default choice 1 selected
$cfg[’subSearch’] = isset($subSearch) ? $subSearch : (isset($__subSearch) ? $__subSearch : ’5,1’);
// &withTvs - Define which Tvs are used for the search in Tvs
// a comma separated list of TV names
// by default all TVs are used (empty list)
$cfg[’withTvs’] = isset($withTvs) ? $withTvs : (isset($__withTvs) ? $__withTvs : ’’);