Search in sources :

Example 1 with SimpleMappedIndex

use of org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex in project hibernate-search by hibernate.

the class LuceneExtensionIT method indexDataSet.

private static void indexDataSet(SimpleMappedIndex<IndexBinding> index) {
    index.bulkIndexer().add(FIRST_ID, document -> {
        document.addValue(index.binding().string, "text 1");
        document.addValue(index.binding().nativeField, 37);
        document.addValue(index.binding().nativeField_converted, 37);
        document.addValue(index.binding().nativeField_unsupportedProjection, 37);
        document.addValue(index.binding().sort1, "a");
        document.addValue(index.binding().sort2, "z");
        document.addValue(index.binding().sort3, "z");
        DocumentElement nestedObject1 = document.addObject(index.binding().nestedObject.self);
        nestedObject1.addValue(index.binding().nestedObject.discriminator, "included");
        nestedObject1.addValue(index.binding().nestedObject.sort1, "a");
        nestedObject1.addValue(index.binding().nestedObject.aggregation1, "one");
        DocumentElement nestedObject2 = document.addObject(index.binding().nestedObject.self);
        nestedObject2.addValue(index.binding().nestedObject.discriminator, "excluded");
        nestedObject2.addValue(index.binding().nestedObject.sort1, "b");
        nestedObject2.addValue(index.binding().nestedObject.aggregation1, "fifty-one");
        DocumentElement flattenedObject1 = document.addObject(index.binding().flattenedObject.self);
        flattenedObject1.addValue(index.binding().flattenedObject.stringInObject, "text 2");
        flattenedObject1.addValue(index.binding().flattenedObject.sortInObject, "1");
    }).add(SECOND_ID, document -> {
        document.addValue(index.binding().integer, 2);
        document.addValue(index.binding().nativeField, 78);
        document.addValue(index.binding().nativeField_converted, 78);
        document.addValue(index.binding().nativeField_unsupportedProjection, 78);
        document.addValue(index.binding().sort1, "z");
        document.addValue(index.binding().sort2, "a");
        document.addValue(index.binding().sort3, "z");
        DocumentElement nestedObject1 = document.addObject(index.binding().nestedObject.self);
        nestedObject1.addValue(index.binding().nestedObject.discriminator, "included");
        nestedObject1.addValue(index.binding().nestedObject.sort1, "b");
        nestedObject1.addValue(index.binding().nestedObject.aggregation1, "two");
        DocumentElement nestedObject2 = document.addObject(index.binding().nestedObject.self);
        nestedObject2.addValue(index.binding().nestedObject.discriminator, "excluded");
        nestedObject2.addValue(index.binding().nestedObject.sort1, "a");
        nestedObject2.addValue(index.binding().nestedObject.aggregation1, "fifty-two");
        DocumentElement flattenedObject1 = document.addObject(index.binding().flattenedObject.self);
        flattenedObject1.addValue(index.binding().flattenedObject.integerInObject, 3);
        flattenedObject1.addValue(index.binding().flattenedObject.sortInObject, "2");
    }).add(THIRD_ID, document -> {
        document.addValue(index.binding().geoPoint, GeoPoint.of(40.12, -71.34));
        document.addValue(index.binding().nativeField, 13);
        document.addValue(index.binding().nativeField_converted, 13);
        document.addValue(index.binding().nativeField_unsupportedProjection, 13);
        document.addValue(index.binding().sort1, "z");
        document.addValue(index.binding().sort2, "z");
        document.addValue(index.binding().sort3, "a");
        DocumentElement nestedObject1 = document.addObject(index.binding().nestedObject.self);
        nestedObject1.addValue(index.binding().nestedObject.discriminator, "included");
        nestedObject1.addValue(index.binding().nestedObject.sort1, "c");
        nestedObject1.addValue(index.binding().nestedObject.aggregation1, "three");
        DocumentElement nestedObject2 = document.addObject(index.binding().nestedObject.self);
        nestedObject2.addValue(index.binding().nestedObject.discriminator, "excluded");
        nestedObject2.addValue(index.binding().nestedObject.sort1, "b");
        nestedObject2.addValue(index.binding().nestedObject.aggregation1, "fifty-three");
        DocumentElement flattenedObject1 = document.addObject(index.binding().flattenedObject.self);
        flattenedObject1.addValue(index.binding().flattenedObject.sortInObject, "3");
    }).add(FOURTH_ID, document -> {
        document.addValue(index.binding().nativeField, 89);
        document.addValue(index.binding().nativeField_converted, 89);
        document.addValue(index.binding().nativeField_unsupportedProjection, 89);
        document.addValue(index.binding().sort1, "z");
        document.addValue(index.binding().sort2, "z");
        document.addValue(index.binding().sort3, "z");
        DocumentElement nestedObject1 = document.addObject(index.binding().nestedObject.self);
        nestedObject1.addValue(index.binding().nestedObject.discriminator, "included");
        nestedObject1.addValue(index.binding().nestedObject.sort1, "d");
        nestedObject1.addValue(index.binding().nestedObject.aggregation1, "four");
        DocumentElement nestedObject2 = document.addObject(index.binding().nestedObject.self);
        nestedObject2.addValue(index.binding().nestedObject.discriminator, "excluded");
        nestedObject2.addValue(index.binding().nestedObject.sort1, "c");
        nestedObject2.addValue(index.binding().nestedObject.aggregation1, "fifty-four");
        DocumentElement flattenedObject1 = document.addObject(index.binding().flattenedObject.self);
        flattenedObject1.addValue(index.binding().flattenedObject.sortInObject, "4");
    }).add(FIFTH_ID, document -> {
        // This document should not match any query
        document.addValue(index.binding().string, "text 2");
        document.addValue(index.binding().integer, 1);
        document.addValue(index.binding().geoPoint, GeoPoint.of(45.12, -75.34));
        document.addValue(index.binding().sort1, "zz");
        document.addValue(index.binding().sort2, "zz");
        document.addValue(index.binding().sort3, "zz");
        DocumentElement nestedObject1 = document.addObject(index.binding().nestedObject.self);
        nestedObject1.addValue(index.binding().nestedObject.discriminator, "included");
        nestedObject1.addValue(index.binding().nestedObject.sort1, "e");
        nestedObject1.addValue(index.binding().nestedObject.aggregation1, "five");
        DocumentElement nestedObject2 = document.addObject(index.binding().nestedObject.self);
        nestedObject2.addValue(index.binding().nestedObject.discriminator, "excluded");
        nestedObject2.addValue(index.binding().nestedObject.sort1, "a");
        nestedObject2.addValue(index.binding().nestedObject.aggregation1, "fifty-five");
        DocumentElement flattenedObject1 = document.addObject(index.binding().flattenedObject.self);
        flattenedObject1.addValue(index.binding().flattenedObject.sortInObject, "5");
    }).join();
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) Backend(org.hibernate.search.engine.backend.Backend) IndexObjectFieldReference(org.hibernate.search.engine.backend.document.IndexObjectFieldReference) LuceneIndexManager(org.hibernate.search.backend.lucene.index.LuceneIndexManager) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) IndexableField(org.apache.lucene.index.IndexableField) Term(org.apache.lucene.index.Term) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) LuceneSearchQuery(org.hibernate.search.backend.lucene.search.query.LuceneSearchQuery) LuceneExtension(org.hibernate.search.backend.lucene.LuceneExtension) LuceneSearchSortFactory(org.hibernate.search.backend.lucene.search.sort.dsl.LuceneSearchSortFactory) DoublePoint(org.apache.lucene.document.DoublePoint) Document(org.apache.lucene.document.Document) Map(java.util.Map) IndexManager(org.hibernate.search.engine.backend.index.IndexManager) StubMappingScope(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappingScope) SortField(org.apache.lucene.search.SortField) FailureReportUtils(org.hibernate.search.util.impl.integrationtest.common.reporting.FailureReportUtils) LuceneSearchQuerySelectStep(org.hibernate.search.backend.lucene.search.query.dsl.LuceneSearchQuerySelectStep) SearchProjection(org.hibernate.search.engine.search.projection.SearchProjection) NumericDocValuesField(org.apache.lucene.document.NumericDocValuesField) LatLonPoint(org.apache.lucene.document.LatLonPoint) Explanation(org.apache.lucene.search.Explanation) Sort(org.apache.lucene.search.Sort) SortedSetSortField(org.apache.lucene.search.SortedSetSortField) MatchAllDocsQuery(org.apache.lucene.search.MatchAllDocsQuery) IndexSchemaElement(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement) IndexSchemaObjectField(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField) Collectors(java.util.stream.Collectors) LuceneBackend(org.hibernate.search.backend.lucene.LuceneBackend) IndexFieldReference(org.hibernate.search.engine.backend.document.IndexFieldReference) List(java.util.List) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) Aggregable(org.hibernate.search.engine.backend.types.Aggregable) SearchHitsAssert.assertThatHits(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchHitsAssert.assertThatHits) Optional(java.util.Optional) LuceneSearchResult(org.hibernate.search.backend.lucene.search.query.LuceneSearchResult) LuceneSearchPredicateFactory(org.hibernate.search.backend.lucene.search.predicate.dsl.LuceneSearchPredicateFactory) IndexReader(org.apache.lucene.index.IndexReader) Projectable(org.hibernate.search.engine.backend.types.Projectable) IndexSearcher(org.apache.lucene.search.IndexSearcher) SearchLoadingContext(org.hibernate.search.engine.search.loading.spi.SearchLoadingContext) GeoPoint(org.hibernate.search.engine.spatial.GeoPoint) DocumentAssert.containsDocument(org.hibernate.search.integrationtest.backend.lucene.testsupport.util.DocumentAssert.containsDocument) StringField(org.apache.lucene.document.StringField) SearchIntegration(org.hibernate.search.engine.common.spi.SearchIntegration) SearchPredicate(org.hibernate.search.engine.search.predicate.SearchPredicate) SearchSort(org.hibernate.search.engine.search.sort.SearchSort) SearchResultAssert.assertThatQuery(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery) ObjectStructure(org.hibernate.search.engine.backend.types.ObjectStructure) ArrayList(java.util.ArrayList) MetadataFields(org.hibernate.search.backend.lucene.lowlevel.common.impl.MetadataFields) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) Store(org.apache.lucene.document.Field.Store) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) IntPoint(org.apache.lucene.document.IntPoint) ValueConvert(org.hibernate.search.engine.search.common.ValueConvert) DocumentElement(org.hibernate.search.engine.backend.document.DocumentElement) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) ValueWrapper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.ValueWrapper) Before(org.junit.Before) TopDocs(org.apache.lucene.search.TopDocs) LuceneSearchScroll(org.hibernate.search.backend.lucene.search.query.LuceneSearchScroll) LuceneSearchQueryWhereStep(org.hibernate.search.backend.lucene.search.query.dsl.LuceneSearchQueryWhereStep) Sortable(org.hibernate.search.engine.backend.types.Sortable) EventContexts(org.hibernate.search.engine.reporting.spi.EventContexts) LuceneSearchScrollResult(org.hibernate.search.backend.lucene.search.query.LuceneSearchScrollResult) AggregationKey(org.hibernate.search.engine.search.aggregation.AggregationKey) Test(org.junit.Test) Assertions.entry(org.assertj.core.api.Assertions.entry) SearchResultAssert.assertThatResult(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatResult) Consumer(java.util.function.Consumer) LuceneSearchQueryOptionsStep(org.hibernate.search.backend.lucene.search.query.dsl.LuceneSearchQueryOptionsStep) TermQuery(org.apache.lucene.search.TermQuery) Rule(org.junit.Rule) StubLoadingOptionsStep(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubLoadingOptionsStep) SearchQuery(org.hibernate.search.engine.search.query.SearchQuery) Type(org.apache.lucene.search.SortField.Type) DocumentElement(org.hibernate.search.engine.backend.document.DocumentElement)

