spring-data-opensearch icon indicating copy to clipboard operation
spring-data-opensearch copied to clipboard

No handler for type [flattened] declared on field [requestParameters]

Open kedbirhan opened this issue 7 months ago • 3 comments

for a field type that we want to map to flattened object field, it can be annotated with @FieldType.Flattened which is mapped to "flattened" field type in elasticsearch. But opensearch does not recognize this type since its declared as "flat_object" in Opensearch type. due to this mismatch i am unable to declare flattened obejct type using org.springframework.data.elasticsearch.annotations.FieldType any recommendation or workaround to solve this problem ?

reference https://opensearch.org/docs/latest/field-types/supported-field-types/flat-object/ https://www.elastic.co/guide/en/elasticsearch/reference/current/flattened.html https://docs.spring.io/spring-data/elasticsearch/docs/current/api/org/springframework/data/elasticsearch/annotations/FieldType.html#Flattened

kedbirhan avatar Jul 17 '24 02:07 kedbirhan