opensearch-project / spring-data-opensearch

Apache License 2.0
117 stars 39 forks source link

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

Open kedbirhan opened 1 month ago

kedbirhan commented 1 month ago

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

reta commented 1 month ago

https://github.com/spring-projects/spring-data-elasticsearch/issues/2942

reta commented 1 month ago

Coming in Spring Data Elasticsearch 5.4

kedbirhan commented 4 weeks ago

thanks a lot!