Example 2 with SimpleMappedIndex

use of org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex in project hibernate-search by hibernate.

the class DecimalScaleIT method decimalScale_tooLargeDecimal_scale2_bigDecimal_lowerBound_queryPredicateBuildTime.

@Test
public void decimalScale_tooLargeDecimal_scale2_bigDecimal_lowerBound_queryPredicateBuildTime() {
    SimpleMappedIndex<DecimalScaleIndexBinding> index = SimpleMappedIndex.of(root -> new DecimalScaleIndexBinding(root, 2));
    setupHelper.start().withIndex(index).setup();
    // Provide a value that if it were divided by 10, could not be represented as a long, because the scale of 2
    BigDecimal tooLargeDecimal = BigDecimal.valueOf(Long.MIN_VALUE).divide(BigDecimal.TEN);
    BigDecimal veryLargeDecimal = tooLargeDecimal.divide(BigDecimal.TEN);
    index.index("1", doc -> doc.addValue(index.binding().scaled, veryLargeDecimal));
    assertThatThrownBy(() -> index.createScope().query().selectEntityReference().where(p -> p.range().field("scaled").atLeast(tooLargeDecimal))).isInstanceOf(SearchException.class).hasMessageContainingAll("Unable to encode value '" + tooLargeDecimal.toString() + "'", "this field type only supports values ranging from ", "If you want to encode values that are outside this range," + " change the decimal scale for this field");
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) Test(org.junit.Test) SearchResultAssert.assertThatQuery(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery) IndexSchemaElement(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement) StubMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappedIndex) BigDecimal(java.math.BigDecimal) IndexFieldReference(org.hibernate.search.engine.backend.document.IndexFieldReference) IndexedEntityBindingContext(org.hibernate.search.engine.mapper.mapping.building.spi.IndexedEntityBindingContext) Rule(org.junit.Rule) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) IndexFieldTypeDefaultsProvider(org.hibernate.search.engine.mapper.mapping.building.spi.IndexFieldTypeDefaultsProvider) SearchQuery(org.hibernate.search.engine.search.query.SearchQuery) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) BigInteger(java.math.BigInteger) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) Projectable(org.hibernate.search.engine.backend.types.Projectable) SearchException(org.hibernate.search.util.common.SearchException) BigDecimal(java.math.BigDecimal) Test(org.junit.Test)

