YousefED / ElasticUI

AngularJS directives for Elasticsearch
http://www.elasticui.com
Other
526 stars 138 forks source link

Impossible to use more than one searchbox #103

Open miraks31 opened 7 years ago

miraks31 commented 7 years ago

Scenario: Build an application with 2 search boxes like this:

Run the application. Enter a value in the 1st search box ==> The filter 1 is well applied (OK) Enter a value in the 2nd search box ==> The filter 2 is well applied but not the filter 1 (KO) Remove the value in 1st search box ==> No filter applied (KO)

The expected result is: Enter a value in the 1st search box ==> The filter 1 is applied Enter a value in the 2nd search box ==> The filter 1 and are applied Remove the value in 1st search box ==> The filter 2 is applied

Thank you very much for this component. Just one more question, is this component still maintained?

miraks31 commented 7 years ago

Hi,

Just for information, I found a workaround by transforming queries (except one) in filters like this: <input id="search_NODETYPE" type="search" class="form-control validate alex elasticfilter" eui-filter="ejs.QueryFilter(ejs.QueryStringQuery(querystring_NODETYPE).defaultField('NODETYPE'))" ng-model="querystring_NODETYPE" eui-enabled="querystring_NODETYPE.length"/>