Java Client API: FieldValue vs JsonData


with the new Java Client API, some queries takes a FieldValue parameter (exemple: term query) and some other takes a JsonData parameter (exemple: range queries).

One issue that I have with FieldValue parameters is that the builder does not accept an Object instance, while JsonData does with factory method JsonData.of(...)

Would it be possible to also use JsonData for term queries (and other queries that uses FieldValue instead of JsonData), maybe by adding a method jsonDataValue(JsonData v) to the FieldValue class ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.