Example 3 with SimpleMappedIndex

use of org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex in project hibernate-search by hibernate.

the class DecimalScaleIT method decimalScale_tooLargeDecimal_scale2_bigDecimal.

@Test
public void decimalScale_tooLargeDecimal_scale2_bigDecimal() {
    SimpleMappedIndex<DecimalScaleIndexBinding> index = SimpleMappedIndex.of(root -> new DecimalScaleIndexBinding(root, 2));
    setupHelper.start().withIndex(index).setup();
    // Provide a value that if it were divided by 10, could not be represented as a long, because the scale of 2
    BigDecimal tooLargeDecimal = BigDecimal.valueOf(Long.MAX_VALUE).divide(BigDecimal.TEN);
    assertThatThrownBy(() -> index.index("1", doc -> doc.addValue(index.binding().scaled, tooLargeDecimal))).isInstanceOf(SearchException.class).hasMessageContainingAll("Unable to encode value '" + tooLargeDecimal.toString() + "'", "this field type only supports values ranging from ", "If you want to encode values that are outside this range," + " change the decimal scale for this field");
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) Test(org.junit.Test) SearchResultAssert.assertThatQuery(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery) IndexSchemaElement(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement) StubMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappedIndex) BigDecimal(java.math.BigDecimal) IndexFieldReference(org.hibernate.search.engine.backend.document.IndexFieldReference) IndexedEntityBindingContext(org.hibernate.search.engine.mapper.mapping.building.spi.IndexedEntityBindingContext) Rule(org.junit.Rule) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) IndexFieldTypeDefaultsProvider(org.hibernate.search.engine.mapper.mapping.building.spi.IndexFieldTypeDefaultsProvider) SearchQuery(org.hibernate.search.engine.search.query.SearchQuery) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) BigInteger(java.math.BigInteger) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) Projectable(org.hibernate.search.engine.backend.types.Projectable) SearchException(org.hibernate.search.util.common.SearchException) BigDecimal(java.math.BigDecimal) Test(org.junit.Test)

