Skip to content

Commit

Permalink
Bug 1019675 - use term query for id search
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher De Cairos committed Jun 19, 2014
1 parent 223dd98 commit 8017983
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/queryBuilder/generators/search.js
Expand Up @@ -42,10 +42,8 @@ module.exports.filters = {
ids = ids.split( "," );

if ( ids.length === 1 ) {
return generic.generateSearchFilter( "query", {
field: {
_id: ids[ 0 ]
}
return generic.generateSearchFilter( "term", {
_id: ids[ 0 ]
}, not );
} else {
return generic.generateTermsFilter( ids, "_id", not );
Expand Down

0 comments on commit 8017983

Please sign in to comment.