test_class.file: oak-solr-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/solr/index/SolrIndexEditorTest.java
test_class.identifier: SolrIndexEditorTest
test_case.body: @Test
      public void testIgnoredPropertiesNotIndexed() throws Exception {
          SolrClient solrServer = TestUtils.createSolrServer();
          try {
              OakSolrConfiguration configuration = new DefaultSolrConfiguration() {
                  @NotNull
                  @Override
                  public Collection<String> getIgnoredProperties() {
                      return Collections.singletonList("foo2");
                  }
  
                  @NotNull
                  @Override
                  public CommitPolicy getCommitPolicy() {
                      return CommitPolicy.HARD;
                  }
              };
              IndexUpdateCallback callback = mock(IndexUpdateCallback.class);
              SolrIndexEditor solrIndexEditor = new SolrIndexEditor(solrServer, configuration, callback);
              NodeState before = mock(NodeState.class);
              NodeState after = mock(NodeState.class);
              Iterable properties = new Iterable<PropertyState>() {
                  @Override
                  public Iterator<PropertyState> iterator() {
                      return Collections.singletonList(PropertyStates.createProperty("foo2", "bar")).iterator();
                  }
              };
              when(after.getProperties()).thenReturn(properties);
              solrIndexEditor.leave(before, after);
              QueryResponse queryResponse = solrServer.query(new SolrQuery("foo2:*"));
              assertEquals(0, queryResponse.getResults().getNumFound());
          } finally {
              solrServer.close();
          }
      }
test_case.class_method_signature: SolrIndexEditorTest.testIgnoredPropertiesNotIndexed()
test_case.full_signature: @Test public void testIgnoredPropertiesNotIndexed()
test_case.identifier: testIgnoredPropertiesNotIndexed
test_case.invocations: createSolrServer singletonList mock mock mock iterator singletonList createProperty thenReturn when getProperties leave query assertEquals getNumFound getResults close
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIgnoredPropertiesNotIndexed()
focal_class.declarator: log = LoggerFactory.getLogger(getClass())
focal_class.modifier: private final
focal_class.original_string: private final Logger log = LoggerFactory.getLogger(getClass());
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: parent
focal_class.modifier: private final
focal_class.original_string: private final SolrIndexEditor parent;
focal_class.type: SolrIndexEditor
focal_class.var_name: parent
focal_class.declarator: name
focal_class.modifier: private final
focal_class.original_string: private final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: path
focal_class.modifier: private
focal_class.original_string: private String path;
focal_class.type: String
focal_class.var_name: path
focal_class.declarator: solrServer
focal_class.modifier: private final
focal_class.original_string: private final SolrClient solrServer;
focal_class.type: SolrClient
focal_class.var_name: solrServer
focal_class.declarator: configuration
focal_class.modifier: private final
focal_class.original_string: private final OakSolrConfiguration configuration;
focal_class.type: OakSolrConfiguration
focal_class.var_name: configuration
focal_class.declarator: propertiesChanged = false
focal_class.modifier: private
focal_class.original_string: private boolean propertiesChanged = false;
focal_class.type: boolean
focal_class.var_name: propertiesChanged
focal_class.declarator: updateCallback
focal_class.modifier: private final
focal_class.original_string: private final IndexUpdateCallback updateCallback;
focal_class.type: IndexUpdateCallback
focal_class.var_name: updateCallback
focal_class.declarator: parser = new AutoDetectParser()
focal_class.modifier: private static final
focal_class.original_string: private static final Parser parser = new AutoDetectParser();
focal_class.type: Parser
focal_class.var_name: parser
focal_class.file: oak-solr-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/index/SolrIndexEditor.java
focal_class.identifier: SolrIndexEditor
focal_class.interfaces: implements IndexEditor
focal_class.class_method_signature: SolrIndexEditor.SolrIndexEditor(
              SolrClient solrServer,
              OakSolrConfiguration configuration,
              IndexUpdateCallback callback)
focal_class.full_signature:   SolrIndexEditor(
              SolrClient solrServer,
              OakSolrConfiguration configuration,
              IndexUpdateCallback callback)
focal_class.identifier: SolrIndexEditor
focal_class.parameters: (
              SolrClient solrServer,
              OakSolrConfiguration configuration,
              IndexUpdateCallback callback)
focal_class.signature:  SolrIndexEditor(
              SolrClient solrServer,
              OakSolrConfiguration configuration,
              IndexUpdateCallback callback)
focal_class.class_method_signature: SolrIndexEditor.SolrIndexEditor(SolrIndexEditor parent, String name)
focal_class.full_signature: private  SolrIndexEditor(SolrIndexEditor parent, String name)
focal_class.identifier: SolrIndexEditor
focal_class.modifiers: private
focal_class.parameters: (SolrIndexEditor parent, String name)
focal_class.signature:  SolrIndexEditor(SolrIndexEditor parent, String name)
focal_class.class_method_signature: SolrIndexEditor.getPath()
focal_class.full_signature:  String getPath()
focal_class.identifier: getPath
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPath()
focal_class.class_method_signature: SolrIndexEditor.enter(NodeState before, NodeState after)
focal_class.full_signature: @Override public void enter(NodeState before, NodeState after)
focal_class.identifier: enter
focal_class.modifiers: @Override public
focal_class.parameters: (NodeState before, NodeState after)
focal_class.return: void
focal_class.signature: void enter(NodeState before, NodeState after)
focal_class.class_method_signature: SolrIndexEditor.leave(NodeState before, NodeState after)
focal_class.full_signature: @Override public void leave(NodeState before, NodeState after)
focal_class.identifier: leave
focal_class.modifiers: @Override public
focal_class.parameters: (NodeState before, NodeState after)
focal_class.return: void
focal_class.signature: void leave(NodeState before, NodeState after)
focal_class.class_method_signature: SolrIndexEditor.commitByPolicy(SolrClient solrServer, OakSolrConfiguration.CommitPolicy commitPolicy)
focal_class.full_signature: private void commitByPolicy(SolrClient solrServer, OakSolrConfiguration.CommitPolicy commitPolicy)
focal_class.identifier: commitByPolicy
focal_class.modifiers: private
focal_class.parameters: (SolrClient solrServer, OakSolrConfiguration.CommitPolicy commitPolicy)
focal_class.return: void
focal_class.signature: void commitByPolicy(SolrClient solrServer, OakSolrConfiguration.CommitPolicy commitPolicy)
focal_class.class_method_signature: SolrIndexEditor.propertyAdded(PropertyState after)
focal_class.full_signature: @Override public void propertyAdded(PropertyState after)
focal_class.identifier: propertyAdded
focal_class.modifiers: @Override public
focal_class.parameters: (PropertyState after)
focal_class.return: void
focal_class.signature: void propertyAdded(PropertyState after)
focal_class.class_method_signature: SolrIndexEditor.propertyChanged(PropertyState before, PropertyState after)
focal_class.full_signature: @Override public void propertyChanged(PropertyState before, PropertyState after)
focal_class.identifier: propertyChanged
focal_class.modifiers: @Override public
focal_class.parameters: (PropertyState before, PropertyState after)
focal_class.return: void
focal_class.signature: void propertyChanged(PropertyState before, PropertyState after)
focal_class.class_method_signature: SolrIndexEditor.propertyDeleted(PropertyState before)
focal_class.full_signature: @Override public void propertyDeleted(PropertyState before)
focal_class.identifier: propertyDeleted
focal_class.modifiers: @Override public
focal_class.parameters: (PropertyState before)
focal_class.return: void
focal_class.signature: void propertyDeleted(PropertyState before)
focal_class.class_method_signature: SolrIndexEditor.childNodeAdded(String name, NodeState after)
focal_class.full_signature: @Override public Editor childNodeAdded(String name, NodeState after)
focal_class.identifier: childNodeAdded
focal_class.modifiers: @Override public
focal_class.parameters: (String name, NodeState after)
focal_class.return: Editor
focal_class.signature: Editor childNodeAdded(String name, NodeState after)
focal_class.class_method_signature: SolrIndexEditor.childNodeChanged(
              String name, NodeState before, NodeState after)
focal_class.full_signature: @Override public Editor childNodeChanged(
              String name, NodeState before, NodeState after)
focal_class.identifier: childNodeChanged
focal_class.modifiers: @Override public
focal_class.parameters: (
              String name, NodeState before, NodeState after)
focal_class.return: Editor
focal_class.signature: Editor childNodeChanged(
              String name, NodeState before, NodeState after)
focal_class.class_method_signature: SolrIndexEditor.childNodeDeleted(String name, NodeState before)
focal_class.full_signature: @Override public Editor childNodeDeleted(String name, NodeState before)
focal_class.identifier: childNodeDeleted
focal_class.modifiers: @Override public
focal_class.parameters: (String name, NodeState before)
focal_class.return: Editor
focal_class.signature: Editor childNodeDeleted(String name, NodeState before)
focal_class.class_method_signature: SolrIndexEditor.docFromState(NodeState state)
focal_class.full_signature: private SolrInputDocument docFromState(NodeState state)
focal_class.identifier: docFromState
focal_class.modifiers: private
focal_class.parameters: (NodeState state)
focal_class.return: SolrInputDocument
focal_class.signature: SolrInputDocument docFromState(NodeState state)
focal_class.class_method_signature: SolrIndexEditor.extractTextValues(
              PropertyState property, NodeState state)
focal_class.full_signature: private List<String> extractTextValues(
              PropertyState property, NodeState state)
focal_class.identifier: extractTextValues
focal_class.modifiers: private
focal_class.parameters: (
              PropertyState property, NodeState state)
focal_class.return: List<String>
focal_class.signature: List<String> extractTextValues(
              PropertyState property, NodeState state)
focal_class.class_method_signature: SolrIndexEditor.parseStringValue(Blob v, Metadata metadata)
focal_class.full_signature: private String parseStringValue(Blob v, Metadata metadata)
focal_class.identifier: parseStringValue
focal_class.modifiers: private
focal_class.parameters: (Blob v, Metadata metadata)
focal_class.return: String
focal_class.signature: String parseStringValue(Blob v, Metadata metadata)
focal_method.body: @Override
      public void leave(NodeState before, NodeState after)
              throws CommitFailedException {
          if (propertiesChanged || !before.exists()) {
              updateCallback.indexUpdate();
              try {
                  solrServer.add(docFromState(after));
              } catch (SolrServerException e) {
                  throw new CommitFailedException(
                          "Solr", 2, "Failed to add a document to Solr", e);
              } catch (IOException e) {
                  throw new CommitFailedException(
                          "Solr", 6, "Failed to send data to Solr", e);
              }
          }
  
          if (parent == null) {
              try {
                  commitByPolicy(solrServer, configuration.getCommitPolicy());
              } catch (SolrServerException e) {
                  throw new CommitFailedException(
                          "Solr", 3, "Failed to commit changes to Solr", e);
              } catch (IOException e) {
                  throw new CommitFailedException(
                          "Solr", 6, "Failed to send data to Solr", e);
              }
          }
      }
focal_method.class_method_signature: SolrIndexEditor.leave(NodeState before, NodeState after)
focal_method.full_signature: @Override public void leave(NodeState before, NodeState after)
focal_method.identifier: leave
focal_method.invocations: exists indexUpdate add docFromState commitByPolicy getCommitPolicy
focal_method.modifiers: @Override public
focal_method.parameters: (NodeState before, NodeState after)
focal_method.return: void
focal_method.signature: void leave(NodeState before, NodeState after)