Example 4 with SimpleMappedIndex

use of org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex in project hibernate-search by hibernate.

the class DecimalScaleIT method decimalScale_rounding_bigDecimal.

@Test
public void decimalScale_rounding_bigDecimal() {
    SimpleMappedIndex<DecimalScaleIndexBinding> index = SimpleMappedIndex.of(root -> new DecimalScaleIndexBinding(root, 2));
    setupHelper.start().withIndex(index).setup();
    index.bulkIndexer().add("1", doc -> doc.addValue(index.binding().scaled, new BigDecimal("739.114999"))).add("2", doc -> doc.addValue(index.binding().scaled, new BigDecimal("739.115"))).add("3", doc -> doc.addValue(index.binding().scaled, new BigDecimal("739.11"))).add("4", doc -> doc.addValue(index.binding().scaled, new BigDecimal("739.12"))).join();
    // RoundingMode.HALF_UP expected on both values:
    match(index, new BigDecimal("739.11"), "1", "3");
    match(index, new BigDecimal("739.12"), "2", "4");
    // and parameters:
    match(index, new BigDecimal("739.114999"), "1", "3");
    match(index, new BigDecimal("739.115"), "2", "4");
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) Test(org.junit.Test) SearchResultAssert.assertThatQuery(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery) IndexSchemaElement(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement) StubMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappedIndex) BigDecimal(java.math.BigDecimal) IndexFieldReference(org.hibernate.search.engine.backend.document.IndexFieldReference) IndexedEntityBindingContext(org.hibernate.search.engine.mapper.mapping.building.spi.IndexedEntityBindingContext) Rule(org.junit.Rule) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) IndexFieldTypeDefaultsProvider(org.hibernate.search.engine.mapper.mapping.building.spi.IndexFieldTypeDefaultsProvider) SearchQuery(org.hibernate.search.engine.search.query.SearchQuery) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) BigInteger(java.math.BigInteger) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) Projectable(org.hibernate.search.engine.backend.types.Projectable) BigDecimal(java.math.BigDecimal) Test(org.junit.Test)

