Search in sources :

Example 1 with CENTER_POINT

use of org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT in project hibernate-search by hibernate.

the class DistanceSearchSortTypeCheckingAndConversionIT method multiIndex_withMissingFieldIndex.

@Test
@TestForIssue(jiraKey = "HSEARCH-4173")
public void multiIndex_withMissingFieldIndex() {
    assumeTrue("This backend doesn't support distance sorts on a field that is missing from some of the target indexes.", TckConfiguration.get().getBackendFeatures().supportsDistanceSortWhenFieldMissingInSomeTargetIndexes());
    StubMappingScope scope = mainIndex.createScope(missingFieldIndex);
    SearchQuery<DocumentReference> query;
    String fieldPath = getFieldPath();
    query = matchNonEmptyQuery(f -> f.distance(fieldPath, CENTER_POINT), scope);
    /*
		 * Not testing the ordering of results here because it's not what we are interested in:
		 * we just want to check that fields are correctly detected as compatible,
		 * that no exception is thrown and that the query is correctly executed on all indexes
		 * with no silent error (HSEARCH-4173).
		 */
    assertThatQuery(query).hasDocRefHitsAnyOrder(b -> {
        b.doc(missingFieldIndex.typeName(), MISSING_FIELD_INDEX_DOCUMENT_1);
        b.doc(mainIndex.typeName(), DOCUMENT_1);
        b.doc(mainIndex.typeName(), DOCUMENT_2);
        b.doc(mainIndex.typeName(), DOCUMENT_3);
    });
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) IndexObjectFieldReference(org.hibernate.search.engine.backend.document.IndexObjectFieldReference) GeoPoint(org.hibernate.search.engine.spatial.GeoPoint) GeoPointFieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.GeoPointFieldTypeDescriptor) BeforeClass(org.junit.BeforeClass) SimpleFieldModel(org.hibernate.search.integrationtest.backend.tck.testsupport.util.SimpleFieldModel) Searchable(org.hibernate.search.engine.backend.types.Searchable) SortFinalStep(org.hibernate.search.engine.search.sort.dsl.SortFinalStep) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) SearchResultAssert.assertThatQuery(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery) SearchSortFactory(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory) Function(java.util.function.Function) ObjectStructure(org.hibernate.search.engine.backend.types.ObjectStructure) AscendingUniqueDistanceFromCenterValues(org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) BulkIndexer(org.hibernate.search.util.impl.integrationtest.mapper.stub.BulkIndexer) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) StubMappingScope(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappingScope) FailureReportUtils(org.hibernate.search.util.impl.integrationtest.common.FailureReportUtils) ClassRule(org.junit.ClassRule) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) DocumentElement(org.hibernate.search.engine.backend.document.DocumentElement) ValueWrapper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.ValueWrapper) FieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.FieldTypeDescriptor) Sortable(org.hibernate.search.engine.backend.types.Sortable) CENTER_POINT(org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT) EventContexts(org.hibernate.search.engine.reporting.spi.EventContexts) Test(org.junit.Test) IndexSchemaElement(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement) IndexSchemaObjectField(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField) Consumer(java.util.function.Consumer) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) Aggregable(org.hibernate.search.engine.backend.types.Aggregable) StandardIndexFieldTypeOptionsStep(org.hibernate.search.engine.backend.types.dsl.StandardIndexFieldTypeOptionsStep) SearchQuery(org.hibernate.search.engine.search.query.SearchQuery) Assume.assumeTrue(org.junit.Assume.assumeTrue) Projectable(org.hibernate.search.engine.backend.types.Projectable) TckConfiguration(org.hibernate.search.integrationtest.backend.tck.testsupport.util.TckConfiguration) StubMappingScope(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappingScope) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) Test(org.junit.Test) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue)

Example 2 with CENTER_POINT

use of org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT in project hibernate-search by hibernate.

the class DistanceSearchSortTypeCheckingAndConversionIT method multiIndex_withMissingFieldIndex_nested.

