Navigation Menu

Skip to content

Commit

Permalink
See searchEnabled option to extract matchIndexFields from all fields
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 13, 2012
1 parent 5b23b6e commit 643854d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/2011-02-01/search.js
Expand Up @@ -105,7 +105,7 @@ exports.createHandler = function(context) {
try {
queryAsBooleanQuery = translateQueryToBooleanQuery(query);
matchIndexFields = domain.indexFields.filter(function(field) {
return field.type == 'text';
return field.type == 'text' && field.searchEnabled;
});
queryFilters = matchIndexFields.map(function(field) {
var translator = new BooleanQueryTranslator(queryAsBooleanQuery);
Expand Down

0 comments on commit 643854d

Please sign in to comment.