Admin Search returns all posts
-
In version 2.1.1, admin search always returns all posts
function ep_admin_integrate sets ‘ep_integrate’ to true
however in class-ep-api format_args function if ‘ep_integrate’ is set then the search term is never integrated into the elasitcsearch query on line 1474if ( ! empty( $args['s'] ) && empty( $args['ep_match_all'] ) && empty( $args['ep_integrate'] ) ) { $query['bool']['should'][2]['multi_match']['query'] = $args['s']; $query['bool']['should'][1]['multi_match']['query'] = $args['s']; $query['bool']['should'][0]['multi_match']['query'] = $args['s']; $formatted_args['query'] = $query; } else if ( ! empty( $args['ep_match_all'] ) || ! empty( $args['ep_integrate'] ) ) { $formatted_args['query']['match_all'] = array(); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Admin Search returns all posts’ is closed to new replies.