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.