/**
 * Test the behavior when even the <strong>parent</strong> field of the field to sort on is missing,
 * and that parent field is <strong>nested</strong> in the main index.
 */
@Test
@TestForIssue(jiraKey = "HSEARCH-4173")
public void multiIndex_withMissingFieldIndex_nested() {
    assumeTrue("This backend doesn't support distance sorts on a nested field that is missing from some of the target indexes.", TckConfiguration.get().getBackendFeatures().supportsDistanceSortWhenNestedFieldMissingInSomeTargetIndexes());
    StubMappingScope scope = mainIndex.createScope(missingFieldIndex);
    SearchQuery<DocumentReference> query;
    String fieldPath = getFieldInNestedPath();
    query = matchNonEmptyQuery(f -> f.distance(fieldPath, CENTER_POINT), scope);
    /*
		 * Not testing the ordering of results here because it's not what we are interested in:
		 * we just want to check that fields are correctly detected as compatible,
		 * that no exception is thrown and that the query is correctly executed on all indexes
		 * with no silent error (HSEARCH-4173).
		 */
    assertThatQuery(query).hasDocRefHitsAnyOrder(b -> {
        b.doc(missingFieldIndex.typeName(), MISSING_FIELD_INDEX_DOCUMENT_1);
        b.doc(mainIndex.typeName(), DOCUMENT_1);
        b.doc(mainIndex.typeName(), DOCUMENT_2);
        b.doc(mainIndex.typeName(), DOCUMENT_3);
    });
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) IndexObjectFieldReference(org.hibernate.search.engine.backend.document.IndexObjectFieldReference) GeoPoint(org.hibernate.search.engine.spatial.GeoPoint) GeoPointFieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.GeoPointFieldTypeDescriptor) BeforeClass(org.junit.BeforeClass) SimpleFieldModel(org.hibernate.search.integrationtest.backend.tck.testsupport.util.SimpleFieldModel) Searchable(org.hibernate.search.engine.backend.types.Searchable) SortFinalStep(org.hibernate.search.engine.search.sort.dsl.SortFinalStep) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) SearchResultAssert.assertThatQuery(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery) SearchSortFactory(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory) Function(java.util.function.Function) ObjectStructure(org.hibernate.search.engine.backend.types.ObjectStructure) AscendingUniqueDistanceFromCenterValues(org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) BulkIndexer(org.hibernate.search.util.impl.integrationtest.mapper.stub.BulkIndexer) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) StubMappingScope(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappingScope) FailureReportUtils(org.hibernate.search.util.impl.integrationtest.common.FailureReportUtils) ClassRule(org.junit.ClassRule) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) DocumentElement(org.hibernate.search.engine.backend.document.DocumentElement) ValueWrapper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.ValueWrapper) FieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.FieldTypeDescriptor) Sortable(org.hibernate.search.engine.backend.types.Sortable) CENTER_POINT(org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT) EventContexts(org.hibernate.search.engine.reporting.spi.EventContexts) Test(org.junit.Test) IndexSchemaElement(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement) IndexSchemaObjectField(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField) Consumer(java.util.function.Consumer) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) Aggregable(org.hibernate.search.engine.backend.types.Aggregable) StandardIndexFieldTypeOptionsStep(org.hibernate.search.engine.backend.types.dsl.StandardIndexFieldTypeOptionsStep) SearchQuery(org.hibernate.search.engine.search.query.SearchQuery) Assume.assumeTrue(org.junit.Assume.assumeTrue) Projectable(org.hibernate.search.engine.backend.types.Projectable) TckConfiguration(org.hibernate.search.integrationtest.backend.tck.testsupport.util.TckConfiguration) StubMappingScope(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappingScope) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) Test(org.junit.Test) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue)

Example 3 with CENTER_POINT

use of org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT in project hibernate-search by hibernate.

the class DistanceSearchSortTypeCheckingAndConversionIT method multiIndex_withIncompatibleIndex.

