Navigation Menu

Skip to content

Commit

Permalink
bq: add missing "String" to phrase parse function name
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 14, 2012
1 parent bc15018 commit d32e705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bq-translator.js
Expand Up @@ -254,7 +254,7 @@ BooleanQueryTranslator.prototype = {
this.throwTranslateError("operator is missing: " +
"keyword:<" + value + ">");
}
tokens.push(this.translateExpressionValuePhrase(field));
tokens.push(this.translateExpressionValueStringPhrase(field));
this.offset--;
} else {
value += character;
Expand All @@ -271,7 +271,7 @@ BooleanQueryTranslator.prototype = {
}
return field + " " + operator + " " + "\"" + value + "\"";
},
translateExpressionValuePhrase: function(field) {
translateExpressionValueStringPhrase: function(field) {
if (this.query[this.offset] != "\"") {
this.throwTranslateError("open double quote for phrase value is missing");
}
Expand Down

0 comments on commit d32e705

Please sign in to comment.