@Override public void initialize(Properties props, WorkerBuildContext context, IndexManager indexManager) { // no-op log.initializedBlackholeBackend(); }
@Override public void applyStreamWork(LuceneWork singleOperation, IndexingMonitor monitor) { // no-op log.debug( "Discarding a single LuceneWork" ); } }
@Override public Analyzer getAnalyzer() { if ( analyzer == null ) { throw LOG.lazyLuceneAnalyzerReferenceNotInitialized( this ); } return analyzer; }
@Override public final void incorrectMessageType(final Class<?> messageType) { super.log.logf(FQCN, ERROR, null, incorrectMessageType$str(), new ClassFormatter(messageType)); } private static final String incorrectMessageType = "HSEARCH000016: Incorrect message type: %1$s";
@Override public final void serviceProviderNotReleased(final Class<?> class1) { super.log.logf(FQCN, WARN, null, serviceProviderNotReleased$str(), new ClassFormatter(class1)); } private static final String serviceProviderNotReleased = "HSEARCH000025: Service provider has been used but not released: %1$s";
@Override public final void stopServiceFailed(final Class<?> class1, final Exception e) { super.log.logf(FQCN, ERROR, e, stopServiceFailed$str(), new ClassFormatter(class1)); } private static final String stopServiceFailed = "HSEARCH000026: Fail to properly stop service: %1$s";
@Override public final void containedInPointsToProvidedId(final Class<?> objectClass) { super.log.logf(FQCN, WARN, null, containedInPointsToProvidedId$str(), new ClassFormatter(objectClass)); } private static final String containedInPointsToProvidedId = "HSEARCH000045: @ContainedIn is pointing to an entity having @ProvidedId: %1$s. This is not supported, indexing of contained in entities will be skipped. Indexed data of the embedded object might become out of date in objects of type ";
@Override public final void forceRemoveOnIndexOperationViaInterception(final IndexedTypeIdentifier entityType, final WorkType type) { super.log.logf(FQCN, TRACE, null, forceRemoveOnIndexOperationViaInterception$str(), new IndexedTypeIdentifierFormatter(entityType), type); } private static final String forceRemoveOnIndexOperationViaInterception = "HSEARCH000126: Interceptor enforces removal of index data instead of index operation %2$s on instance of class %1$s";
@Override public final void indexManagerAliasResolved(final String alias, final Class<?> im) { super.log.logf(FQCN, DEBUG, null, indexManagerAliasResolved$str(), alias, new ClassFormatter(im)); } private static final String indexManagerAliasResolved = "HSEARCH000166: IndexManager factory resolved alias '%1$s' to '%2$s'.";
@Override public void applySetting(IndexWriterConfig writerConfig, int value) { log.deprecatedConfigurationPropertyIsIgnored( "term_index_interval" ); } },
public void setMaxEditDistance(int maxEditDistance) { if ( maxEditDistance < 1 || maxEditDistance > LevenshteinAutomata.MAXIMUM_SUPPORTED_DISTANCE ) { throw log.incorrectEditDistance(); } this.maxEditDistance = maxEditDistance; }
@Override public void close() { // no-op log.closedBlackholeBackend(); }
@Override public String getAnalyzerName(String fieldName) { if ( name == null ) { throw LOG.lazyRemoteAnalyzerReferenceNotInitialized( this ); } return name; }
private void addMinimumShouldMatchConstraint(MinimumShouldMatchConstraint constraint) { if ( this.minimumShouldMatchConstraint != null ) { throw log.minimumShouldMatchConflictingConstraints(); } this.minimumShouldMatchConstraint = constraint; }
Foo(String bar) { if ( bar == null ) { throw log.parametersShouldNotBeNull( "bar" ); } } }
@Override public void applyWork(List<LuceneWork> workList, IndexingMonitor monitor) { // no-op log.debug( "Discarding a list of LuceneWork" ); }
@Override public Analyzer getAnalyzer() { if ( analyzer == null ) { throw LOG.lazyLuceneAnalyzerReferenceNotInitialized( this ); } return analyzer; }
@Override public void applySetting(IndexWriterConfig writerConfig, int value) { log.deprecatedConfigurationPropertyIsIgnored( "max_thread_states" ); } },
@Override public String getAnalyzerName(String fieldName) { if ( name == null ) { throw LOG.lazyRemoteAnalyzerReferenceNotInitialized( this ); } return name; }