@Test
public void multiIndex_withIncompatibleIndex() {
    StubMappingScope scope = mainIndex.createScope(incompatibleIndex);
    String fieldPath = getFieldPath();
    assertThatThrownBy(() -> {
        matchAllQuery(f -> f.distance(fieldPath, CENTER_POINT), scope);
    }).isInstanceOf(SearchException.class).hasMessageContainingAll("Inconsistent configuration for field '" + fieldPath + "' in a search query across multiple indexes", "Inconsistent support for 'sort:distance'").satisfies(FailureReportUtils.hasContext(EventContexts.fromIndexNames(mainIndex.name(), incompatibleIndex.name())));
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) IndexObjectFieldReference(org.hibernate.search.engine.backend.document.IndexObjectFieldReference) GeoPoint(org.hibernate.search.engine.spatial.GeoPoint) GeoPointFieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.GeoPointFieldTypeDescriptor) BeforeClass(org.junit.BeforeClass) SimpleFieldModel(org.hibernate.search.integrationtest.backend.tck.testsupport.util.SimpleFieldModel) Searchable(org.hibernate.search.engine.backend.types.Searchable) SortFinalStep(org.hibernate.search.engine.search.sort.dsl.SortFinalStep) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) SearchResultAssert.assertThatQuery(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery) SearchSortFactory(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory) Function(java.util.function.Function) ObjectStructure(org.hibernate.search.engine.backend.types.ObjectStructure) AscendingUniqueDistanceFromCenterValues(org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) BulkIndexer(org.hibernate.search.util.impl.integrationtest.mapper.stub.BulkIndexer) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) StubMappingScope(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappingScope) FailureReportUtils(org.hibernate.search.util.impl.integrationtest.common.FailureReportUtils) ClassRule(org.junit.ClassRule) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) DocumentElement(org.hibernate.search.engine.backend.document.DocumentElement) ValueWrapper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.ValueWrapper) FieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.FieldTypeDescriptor) Sortable(org.hibernate.search.engine.backend.types.Sortable) CENTER_POINT(org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT) EventContexts(org.hibernate.search.engine.reporting.spi.EventContexts) Test(org.junit.Test) IndexSchemaElement(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement) IndexSchemaObjectField(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField) Consumer(java.util.function.Consumer) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) Aggregable(org.hibernate.search.engine.backend.types.Aggregable) StandardIndexFieldTypeOptionsStep(org.hibernate.search.engine.backend.types.dsl.StandardIndexFieldTypeOptionsStep) SearchQuery(org.hibernate.search.engine.search.query.SearchQuery) Assume.assumeTrue(org.junit.Assume.assumeTrue) Projectable(org.hibernate.search.engine.backend.types.Projectable) TckConfiguration(org.hibernate.search.integrationtest.backend.tck.testsupport.util.TckConfiguration) StubMappingScope(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappingScope) Test(org.junit.Test)

Example 4 with CENTER_POINT

use of org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT in project hibernate-search by hibernate.

the class DistanceSearchSortBaseIT method factoryWithRoot.

