test_class.declarator: root = INITIAL_CONTENT
test_class.modifier: private
test_class.original_string: private NodeState root = INITIAL_CONTENT;
test_class.type: NodeState
test_class.var_name: root
test_class.file: oak-run/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/LuceneIndexerTest.java
test_class.identifier: LuceneIndexerTest
test_case.body: @Test
      public void nodeIndexed_WithIncludedPaths() throws Exception{
          LuceneIndexDefinitionBuilder idxb = new LuceneIndexDefinitionBuilder();
          idxb.indexRule("nt:base").property("foo").propertyIndex();
          idxb.includedPaths("/content");
  
          NodeState defn = idxb.build();
          IndexDefinition idxDefn = new IndexDefinition(root, defn, "/oak:index/testIndex");
  
          NodeBuilder builder = root.builder();
          LuceneIndexer indexer = new LuceneIndexer(idxDefn, mock(LuceneIndexWriter.class), builder,
                  mock(FulltextBinaryTextExtractor.class), mock(IndexingProgressReporter.class));
  
          NodeState testNode = EMPTY_NODE.builder().setProperty("foo","bar").getNodeState();
  
          assertTrue(indexer.index(new NodeStateEntry(testNode, "/content/x")));
          assertFalse(indexer.index(new NodeStateEntry(testNode, "/x")));
          assertFalse(indexer.index(new NodeStateEntry(testNode, "/")));
      }
test_case.class_method_signature: LuceneIndexerTest.nodeIndexed_WithIncludedPaths()
test_case.full_signature: @Test public void nodeIndexed_WithIncludedPaths()
test_case.identifier: nodeIndexed_WithIncludedPaths
test_case.invocations: propertyIndex property indexRule includedPaths build builder mock mock mock getNodeState setProperty builder assertTrue index assertFalse index assertFalse index
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void nodeIndexed_WithIncludedPaths()
focal_class.declarator: definition
focal_class.modifier: private final
focal_class.original_string: private final IndexDefinition definition;
focal_class.type: IndexDefinition
focal_class.var_name: definition
focal_class.declarator: binaryTextExtractor
focal_class.modifier: private final
focal_class.original_string: private final FulltextBinaryTextExtractor binaryTextExtractor;
focal_class.type: FulltextBinaryTextExtractor
focal_class.var_name: binaryTextExtractor
focal_class.declarator: definitionBuilder
focal_class.modifier: private final
focal_class.original_string: private final NodeBuilder definitionBuilder;
focal_class.type: NodeBuilder
focal_class.var_name: definitionBuilder
focal_class.declarator: indexWriter
focal_class.modifier: private final
focal_class.original_string: private final LuceneIndexWriter indexWriter;
focal_class.type: LuceneIndexWriter
focal_class.var_name: indexWriter
focal_class.declarator: progressReporter
focal_class.modifier: private final
focal_class.original_string: private final IndexingProgressReporter progressReporter;
focal_class.type: IndexingProgressReporter
focal_class.var_name: progressReporter
focal_class.file: oak-run/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/LuceneIndexer.java
focal_class.identifier: LuceneIndexer
focal_class.interfaces: implements NodeStateIndexer
focal_class.class_method_signature: LuceneIndexer.LuceneIndexer(IndexDefinition definition, LuceneIndexWriter indexWriter,
                           NodeBuilder builder, FulltextBinaryTextExtractor binaryTextExtractor,
                           IndexingProgressReporter progressReporter)
focal_class.full_signature: public  LuceneIndexer(IndexDefinition definition, LuceneIndexWriter indexWriter,
                           NodeBuilder builder, FulltextBinaryTextExtractor binaryTextExtractor,
                           IndexingProgressReporter progressReporter)
focal_class.identifier: LuceneIndexer
focal_class.modifiers: public
focal_class.parameters: (IndexDefinition definition, LuceneIndexWriter indexWriter,
                           NodeBuilder builder, FulltextBinaryTextExtractor binaryTextExtractor,
                           IndexingProgressReporter progressReporter)
focal_class.signature:  LuceneIndexer(IndexDefinition definition, LuceneIndexWriter indexWriter,
                           NodeBuilder builder, FulltextBinaryTextExtractor binaryTextExtractor,
                           IndexingProgressReporter progressReporter)
