Dear Dat,
We have implemented the triggering of the GetContent event by introducing a Boolean field as described in a previous message and it works as expected as far as the re-indexing of the content is concerned.
Now we are facing another problem. The search in the MVC portal does not return any result if we use a term that is part of a strip's content. The funny thing here, is that if we use the Search Preview of the Kentico Admin and use the exact same term then we get the expected results. This means that the content of the strip is actually added to the index as a part of the the parent node content. On the side of the MVC portal, the search still works and returns results as long as the search term is a part of the parent node content.
We also run the following test: We copied the exact raw values (no variables) of the SearchParameters object the produces results in the "Search Preview" page of Kentico Admin to the corresponding function of the MVC portal and still it does not return any result. The only value that is different between the two applications is actually the User (MembershipContext.AuthenticatedUser), since in Kentico the user is the Global Admin and in the MVC is the anonymous user. Also note that the CheckPermissions property of SearchParameters is set to false.
So, is there a chance when one consumes the GetContent event in order to add extra content to an index, some additional security permissions are also added that prevent the anonymous user to search for it?
Please advice on how to work around this issue.
Thanks in advance,
George