Facet options should limit to max amount

Bug #1501539 reported by Travis Tripp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
Fix Released
Medium
Steve McLellan

Bug Description

The facets api returns available options for the given facet. However, there needs to be a maximum number of options allowed or it should just return the facet without options. Ideally, this would have a default (possibly configurable), but could be specified as a query param.

no longer affects: horizon
Changed in searchlight:
milestone: none → liberty-rc1
Changed in searchlight:
importance: Undecided → Medium
assignee: nobody → Steve McLellan (sjmc7)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to searchlight (master)

Fix proposed to branch: master
Review: https://review.openstack.org/230009

Changed in searchlight:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to searchlight (master)

Reviewed: https://review.openstack.org/230009
Committed: https://git.openstack.org/cgit/openstack/searchlight/commit/?id=d7d7e6dfef403979768ce18e8e42328755b456a2
Submitter: Jenkins
Branch: master

commit d7d7e6dfef403979768ce18e8e42328755b456a2
Author: Steve McLellan <email address hidden>
Date: Thu Oct 1 11:30:26 2015 -0500

    Add 'limit_terms' to facets

    Adds 'limit_terms' to restrict options from elasticsearch. Default is
    0 (unlimited).

    Change-Id: I09605924b6763f600fb335cf77ac7c0f86fef7d8
    Closes-Bug: #1501539

Changed in searchlight:
status: In Progress → Fix Committed
Changed in searchlight:
status: Fix Committed → Fix Released
milestone: liberty-rc1 → 0.1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.