Search engine does not reflect rights
Hi,
I setup a simple page for testing search.
I created an index some pages with content boxes and a search box and a page with search results.
Every thing seems to work until I started to restrict rights on some pages.
The searchresult is still displaying results (and thus content) of pages to the anonymus user wich are restricted to backendusers. When selecting such a page from result I got the "This type of page is not served" error message.
Tryed to reindex and then deleted the index and created new, no success.
Am I missing something , is there another way or is it just a bug?
I think this is a major roblem!
Kind regards
Udo
Hello Le Corbu,
"When selecting such a page from result I got the "This type of page is not served" error message."
If the user you use does not have permissions to see this page, it is normal to see this error. The problem here is that we do not check the page permissions and exclude these pages from the index.
I logged a request for this implementation with ID - 106285
Best wishes,
Ivan Dimitrov
the Telerik team
Hi,
anything new with this issue?
Or is there another way to reflect page rights in search results (I haven' found anything in documentation).
I think I would need to iterate through search results and then remove those entries where the user has not appropriate rights.
Kind regards
Udo
Hello,
You should override InitializeControls of the SearchResult control. There you can get the page id from the IResultSet. There is a Field -OriginalContentid.
Regards,
Ivan Dimitrov
the Telerik team