Hi I am using the search call in my website which works fine but always seems to display results that aren’t relevant due to searching the page content not the pagetitle or summary. I have read the whereSearch docs and Ajaxsearch docs but can’t get my calls to work right.
This is what I originally had:
[!AjaxSearch? &ajaxSearch=`1` &landingPage=`8` &moreResultsPage=`8` &addJscript=`0` &showIntro=`0` &ajaxMax=`5` &extract=`1`!]
and I tried:
[!AjaxSearch? &ajaxSearch=`1` &whereSearch=`content:pagetitle,summary,content` &landingPage=`8` &moreResultsPage=`8` &addJscript=`0` &showIntro=`0` &ajaxMax=`5` &extract=`1`!]
also tried:
[!AjaxSearch? &ajaxSearch=`1` &whereSearch=`pagetitle,summary,content` &landingPage=`8` &moreResultsPage=`8` &addJscript=`0` &showIntro=`0` &ajaxMax=`5` &extract=`1`!]
but it’s not making any difference or just not working at all if I try too many variations of the above. Can someone please tell me the right way to do this or change the whereSearch defaults in the snippet?
Thanks for any help.