Query pipeline stage condition examples
Stages can be triggered conditionally when a script in the Condition field evaluates to true. Some examples are shown below. Run this stage only for mobile clients:Learn more
Troubleshoot Security Trimming Issues
Troubleshoot Security Trimming Issues
This topic describes how to troubleshoot issues with the Security Trimming query pipeline stage.One of the most common issues that occurs when working with Fusion is that users do not see the search results expected from security trimming for one reason or another. This issue can show itself in two ways:
- Users see documents that they should not see.
- Users do not see documents that they should see.
An Explanation of the Security Trimming Stage
The Security Trimming stage starts with a user ID. This ID can be a Windows user principal name, a Windows logon ID, an email address, an LDAP user ID, or any other type of identification that represents a search user.Next, the stage sends your ID to all of the datasources in your application and returns a solr filter query that will trim the data for the specific user.For example: You give Alfresco the user IDadmin and the Security Trimming stage will return a filter query such as:+({!terms f=acls_ss}ADMIN__cmis_read,GROUP_Engineering,GROUP_SustainingEngineering__cmis_read,guest__cmis_read)Since Alfresco documents store the users/groups who have permission to view the document in a special solr field called acls_ss, this filter will only return a document if one of the values in the filter matches the acls_ss on the document.Troubleshooting
If you do not receive the expected results from the Security Trimming stage, use the following steps to troubleshoot:- Add
&debug=trueto your query so that you get the debug output that will contain the filters that were used when querying. - Obtain the filter query that was used for your query. This will contain the groups/user IDs that were matched against the
aclfield for your datasource’s documents in order trim your results. - Obtain a subset of the documents that were or were not supposed to be returned in your search results, and save the
aclfield for those results. For example,acls_ssfrom the previous section. - Compare the
aclvalues that were in the filter query to theaclvalues that are on the documents. Search results are only shown when one or more of theaclvalues from the filter match theaclvalues of the documents.- If the
aclvalues on the document do not match what you expect from your datasource. For example, an Alfresco document gives permission to group XYZ, but that group does not appear in theacls_ssfield: - Make sure the datasource is up to date. It may have a stale index and need a fresh crawl.
- If the
acls_ssis still incorrect, open a ticket with Lucidworks Support for further assistance. - If the ACL values in the filter query seem inaccurate. For example, you see groups you should not see or are missing groups you should see:
- Go into your source system and check that the users are actually in the groups that you are expecting them to belong to.
- If you are sure that the correct groups are not being returned for a user, open a ticket with Lucidworks Support for further assistance.
- If the