[hibernate/hibernate-search] ad433c: HSEARCH-3905 Include the information "is this node...
by Yoann Rodière
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-search
Commit: ad433c4e38500b3dba4166b02e294cfbe32d150e
https://github.com/hibernate/hibernate-search/commit/ad433c4e38500b3dba41...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/dsl/impl/LuceneIndexSchemaObjectFieldNodeBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/dsl/impl/LuceneIndexSchemaValueFieldNodeBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/AbstractLuceneIndexSchemaFieldNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaObjectFieldNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaObjectFieldTemplate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaObjectNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaRootNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaValueFieldNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaValueFieldTemplate.java
Log Message:
-----------
HSEARCH-3905 Include the information "is this node dynamic?" in the Lucene metamodel
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: fc2f04dede03ce6805dac15960793f9240585afc
https://github.com/hibernate/hibernate-search/commit/fc2f04dede03ce6805da...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/AbstractLuceneDocumentBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/AbstractLuceneNonFlattenedDocumentBuilder.java
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/LuceneDocumentBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/AbstractLuceneNumericFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneBigDecimalFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneBigIntegerFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneBooleanFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneByteFieldCodec.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneDocumentBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneDoubleFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneFieldFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneFloatFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneGeoPointFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneInstantFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneIntegerFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneLocalDateFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneLocalDateTimeFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneLocalTimeFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneLongFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneMonthDayFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneOffsetDateTimeFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneOffsetTimeFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneShortFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneStringFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneYearFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneYearMonthFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneZonedDateTimeFieldCodec.java
Log Message:
-----------
HSEARCH-3905 Move LuceneDocumentBuilder to package org.hibernate.search.backend.lucene.types.codec.impl
To avoid cyclic package dependency.
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: c8a946e13e9564dd0ffd961f9bc4037935238e7d
https://github.com/hibernate/hibernate-search/commit/c8a946e13e9564dd0ffd...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/AbstractLuceneDocumentBuilder.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/AbstractLuceneDocumentElementBuilder.java
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/AbstractLuceneNonFlattenedDocumentBuilder.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/LuceneDocumentContentImpl.java
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/LuceneFlattenedObjectDocumentBuilder.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/LuceneFlattenedObjectFieldBuilder.java
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/LuceneNestedObjectDocumentBuilder.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/LuceneNestedObjectFieldBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/LuceneRootDocumentBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/AbstractLuceneNumericFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneBigDecimalFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneBigIntegerFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneBooleanFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneByteFieldCodec.java
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneDocumentBuilder.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneDocumentContent.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneDoubleFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneFieldFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneFloatFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneGeoPointFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneInstantFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneIntegerFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneLocalDateFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneLocalDateTimeFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneLocalTimeFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneLongFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneMonthDayFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneOffsetDateTimeFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneOffsetTimeFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneShortFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneStringFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneYearFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneYearMonthFieldCodec.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/codec/impl/LuceneZonedDateTimeFieldCodec.java
Log Message:
-----------
HSEARCH-3905 Clearly separate document element builder from document content in the Lucene backend
This simplifies the code, which will make the following changes simpler
as well.
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: 14b0e2bc2a1351e7267fa739ef41dd50f3db44a2
https://github.com/hibernate/hibernate-search/commit/14b0e2bc2a1351e7267f...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/AbstractLuceneDocumentElementBuilder.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/AbstractLuceneObjectFieldBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/LuceneFlattenedObjectFieldBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/LuceneNestedObjectFieldBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/LuceneRootDocumentBuilder.java
Log Message:
-----------
HSEARCH-3905 Add parent object field path to the "field_names" field when a value is added to a dynamic child field
This will allow detection of these dynamic children fields when
executing an "exists" predicate on the object field.
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: 0137977ba4924433d003fe60c3f0d211b598785e
https://github.com/hibernate/hibernate-search/commit/0137977ba4924433d003...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneObjectExistsPredicate.java
Log Message:
-----------
HSEARCH-3905 Take the "field_names" field into account in the "exists" predicate for object fields with Lucene
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: cb5a0795b255b2994895eef6b1ba944e799a67fe
https://github.com/hibernate/hibernate-search/commit/cb5a0795b255b2994895...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M integrationtest/backend/lucene/src/test/java/org/hibernate/search/integrationtest/backend/lucene/testsupport/util/LuceneTckBackendFeatures.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/dynamic/ObjectFieldTemplateIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/testsupport/util/TckBackendFeatures.java
Log Message:
-----------
HSEARCH-3905 Enable tests of the "exists" predicate on object fields with dynamic child fields with Lucene
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Compare: https://github.com/hibernate/hibernate-search/compare/61b027535404...cb5a...
4 years, 3 months
[hibernate/hibernate-search] 3d7f5e: HSEARCH-4047 Rename a log method in the Elasticsea...
by Yoann Rodière
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-search
Commit: 3d7f5e520caefcf1ef5a3b5f94a5cdee30875ec9
https://github.com/hibernate/hibernate-search/commit/3d7f5e520caefcf1ef5a...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/logging/impl/Log.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchMultiIndexSearchValueFieldContext.java
Log Message:
-----------
HSEARCH-4047 Rename a log method in the Elasticsearch backend
The previous name was confusing, and different from the name we gave to
the same method in the Lucene backend.
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: 9767cd2b576b8d9c9a5b1fc35dae1c3d5ec008a1
https://github.com/hibernate/hibernate-search/commit/9767cd2b576b8d9c9a5b...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexSchemaValueFieldNode.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/aggregation/impl/ElasticsearchRangeAggregation.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/aggregation/impl/ElasticsearchTermsAggregation.java
R backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/AbstractElasticsearchCodecAwareSearchFieldQueryElementFactory.java
A backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/AbstractElasticsearchCodecAwareSearchValueFieldQueryElementFactory.java
R backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/AbstractElasticsearchSearchFieldQueryElementFactory.java
A backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/AbstractElasticsearchSearchValueFieldQueryElementFactory.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchMultiIndexSearchValueFieldContext.java
R backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchSearchFieldQueryElementFactory.java
A backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchSearchValueFieldQueryElementFactory.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchSearchValueFieldTypeContext.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/predicate/impl/ElasticsearchExistsPredicate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/predicate/impl/ElasticsearchRangePredicate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchDistanceToFieldProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchFieldProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/impl/ElasticsearchIndexValueFieldType.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/predicate/impl/ElasticsearchGeoPointSpatialWithinBoundingBoxPredicate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/predicate/impl/ElasticsearchGeoPointSpatialWithinCirclePredicate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/predicate/impl/ElasticsearchGeoPointSpatialWithinPolygonPredicate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/predicate/impl/ElasticsearchSimpleQueryStringPredicateBuilderFieldState.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/predicate/impl/ElasticsearchStandardMatchPredicate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/predicate/impl/ElasticsearchTextMatchPredicate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/predicate/impl/ElasticsearchTextPhrasePredicate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/predicate/impl/ElasticsearchTextWildcardPredicate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/sort/impl/ElasticsearchDistanceSort.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/sort/impl/ElasticsearchStandardFieldSort.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaValueFieldNode.java
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/AbstractLuceneCodecAwareSearchFieldQueryElementFactory.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/AbstractLuceneCodecAwareSearchValueFieldQueryElementFactory.java
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/AbstractLuceneSearchFieldQueryElementFactory.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/AbstractLuceneSearchValueFieldQueryElementFactory.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneMultiIndexSearchValueFieldContext.java
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchFieldQueryElementFactory.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchValueFieldQueryElementFactory.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchValueFieldTypeContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneDistanceToFieldProjection.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneFieldProjection.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/aggregation/impl/LuceneNumericRangeAggregation.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/aggregation/impl/LuceneNumericTermsAggregation.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/aggregation/impl/LuceneTextTermsAggregation.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/impl/LuceneIndexValueFieldType.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneExistsPredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneGeoPointSpatialWithinBoundingBoxPredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneGeoPointSpatialWithinCirclePredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneGeoPointSpatialWithinPolygonPredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneNumericMatchPredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneNumericRangePredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneSimpleQueryStringPredicateBuilderFieldState.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneTextMatchPredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneTextPhrasePredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneTextRangePredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneTextWildcardPredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/sort/impl/LuceneGeoPointDistanceSort.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/sort/impl/LuceneStandardFieldSort.java
Log Message:
-----------
HSEARCH-4047 Rename LuceneSearchFieldQueryElementFactory/ElasticsearchSearchFieldQueryElementFactory to clarify they work on value fields only
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: ab639c947647613270a1bd82efdd116fc91a2084
https://github.com/hibernate/hibernate-search/commit/ab639c947647613270a1...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/AbstractElasticsearchIndexSchemaFieldNode.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexModel.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexSchemaObjectFieldNode.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexSchemaValueFieldNode.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/logging/impl/Log.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/scope/model/impl/ElasticsearchScopeSearchIndexesContext.java
A backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchMultiIndexSearchObjectFieldContext.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchMultiIndexSearchValueFieldContext.java
A backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchSearchFieldContext.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchSearchIndexesContext.java
A backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchSearchObjectFieldContext.java
A backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchSearchObjectFieldQueryElementFactory.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchSearchValueFieldContext.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/predicate/impl/ElasticsearchSearchPredicateBuilderFactoryImpl.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchSearchProjectionBuilderFactory.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/AbstractLuceneIndexSchemaFieldNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexModel.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaObjectFieldNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaValueFieldNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/logging/impl/Log.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/scope/model/impl/LuceneScopeSearchIndexesContext.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneMultiIndexSearchObjectFieldContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneMultiIndexSearchValueFieldContext.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchFieldContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchIndexesContext.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchObjectFieldContext.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchObjectFieldQueryElementFactory.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchValueFieldContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/predicate/impl/LuceneSimpleQueryStringPredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneSearchProjectionBuilderFactory.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/aggregation/SingleFieldAggregationInvalidFieldIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/AbstractPredicateInvalidFieldIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/ExistsPredicateBaseIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/MatchPredicateBaseIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/PhrasePredicateBaseIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/RangePredicateBaseIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/SimpleQueryStringPredicateBaseIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/SpatialWithinBoundingBoxPredicateBaseIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/SpatialWithinCirclePredicateBaseIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/SpatialWithinPolygonPredicateBaseIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/WildcardPredicateBaseIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/projection/DistanceSearchProjectionTypeIndependentIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/projection/FieldSearchProjectionTypeIndependentIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/sort/FieldSearchSortTypeIndependentIT.java
Log Message:
-----------
HSEARCH-4047 Return object fields as well when calling *SearchIndexesContext#field
This allows us to give more sensible error messages to the user when
they attempt to use a predicate/sort/projection that is not available on
object fields: instead of telling them the field does not exist, we tell
them the predicate/sort/projection is not available on object fields.
This also introduces *SearchObjectFieldContext, similar to *SearchValueFieldContext
but for object fields.
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: 6489f90c8e34d951827dff53a484dbaa5a2d0408
https://github.com/hibernate/hibernate-search/commit/6489f90c8e34d951827d...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/impl/ElasticsearchDocumentObjectBuilder.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/dsl/impl/ElasticsearchIndexSchemaRootNodeBuilder.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/AbstractElasticsearchIndexSchemaFieldTemplate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexModel.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/scope/model/impl/ElasticsearchScopeSearchIndexesContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/impl/AbstractLuceneDocumentBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/dsl/impl/LuceneIndexSchemaRootNodeBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/AbstractLuceneIndexSchemaFieldTemplate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexModel.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/scope/model/impl/LuceneScopeSearchIndexesContext.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/dynamic/ObjectFieldTemplateIT.java
Log Message:
-----------
HSEARCH-4048 Fix relative precedence of object field templates vs. value field templates
Without this fix,
ObjectFieldTemplateIT#matchingPathGlob_precedence_firstDeclared would
fail after the changes in the next few commits.
We cannot store templates for value fields and object fields in
separate data structures, otherwise we end up changing their relative
order and thus their precedence over each other.
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: f6fad4e60ff68386346db3f48951771318c38f56
https://github.com/hibernate/hibernate-search/commit/f6fad4e60ff68386346d...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/logging/impl/Log.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/scope/model/impl/ElasticsearchScopeSearchIndexesContext.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchMultiIndexSearchObjectFieldContext.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchSearchIndexesContext.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchSearchObjectFieldContext.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/predicate/impl/ElasticsearchSearchPredicateBuilderFactoryImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/logging/impl/Log.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/scope/model/impl/LuceneScopeSearchIndexesContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneMultiIndexSearchObjectFieldContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchIndexesContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchObjectFieldContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/predicate/impl/LuceneSearchPredicateBuilderFactoryImpl.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/ObjectStructureIT.java
Log Message:
-----------
HSEARCH-4047 Rely on *SearchIndexesContext#field to retrieve object field metadata in the Search DSL
This should make the code more robust and more straightforward.
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: 31d3eb2d72e6b38787ee57ceb0da06e46d27c9f2
https://github.com/hibernate/hibernate-search/commit/31d3eb2d72e6b38787ee...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneExistsPredicate.java
Log Message:
-----------
HSEARCH-4047 Remove a pointless method implementation from LuceneExistsPredicate#AbstractBuilder
The method is always overridden, and the default implementation doesn't
even make sense for non-text fields.
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Commit: 61b0275354040e20ae5a93d5a0b790d70c407df6
https://github.com/hibernate/hibernate-search/commit/61b0275354040e20ae5a...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-13 (Tue, 13 Oct 2020)
Changed paths:
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexSchemaObjectFieldNode.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/logging/impl/Log.java
A backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/AbstractElasticsearchSearchObjectFieldQueryElementFactory.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/impl/ElasticsearchMultiIndexSearchObjectFieldContext.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/predicate/impl/ElasticsearchExistsPredicate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaObjectFieldNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/logging/impl/Log.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/scope/model/impl/LuceneScopeSearchIndexesContext.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/AbstractLuceneSearchObjectFieldQueryElementFactory.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneMultiIndexSearchObjectFieldContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/impl/LuceneSearchIndexesContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/predicate/impl/LuceneSearchPredicateBuilderFactoryImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneObjectExistsPredicate.java
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneObjectPredicateBuilderFactory.java
R backend/lucene/src/main/java/org/hibernate/search/backend/lucene/types/predicate/impl/LuceneObjectPredicateBuilderFactoryImpl.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/predicate/ExistsPredicateObjectsSpecificsIT.java
Log Message:
-----------
HSEARCH-4047 Implement "exists" predicate factories for object fields similarly to value fields
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
Compare: https://github.com/hibernate/hibernate-search/compare/39b8bb85fb57...61b0...
4 years, 3 months
[hibernate/hibernate-search] 39b8bb: HSEARCH-4046 Expose a map of static children by na...
by Yoann Rodière
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-search
Commit: 39b8bb85fb57b80c57e4d8a6b49af9c56caccc26
https://github.com/hibernate/hibernate-search/commit/39b8bb85fb57b80c57e4...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2020-10-12 (Mon, 12 Oct 2020)
Changed paths:
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/dsl/impl/AbstractElasticsearchIndexSchemaFieldTemplateBuilder.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/dsl/impl/AbstractElasticsearchIndexSchemaObjectNodeBuilder.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/dsl/impl/ElasticsearchIndexSchemaObjectFieldNodeBuilder.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/dsl/impl/ElasticsearchIndexSchemaRootNodeBuilder.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/dsl/impl/ElasticsearchIndexSchemaValueFieldNodeBuilder.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexSchemaNodeContributor.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexSchemaObjectFieldNode.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexSchemaObjectFieldTemplate.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexSchemaObjectNode.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/document/model/impl/ElasticsearchIndexSchemaRootNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/dsl/impl/AbstractLuceneIndexSchemaFieldTemplateBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/dsl/impl/AbstractLuceneIndexSchemaObjectNodeBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/dsl/impl/LuceneIndexSchemaObjectFieldNodeBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/dsl/impl/LuceneIndexSchemaRootNodeBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/dsl/impl/LuceneIndexSchemaValueFieldNodeBuilder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaNodeContributor.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaObjectFieldNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaObjectFieldTemplate.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaObjectNode.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/document/model/impl/LuceneIndexSchemaRootNode.java
M engine/src/main/java/org/hibernate/search/engine/backend/metamodel/IndexCompositeElementDescriptor.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/metamodel/IndexFieldDescriptorIT.java
Log Message:
-----------
HSEARCH-4046 Expose a map of static children by name in the metamodel of object fields
Signed-off-by: Yoann Rodière <yoann(a)hibernate.org>
4 years, 3 months