elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

AnalyzeToken - 'positionLength' is always null

Open dan-king-93 opened this issue 3 years ago • 1 comments

Java API client version

7.17.6

Java version

Open JDK 11

Elasticsearch Version

7.17.2

Problem description

AnalyzeToken always has positionLength as null when making an analyze request.

From looking through source code, looks you might be trying to deserialize "position_length" rather than "positionLength" as is returned in the analyze response.

dan-king-93 avatar Aug 31 '22 13:08 dan-king-93

Submitted elastic/elasticsearch-specification#1873 to fix the underlying problem in the ES specification

peedeeboy avatar Sep 13 '22 09:09 peedeeboy

Closing this as it looks like the PR containing the fix was already merged, thank you both for reporting and contributing :D

l-trotta avatar Feb 22 '24 16:02 l-trotta