We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4749
    • 623 Posts
    The advanced search `exactphrase` is not working for me. Here’s my call:
    [!AjaxSearch? &ajaxSearch=`0` &advSearch=`exactphrase` &AS_showResults=`0` &AS_landing=`198` &extract=`1` &extractLength=`50` !]


    Also, my search terms are not being hightlighted. Is this an common problem? I have not been able to find an answer so I will keep looking in the mean time. Thanks.
      The MODx has you...
      Utah Web Design
      • 5811
      • 1,717 Posts
      The advanced search ’exactphrase’ works but the highlighting plugin don’t take care of the &advSearch. So the highlighting is wrong.

      The version 1.8 will correct this. To check it look for instance the AjaxSearch / AjaxSearch 1.8.0 / Ajax Mode Tests / option multiple list test on the demo site.
      This test uses:
      - the new searchList parameter to define the predefined lis of search terms displayed in the drop down list
      - the optionMultipleTpl template to get available for the end user the advSearch parameter (radio buttons) and the searchList (select list)
      - the new extract algorithm. Here extract is configured with a value of 99. So you display all the extracts not only the first

      Do the following tests:
      1/ select primary and then (with ctrl key) school. select the radio button "all words" => you find all the documents with the two terms. All the extracts found are displayed

      2/ with the same search terms, select "exact phrase" radio button => you find the documents with "primary school". All the extracts found are also displayed

      3/ to appreciate the new algorithm try "Kazakhstan children". Look at the 1.7.1 results and compare with 1.8 (use the more results test for a free input). Look at "School is like a bicycle: if you don’t pedal, it topples" results. In the 1.7.1 you have two extracts the same. In 1.8 only one.

      4/ for the fun try "africa teacher education children" with 1.8.

      I hope deliver this new version as beta (before to deliver it in the repository) at the beginning of the next week.