Example 5 with SimpleMappedIndex

use of org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex in project hibernate-search by hibernate.

the class DecimalScaleIT method decimalScale_tooLargeDecimal_scale0_bigInteger.

@Test
public void decimalScale_tooLargeDecimal_scale0_bigInteger() {
    SimpleMappedIndex<IntegerScaleIndexBinding> index = SimpleMappedIndex.of(root -> new IntegerScaleIndexBinding(root, 0));
    setupHelper.start().withIndex(index).setup();
    // Provide a value that cannot be represented as a long
    BigInteger tooLargeInteger = BigInteger.valueOf(Long.MAX_VALUE).multiply(BigInteger.TEN);
    assertThatThrownBy(() -> index.index("1", doc -> doc.addValue(index.binding().scaled, tooLargeInteger))).isInstanceOf(SearchException.class).hasMessageContainingAll("Unable to encode value '" + tooLargeInteger.toString() + "'", "this field type only supports values ranging from ", "If you want to encode values that are outside this range," + " change the decimal scale for this field");
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) Test(org.junit.Test) SearchResultAssert.assertThatQuery(org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery) IndexSchemaElement(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement) StubMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappedIndex) BigDecimal(java.math.BigDecimal) IndexFieldReference(org.hibernate.search.engine.backend.document.IndexFieldReference) IndexedEntityBindingContext(org.hibernate.search.engine.mapper.mapping.building.spi.IndexedEntityBindingContext) Rule(org.junit.Rule) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) IndexFieldTypeDefaultsProvider(org.hibernate.search.engine.mapper.mapping.building.spi.IndexFieldTypeDefaultsProvider) SearchQuery(org.hibernate.search.engine.search.query.SearchQuery) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) BigInteger(java.math.BigInteger) DocumentReference(org.hibernate.search.engine.backend.common.DocumentReference) Projectable(org.hibernate.search.engine.backend.types.Projectable) BigInteger(java.math.BigInteger) SearchException(org.hibernate.search.util.common.SearchException) Test(org.junit.Test)

Aggregations

Assertions.assertThat (org.assertj.core.api.Assertions.assertThat)15 Assertions.assertThatThrownBy (org.assertj.core.api.Assertions.assertThatThrownBy)15 DocumentReference (org.hibernate.search.engine.backend.common.DocumentReference)15 IndexFieldReference (org.hibernate.search.engine.backend.document.IndexFieldReference)15 IndexSchemaElement (org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement)15 Projectable (org.hibernate.search.engine.backend.types.Projectable)15 SearchQuery (org.hibernate.search.engine.search.query.SearchQuery)15 SearchSetupHelper (org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper)15 SearchException (org.hibernate.search.util.common.SearchException)15 SearchResultAssert.assertThatQuery (org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery)15 SimpleMappedIndex (org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex)15 Rule (org.junit.Rule)15 Test (org.junit.Test)15 BigDecimal (java.math.BigDecimal)14 BigInteger (java.math.BigInteger)14 IndexFieldTypeDefaultsProvider (org.hibernate.search.engine.mapper.mapping.building.spi.IndexFieldTypeDefaultsProvider)14 IndexedEntityBindingContext (org.hibernate.search.engine.mapper.mapping.building.spi.IndexedEntityBindingContext)14 StubMappedIndex (org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappedIndex)14 ArrayList (java.util.ArrayList)1 List (java.util.List)1