This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Method naming conventions
editMethod naming conventions
editClasses in the Java API Client contain two kinds of methods and properties:
-
Methods and properties that are part of the API, such as
ElasticsearchClient.search()
orSearchResponse.maxScore()
. They are derived from their respective names in the Elasticsearch JSON API using the standard JavacamelCaseNaming
convention. -
Methods and properties that are part of the framework on which the Java API
Client is built, such as
Query._kind()
. These methods and properties are prefixed with an underscore to both avoid any naming conflicts with API names, and as an easy way to distinguish the API from the framework.