Details
Description
I run a multisite on one installation of eZ Publish with several siteaccess.
Content from one site gets distributed to other sites by adding locations to that content.
Now the search returns each location of that content in its results. The intended behaviour is to receive only the location under the rootnode of the current siteaccess.
This is even though I use the subtree_array parameter for fetch search with the node id I'm using as root node to the current siteaccess, as suggested in Step 8 of http://ez.no/developer/forum/setup_design/valentin_s_multisite_guide_v_1_example_uses_ezp_v_3_9_4
Further, search count does not count all locations, but each result only once.
Steps to reproduce
Create two different siteaccess with content.
Create content in one and add to its location a place in the other siteaccess.
Change search.tpl to include the subtree_array parameter and give that the base node of the site currently viewed.
Use the search feature and check the results.