focal_class.class_method_signature: LuceneIndexer.shouldInclude(String path)
focal_class.full_signature: @Override public boolean shouldInclude(String path)
focal_class.identifier: shouldInclude
focal_class.modifiers: @Override public
focal_class.parameters: (String path)
focal_class.return: boolean
focal_class.signature: boolean shouldInclude(String path)
focal_class.class_method_signature: LuceneIndexer.shouldInclude(NodeDocument doc)
focal_class.full_signature: @Override public boolean shouldInclude(NodeDocument doc)
focal_class.identifier: shouldInclude
focal_class.modifiers: @Override public
focal_class.parameters: (NodeDocument doc)
focal_class.return: boolean
focal_class.signature: boolean shouldInclude(NodeDocument doc)
focal_class.class_method_signature: LuceneIndexer.index(NodeStateEntry entry)
focal_class.full_signature: @Override public boolean index(NodeStateEntry entry)
focal_class.identifier: index
focal_class.modifiers: @Override public
focal_class.parameters: (NodeStateEntry entry)
focal_class.return: boolean
focal_class.signature: boolean index(NodeStateEntry entry)
focal_class.class_method_signature: LuceneIndexer.indexesRelativeNodes()
focal_class.full_signature: @Override public boolean indexesRelativeNodes()
focal_class.identifier: indexesRelativeNodes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean indexesRelativeNodes()
focal_class.class_method_signature: LuceneIndexer.getRelativeIndexedNodeNames()
focal_class.full_signature: @Override public Set<String> getRelativeIndexedNodeNames()
focal_class.identifier: getRelativeIndexedNodeNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> getRelativeIndexedNodeNames()
focal_class.class_method_signature: LuceneIndexer.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: LuceneIndexer.getFilterResult(String path)
focal_class.full_signature: private PathFilter.Result getFilterResult(String path)
focal_class.identifier: getFilterResult
focal_class.modifiers: private
focal_class.parameters: (String path)
focal_class.return: PathFilter.Result
focal_class.signature: PathFilter.Result getFilterResult(String path)
focal_class.class_method_signature: LuceneIndexer.writeToIndex(Document doc, String path)
focal_class.full_signature: private void writeToIndex(Document doc, String path)
focal_class.identifier: writeToIndex
focal_class.modifiers: private
focal_class.parameters: (Document doc, String path)
focal_class.return: void
focal_class.signature: void writeToIndex(Document doc, String path)
focal_class.class_method_signature: LuceneIndexer.newDocumentMaker(IndexDefinition.IndexingRule indexingRule, String path)
focal_class.full_signature: private LuceneDocumentMaker newDocumentMaker(IndexDefinition.IndexingRule indexingRule, String path)
focal_class.identifier: newDocumentMaker
focal_class.modifiers: private
focal_class.parameters: (IndexDefinition.IndexingRule indexingRule, String path)
focal_class.return: LuceneDocumentMaker
focal_class.signature: LuceneDocumentMaker newDocumentMaker(IndexDefinition.IndexingRule indexingRule, String path)
focal_method.body: @Override
      public boolean index(NodeStateEntry entry) throws IOException, CommitFailedException {
          if (getFilterResult(entry.getPath()) != PathFilter.Result.INCLUDE) {
              return false;
          }
  
          IndexDefinition.IndexingRule indexingRule = definition.getApplicableIndexingRule(entry.getNodeState());
  
          if (indexingRule == null) {
              return false;
          }
  
          LuceneDocumentMaker maker = newDocumentMaker(indexingRule, entry.getPath());
          Document doc = maker.makeDocument(entry.getNodeState());
          if (doc != null) {
              writeToIndex(doc, entry.getPath());
              progressReporter.indexUpdate(definition.getIndexPath());
              return true;
          }
  
          return false;
      }
focal_method.class_method_signature: LuceneIndexer.index(NodeStateEntry entry)
focal_method.full_signature: @Override public boolean index(NodeStateEntry entry)
focal_method.identifier: index
focal_method.invocations: getFilterResult getPath getApplicableIndexingRule getNodeState newDocumentMaker getPath makeDocument getNodeState writeToIndex getPath indexUpdate getIndexPath
focal_method.modifiers: @Override public
focal_method.parameters: (NodeStateEntry entry)
focal_method.return: boolean
focal_method.signature: boolean index(NodeStateEntry entry)