Closed thehybridtechnician closed 8 years ago
For anyone on the future wanting to do this, I got it working by doing this...
eui-query="ejs.FilteredQuery(ejs.QueryStringQuery(querystring).allowLeadingWildcard(false).defaultOperator('AND').analyzer('default_search').defaultField('search_field'), indexVM.filters.getAsFilter())"
This can now be closed.
I have been reading about optimizing search queries. https://www.elastic.co/blog/found-optimizing-elasticsearch-searches
I am attempting to setup the query to look something like this.
So far my query looks like this. I am trying to determine if there is a way to extend or pass all of my current filters I have set in indexVM.
I see that you have written utils for converting an ejsObject into json for comparison and to be put into IndexVM. How would I access the filters and put them as an object into the query?
Thank you for any assistance. Just an IT guy trying to make my team's life easier with search.