I am using spring-data-elasticserach-4.0.0.RELEASE. According to elasticsearch guide, the term_vector can be: with_positions_offsets .

But in: org.springframework.data.elasticsearch.annotations.TermVector, provide woth_positions_offsets. When i use this value to create mapping, got an error: wrong value for termVector [woth_positions_offsets] Is it right? Or just spelling mistake?

Comment From: wilkinsona

That looks like a bug in Spring Data Elasticsearch to me. They use JIRA for issue tracking. Can you please open an issue over there and comment here with a link to it?

Comment From: QiangYoung

Wrong value for TermVector(woth_positions_offsets)

https://github.com/spring-projects/spring-data-elasticsearch/pull/492