Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2389

Support indexNullAs for @IndexedEmbedded with Elasticsearch

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.6.0.Beta3
    • Fix Version/s: None
    • Component/s: elasticsearch
    • Labels:
      None
    • Last commented by a user?:
      true

      Description

      Implementation note: Elasticsearch doesn't support "null_value" for object fields, and does not support setting a string value (our null token) to an object field either, so I don't see how we can get the same kind of queries we had with the Lucene backend ("path.to.embedded:_null_") working.
      Maybe we could just support the concept of "exists" queries, and not comply with the user-provided token? That would mean transforming queries such as "queryBuilder.keyword().onField("path.to.embedded").matching(null)" to "exists" queries in Elasticsearch.
      See https://www.elastic.co/guide/en/elasticsearch/guide/current/_dealing_with_null_values.html

      Note: there are tests that should pass when this ticket is resolved, and that are currently disabled in the pom.xml of the Elasticsearch module. Those tests will be (or have been) outlined as part of HSEARCH-2390 Closed .
      Also, some relevant tests are disabled using the ElasticsearchSupportInProgress category.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: