Navigation Menu

Skip to content

Commit

Permalink
Add utility properties to Domain and IndexField
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent 4befb5a commit 4b02ad7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/database/domain.js
Expand Up @@ -205,6 +205,9 @@ Domain.prototype = {
get searchPartitionCount() {
return 0;
},
get searchInstanceType() {
return null;
},

getDocumentsEndpoint: function(hostname) {
if (hostname[0] != '.')
Expand Down
10 changes: 9 additions & 1 deletion lib/database/index-field.js
Expand Up @@ -151,8 +151,16 @@ IndexField.prototype = {
return true;
},

get options() {
var options = [];
if (this.searchEnabled) options.push('Search');
if (this.facetEnabled) options.push('Facet');
if (this.resultEnabled) options.push('Result');
return options.join(' ');
},

get state() {
return 'RequiresIndexDocuments';
return 'Active';
},

createSync: function() {
Expand Down

0 comments on commit 4b02ad7

Please sign in to comment.