I made some changes in the search script to adapt it to our needs. I mainly added some lines for the sql query to apply some filters in the function
<a name=collectlocalresults>
This filtering works as expected, but I am not able to find out why my $indexcount is not based on that. An example:
I search for the word "consciousness" which returns 2 results. But the $indexcount is 13 and thus my header says now "Results 1 - 2 of 13" and I have links to page 2 and 3 (we display 6 results per page). Of course these two pages are then empty as for the results my filter applies. I see that at the end of <a name=collectlocalresults> some calculation towards that $indexcount is done, but I don't get it why it has a higher number than actual results. It seems this variable is based on the plain query without my additional filter. Any hints, where I have to adapt some more in the search script?
<a name=collectlocalresults>
This filtering works as expected, but I am not able to find out why my $indexcount is not based on that. An example:
I search for the word "consciousness" which returns 2 results. But the $indexcount is 13 and thus my header says now "Results 1 - 2 of 13" and I have links to page 2 and 3 (we display 6 results per page). Of course these two pages are then empty as for the results my filter applies. I see that at the end of <a name=collectlocalresults> some calculation towards that $indexcount is done, but I don't get it why it has a higher number than actual results. It seems this variable is based on the plain query without my additional filter. Any hints, where I have to adapt some more in the search script?