@Test
@TestForIssue(jiraKey = "HSEARCH-4162")
public void factoryWithRoot() {
    assumeTestParametersWork();
    AbstractObjectBinding parentObjectBinding = index.binding().getParentObject(fieldStructure);
    assumeTrue("This test is only relevant when the field is located on an object field", parentObjectBinding.absolutePath != null);
    DataSet dataSet = dataSetForAsc;
    assertThatQuery(index.query().where(f -> f.matchAll()).routing(dataSet.routingKey).sort(((Function<SearchSortFactory, DistanceSortOptionsStep<?, ?>>) f -> f.withRoot(parentObjectBinding.absolutePath).distance(parentObjectBinding.getRelativeFieldName(fieldStructure, fieldType), CENTER_POINT)).andThen(this::applySortMode).andThen(optionsStep -> {
        if (fieldStructure.isInNested()) {
            return optionsStep.filter(f -> f.match().field(AbstractObjectBinding.DISCRIMINATOR_FIELD_NAME).matching("included"));
        } else {
            return optionsStep;
        }
    }))).hasDocRefHitsExactOrder(index.typeName(), dataSet.doc1Id, dataSet.doc2Id, dataSet.doc3Id, dataSet.emptyDoc1Id);
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) GeoPoint(org.hibernate.search.engine.spatial.GeoPoint) GeoPointFieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.GeoPointFieldTypeDescriptor) BeforeClass(org.junit.BeforeClass) Assume.assumeFalse(org.junit.Assume.assumeFalse) RunWith(org.junit.runner.RunWith) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) SearchResultAssert.assertThatQuery(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery) SearchSortFactory(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory) Function(java.util.function.Function) AscendingUniqueDistanceFromCenterValues(org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues) ArrayList(java.util.ArrayList) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) BulkIndexer(org.hibernate.search.util.impl.integrationtest.mapper.stub.BulkIndexer) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) SingleFieldIndexBinding(org.hibernate.search.integrationtest.backend.tck.testsupport.model.singlefield.SingleFieldIndexBinding) ClassRule(org.junit.ClassRule) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) Parameterized(org.junit.runners.Parameterized) FieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.FieldTypeDescriptor) Sortable(org.hibernate.search.engine.backend.types.Sortable) CENTER_POINT(org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT) SortMode(org.hibernate.search.engine.search.common.SortMode) Set(java.util.Set) Test(org.junit.Test) IndexSchemaElement(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement) StubMapperUtils.documentProvider(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMapperUtils.documentProvider) List(java.util.List) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) SearchQuery(org.hibernate.search.engine.search.query.SearchQuery) AbstractObjectBinding(org.hibernate.search.integrationtest.backend.tck.testsupport.model.singlefield.AbstractObjectBinding) Assume.assumeTrue(org.junit.Assume.assumeTrue) TestedFieldStructure(org.hibernate.search.integrationtest.backend.tck.testsupport.util.TestedFieldStructure) Collections(java.util.Collections) DistanceSortOptionsStep(org.hibernate.search.engine.search.sort.dsl.DistanceSortOptionsStep) TckConfiguration(org.hibernate.search.integrationtest.backend.tck.testsupport.util.TckConfiguration) Function(java.util.function.Function) AbstractObjectBinding(org.hibernate.search.integrationtest.backend.tck.testsupport.model.singlefield.AbstractObjectBinding) Test(org.junit.Test) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue)

Example 5 with CENTER_POINT

use of org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT in project hibernate-search by hibernate.

the class DistanceSortBaseIT method factoryWithRoot.

