Class SearchGuardIndexSearcherWrapper

  • All Implemented Interfaces:
    org.elasticsearch.core.CheckedFunction<org.apache.lucene.index.DirectoryReader,​org.apache.lucene.index.DirectoryReader,​IOException>

    public class SearchGuardIndexSearcherWrapper
    extends Object
    implements org.elasticsearch.core.CheckedFunction<org.apache.lucene.index.DirectoryReader,​org.apache.lucene.index.DirectoryReader,​IOException>
    • Field Detail

      • log

        protected final org.apache.logging.log4j.Logger log
      • threadContext

        protected final org.elasticsearch.common.util.concurrent.ThreadContext threadContext
      • index

        protected final org.elasticsearch.index.Index index
    • Constructor Detail

      • SearchGuardIndexSearcherWrapper

        public SearchGuardIndexSearcherWrapper​(org.elasticsearch.index.IndexService indexService,
                                               org.elasticsearch.common.settings.Settings settings,
                                               AdminDNs adminDNs)
    • Method Detail

      • apply

        public final org.apache.lucene.index.DirectoryReader apply​(org.apache.lucene.index.DirectoryReader reader)
                                                            throws IOException
        Specified by:
        apply in interface org.elasticsearch.core.CheckedFunction<org.apache.lucene.index.DirectoryReader,​org.apache.lucene.index.DirectoryReader,​IOException>
        Throws:
        IOException
      • dlsFlsWrap

        protected org.apache.lucene.index.DirectoryReader dlsFlsWrap​(org.apache.lucene.index.DirectoryReader reader,
                                                                     boolean isAdmin)
                                                              throws IOException
        Throws:
        IOException
      • isAdminAuthenticatedOrInternalRequest

        protected final boolean isAdminAuthenticatedOrInternalRequest()
      • isSearchGuardIndexRequest

        protected final boolean isSearchGuardIndexRequest()