for (AnalyzeResponse.AnalyzeToken token : response.getTokens())
... // Show each token that is generated
My question is: Can the IndicesAdminClient.prepareAnalyze() method be updated to accept an array of strings, as is the case with fields that contain an array of two or more values? Or is this logic embedded within the ES engine itself and not contained within, nor able to be exposed by, the IndicesAdminClient?
I ask because it would be helpful to be able to see the word position of each token exactly as it would be generated by ES when a document is indexed, and this would include the adjusted word positions based on the position offset gap, but as actually calculated by ES and not as guessed by me.