@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 unsupportedDynamicBoost(final Class<?> boostStrategyType, final IndexedTypeIdentifier entityType, final String fieldPath) { super.log.logf(FQCN, WARN, null, unsupportedDynamicBoost$str(), boostStrategyType, new org.hibernate.search.util.logging.impl.IndexedTypeIdentifierFormatter(entityType), fieldPath); } private static final String unsupportedDynamicBoost = "HSEARCH400032: @DynamicBoost is not supported with Elasticsearch. Ignoring boost strategy '%1$s' for entity '%2$s' (field path '%3$s').";
@Override public final void forceSkipIndexOperationViaInterception(final IndexedTypeIdentifier entityType, final WorkType type) { super.log.logf(FQCN, org.jboss.logging.Logger.Level.TRACE, null, forceSkipIndexOperationViaInterception$str(), new IndexedTypeIdentifierFormatter(entityType), type); } private static final String forceSkipIndexOperationViaInterception = "HSEARCH000125: Interceptor enforces skip index operation %2$s on instance of class %1$s";
@Override public final void unsupportedDynamicBoost(final Class<?> boostStrategyType, final IndexedTypeIdentifier entityType, final String fieldPath) { super.log.logf(FQCN, WARN, null, unsupportedDynamicBoost$str(), boostStrategyType, new org.hibernate.search.util.logging.impl.IndexedTypeIdentifierFormatter(entityType), fieldPath); } private static final String unsupportedDynamicBoost = "HSEARCH400032: @DynamicBoost is not supported with Elasticsearch. Ignoring boost strategy '%1$s' for entity '%2$s' (field path '%3$s').";
@Override public final void sortableFieldWithNonNormalizerAnalyzer(final IndexedTypeIdentifier entityType, final String absoluteFieldPath) { super.log.logf(FQCN, WARN, null, sortableFieldWithNonNormalizerAnalyzer$str(), new IndexedTypeIdentifierFormatter(entityType), absoluteFieldPath); } private static final String sortableFieldWithNonNormalizerAnalyzer = "HSEARCH000345: Field '%2$s' on entity '%1$s' is marked as sortable and will be analyzed, but is assigned an Analyzer instead of a Normalizer. Sortable fields should be assigned normalizers in order to avoid problems with tokenization.";
@Override public final SearchException unknownFieldNameForMoreLikeThisQuery(final String field, final IndexedTypeIdentifier type) { final SearchException result = new SearchException(String.format(unknownFieldNameForMoreLikeThisQuery$str(), field, new IndexedTypeIdentifierFormatter(type))); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String jmsInitialContextException = "HSEARCH000219: Could not lookup initial JNDI context for the JMS ConnectionFactory named '%s' for the index '%s";
@Override public final SearchException numericFieldAnnotationWithoutMatchingField(final IndexedTypeIdentifier entityType, final String memberName) { final SearchException result = new SearchException(String.format(numericFieldAnnotationWithoutMatchingField$str(), new IndexedTypeIdentifierFormatter(entityType), memberName)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String facetAnnotationWithoutMatchingField = "HSEARCH000263: @Facet annotation is used on %1$s#%2$s without a matching @Field annotation";
@Override public final SearchException sortableFieldRefersToUndefinedField(final IndexedTypeIdentifier entityType, final String property, final String sortedFieldName) { final SearchException result = new SearchException(String.format(sortableFieldRefersToUndefinedField$str(), new IndexedTypeIdentifierFormatter(entityType), property, sortedFieldName)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String severalNumericFieldAnnotationsForSameField = "HSEARCH000300: Several @NumericField annotations used on %1$s#%2$s refer to the same field";
@Override public final SearchException cannotReferenceAnalyzerAndNormalizer(final IndexedTypeIdentifier entityType, final String relativeFieldPath) { final SearchException result = new SearchException(String.format(cannotReferenceAnalyzerAndNormalizer$str(), new IndexedTypeIdentifierFormatter(entityType), relativeFieldPath)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String invalidEmptyNormalizerDefinition = "HSEARCH000343: Normalizer definition for '%s' must define at least a char filter or a token filter (or both).";
@Override public final SearchException entityWithNoShard(final IndexedTypeIdentifier arg0) { final SearchException result = new SearchException(String.format(entityWithNoShard$str(), new org.hibernate.search.util.logging.impl.IndexedTypeIdentifierFormatter(arg0))); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String assertionFailureCannotCastToWorkerBuilderContext = "HSEARCH000186: [AssertionFailure: open a bug report] SearchFactory from entityIndexBinding is not assignable to WorkerBuilderContext. Actual class is %1$s";
@Override public final SearchException ioExceptionOnIndexOfEntity(final IOException arg0, final IndexedTypeIdentifier arg1) { final SearchException result = new SearchException(String.format(ioExceptionOnIndexOfEntity$str(), new org.hibernate.search.util.logging.impl.IndexedTypeIdentifierFormatter(arg1)), arg0); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String requireTFIDFSimilarity = "HSEARCH000206: MoreLikeThis queries require a TFIDFSimilarity for entity '$1%s'";
@Override public final SearchException numericFieldAnnotationWithoutMatchingField(final IndexedTypeIdentifier arg0, final String arg1) { final SearchException result = new SearchException(String.format(numericFieldAnnotationWithoutMatchingField$str(), new org.hibernate.search.util.logging.impl.IndexedTypeIdentifierFormatter(arg0), arg1)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String facetAnnotationWithoutMatchingField = "HSEARCH000263: @Facet annotation is used on %1$s#%2$s without a matching @Field annotation";
@Override public final SearchException cannotReferenceAnalyzerAndNormalizer(final IndexedTypeIdentifier arg0, final String arg1) { final SearchException result = new SearchException(String.format(cannotReferenceAnalyzerAndNormalizer$str(), new org.hibernate.search.util.logging.impl.IndexedTypeIdentifierFormatter(arg0), arg1)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String invalidEmptyNormalizerDefinition = "HSEARCH000343: Normalizer definition for '%s' must define at least a char filter or a token filter (or both).";
@Override public final SearchException fieldIsBothCompositeAndConcrete(final IndexedTypeIdentifier entityType, final String fieldPath) { final SearchException result = new SearchException(String.format(getLoggingLocale(), fieldIsBothCompositeAndConcrete$str(), new org.hibernate.search.util.logging.impl.IndexedTypeIdentifierFormatter(entityType), fieldPath)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String invalidNullMarkerForPeriod = "HSEARCH400037: The 'indexNullAs' property for Period fields must represent a date interval in ISO-8601 format (for instance P3Y2M1D for 3 years, 2 months and 1 day).";
@Override public final SearchException requireTFIDFSimilarity(final IndexedTypeIdentifier entityType) { final SearchException result = new SearchException(String.format(getLoggingLocale(), requireTFIDFSimilarity$str(), new IndexedTypeIdentifierFormatter(entityType))); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String fieldNotStoredNorTermVectorCannotBeUsedInMoreLikeThis = "HSEARCH000207: Field %s of entity %s cannot be used in a MoreLikeThis query: the term vector (preferred) or the value itself need to be stored.";
@Override public final SearchException unknownFieldNameForMoreLikeThisQuery(final String field, final IndexedTypeIdentifier type) { final SearchException result = new SearchException(String.format(getLoggingLocale(), unknownFieldNameForMoreLikeThisQuery$str(), field, new IndexedTypeIdentifierFormatter(type))); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String jmsInitialContextException = "HSEARCH000219: Could not lookup initial JNDI context for the JMS ConnectionFactory named '%s' for the index '%s";
@Override public final SearchException cannotRunEsQueryTargetingEntityIndexedWithNonEsIndexManager(final IndexedTypeIdentifier entityType, final String query) { final SearchException result = new SearchException(String.format(getLoggingLocale(), cannotRunEsQueryTargetingEntityIndexedWithNonEsIndexManager$str(), new org.hibernate.search.util.logging.impl.IndexedTypeIdentifierFormatter(entityType), query)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String cannotTransformLuceneQueryIntoEsQuery = "HSEARCH400002: Lucene query '%1$s' cannot be transformed into equivalent Elasticsearch query";
@Override public final SearchException numericFieldCannotBeUsedInMoreLikeThis(final String fieldName, final IndexedTypeIdentifier entityType) { final SearchException result = new SearchException(String.format(getLoggingLocale(), numericFieldCannotBeUsedInMoreLikeThis$str(), fieldName, new IndexedTypeIdentifierFormatter(entityType))); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String multipleMatchingFieldBridges = "HSEARCH000215: Multiple matching FieldBridges found for %s of return type %s: %s";
@Override public final SearchException sortableFieldRefersToUndefinedField(final IndexedTypeIdentifier entityType, final String property, final String sortedFieldName) { final SearchException result = new SearchException(String.format(getLoggingLocale(), sortableFieldRefersToUndefinedField$str(), new IndexedTypeIdentifierFormatter(entityType), property, sortedFieldName)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String severalNumericFieldAnnotationsForSameField = "HSEARCH000300: Several @NumericField annotations used on %1$s#%2$s refer to the same field";
@Override public final SearchException cannotRunLuceneQueryTargetingEntityIndexedWithNonLuceneIndexManager(final IndexedTypeIdentifier entityType, final String query) { final SearchException result = new SearchException(String.format(getLoggingLocale(), cannotRunLuceneQueryTargetingEntityIndexedWithNonLuceneIndexManager$str(), new IndexedTypeIdentifierFormatter(entityType), query)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } @Override