@Test
@TestForIssue(jiraKey = "HSEARCH-4162")
public void factoryWithRoot() {
    assumeTestParametersWork();
    AbstractObjectBinding parentObjectBinding = index.binding().getParentObject(fieldStructure);
    assumeTrue("This test is only relevant when the field is located on an object field", parentObjectBinding.absolutePath != null);
    DataSet dataSet = dataSetForAsc;
    assertThatQuery(index.query().where(f -> f.matchAll()).routing(dataSet.routingKey).sort(((Function<SearchSortFactory, DistanceSortOptionsStep<?, ?>>) f -> f.withRoot(parentObjectBinding.absolutePath).distance(parentObjectBinding.getRelativeFieldName(fieldStructure, fieldType), CENTER_POINT)).andThen(this::applySortMode).andThen(optionsStep -> {
        if (fieldStructure.isInNested()) {
            return optionsStep.filter(f -> f.match().field(AbstractObjectBinding.DISCRIMINATOR_FIELD_NAME).matching("included"));
        } else {
            return optionsStep;
        }
    }))).hasDocRefHitsExactOrder(index.typeName(), dataSet.doc1Id, dataSet.doc2Id, dataSet.doc3Id, dataSet.emptyDoc1Id);
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) Arrays(java.util.Arrays) GeoPoint(org.hibernate.search.engine.spatial.GeoPoint) GeoPointFieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.GeoPointFieldTypeDescriptor) BeforeClass(org.junit.BeforeClass) Assume.assumeFalse(org.junit.Assume.assumeFalse) RunWith(org.junit.runner.RunWith) SearchSort(org.hibernate.search.engine.search.sort.SearchSort) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) SearchResultAssert.assertThatQuery(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery) SearchSortFactory(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory) Function(java.util.function.Function) AscendingUniqueDistanceFromCenterValues(org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues) ArrayList(java.util.ArrayList) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) BulkIndexer(org.hibernate.search.util.impl.integrationtest.mapper.stub.BulkIndexer) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) StubMappingScope(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappingScope) SingleFieldIndexBinding(org.hibernate.search.integrationtest.backend.tck.testsupport.model.singlefield.SingleFieldIndexBinding) ClassRule(org.junit.ClassRule) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) Parameterized(org.junit.runners.Parameterized) FieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.FieldTypeDescriptor) Sortable(org.hibernate.search.engine.backend.types.Sortable) CENTER_POINT(org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT) SortMode(org.hibernate.search.engine.search.common.SortMode) Set(java.util.Set) Test(org.junit.Test) IndexSchemaElement(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement) StubMapperUtils.documentProvider(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMapperUtils.documentProvider) List(java.util.List) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) SearchQuery(org.hibernate.search.engine.search.query.SearchQuery) AbstractObjectBinding(org.hibernate.search.integrationtest.backend.tck.testsupport.model.singlefield.AbstractObjectBinding) Assume.assumeTrue(org.junit.Assume.assumeTrue) TestedFieldStructure(org.hibernate.search.integrationtest.backend.tck.testsupport.util.TestedFieldStructure) Collections(java.util.Collections) DistanceSortOptionsStep(org.hibernate.search.engine.search.sort.dsl.DistanceSortOptionsStep) TckConfiguration(org.hibernate.search.integrationtest.backend.tck.testsupport.util.TckConfiguration) Function(java.util.function.Function) AbstractObjectBinding(org.hibernate.search.integrationtest.backend.tck.testsupport.model.singlefield.AbstractObjectBinding) Test(org.junit.Test) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue)

Aggregations

Function (java.util.function.Function)13 Assertions.assertThatThrownBy (org.assertj.core.api.Assertions.assertThatThrownBy)13 DocumentReference (org.hibernate.search.engine.backend.common.DocumentReference)13 IndexSchemaElement (org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement)13 Sortable (org.hibernate.search.engine.backend.types.Sortable)13 SearchQuery (org.hibernate.search.engine.search.query.SearchQuery)13 SearchSortFactory (org.hibernate.search.engine.search.sort.dsl.SearchSortFactory)13 GeoPoint (org.hibernate.search.engine.spatial.GeoPoint)13 FieldTypeDescriptor (org.hibernate.search.integrationtest.backend.tck.testsupport.types.FieldTypeDescriptor)13 GeoPointFieldTypeDescriptor (org.hibernate.search.integrationtest.backend.tck.testsupport.types.GeoPointFieldTypeDescriptor)13 AscendingUniqueDistanceFromCenterValues (org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues)13 CENTER_POINT (org.hibernate.search.integrationtest.backend.tck.testsupport.types.values.AscendingUniqueDistanceFromCenterValues.CENTER_POINT)13 TckConfiguration (org.hibernate.search.integrationtest.backend.tck.testsupport.util.TckConfiguration)13 SearchSetupHelper (org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper)13 SearchException (org.hibernate.search.util.common.SearchException)13 SearchResultAssert.assertThatQuery (org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery)13 BulkIndexer (org.hibernate.search.util.impl.integrationtest.mapper.stub.BulkIndexer)13 SimpleMappedIndex (org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex)13 TestForIssue (org.hibernate.search.util.impl.test.annotation.TestForIssue)13 Assume.assumeTrue (org.junit.Assume.assumeTrue)13