Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkbox does not filter #105

Open
xiangli729 opened this issue Dec 19, 2016 · 0 comments
Open

checkbox does not filter #105

xiangli729 opened this issue Dec 19, 2016 · 0 comments

Comments

@xiangli729
Copy link

xiangli729 commented Dec 19, 2016

Hi,

Thanks for making such a valuable and great toolkit available, which helps a lot!

I am new to ElasticUI, and try to build a simple front-end based on this tool. On top of the demo, the search works well for me. The eui-singleselect and eui-checklist can also list the key values with the right number of instances for each key value. But when I clicked the checkbox, it does not filter the list of instances by checking the box, which gives the following error:

angular.js:8380 
POST http://localhost:9200/index/_search?size=10&from=0 400 (Bad Request)

I have tried another version of eui-checklist as follows, which gives the same error:

<ul class="nav nav-list" eui-aggregation="ejs.TermsAggregation('aggname').field('field_name').size(100)">
    <li ng-repeat="bucket in aggResult.buckets">
        <label class="checkbox" eui-filter="ejs.TermsFilter('field_name', bucket.key)">
            <input type="checkbox" ng-model="filter.enabled">
            {{bucket.key}} ({{bucket.doc_count}})
        </label>
    </li>
</ul>

Could anyone help me on this?

Appreciate much!

Best,
xiangli729

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant