Skip to content

Remove Infinity values for Range facets when no docs match the range #1366

@dadoonet

Description

@dadoonet

Hi,

As discussed in the mailing list : http://groups.google.com/group/elasticsearch/browse_thread/thread/560c9b8954668931/d7b932e895bd7d4b

Just wondering if we must keep Infinity or not but just changing

in https://github.com/elasticsearch/elasticsearch/blob/master/modules/elasticsearch/src/main/java/org/elasticsearch/search/facet/range/RangeFacet.java#L60

        double min = Double.POSITIVE_INFINITY;
        double max = Double.NEGATIVE_INFINITY;

to

        double min = Double.NEGATIVE_INFINITY;
        double max = Double.POSITIVE_INFINITY;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions