Class QueryBuilders.ConstantScoreQueryBuilder

  • Enclosing class:

    static class QueryBuilders.ConstantScoreQueryBuilder
    extends QueryBuilders.QueryBuilder
    A query that wraps a filter and simply returns a constant score equal to the query boost for every document in the filter.
    • Method Detail

      • writeJson

        void writeJson​(com.fasterxml.jackson.core.JsonGenerator generator)
        Description copied from class: QueryBuilders.QueryBuilder
        Convert existing query to JSON format using jackson API.
        Specified by:
        writeJson in class QueryBuilders.QueryBuilder
        generator - used to generate JSON elements
        Throws: - if IO error occurred