YUKI Hiroshi
null+****@clear*****
Wed Aug 22 17:11:11 JST 2012
YUKI Hiroshi 2012-08-22 17:11:11 +0900 (Wed, 22 Aug 2012) New Revision: cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c Log: Configure fields before test Modified files: test/api-search.test.js Modified: test/api-search.test.js (+5 -2) =================================================================== --- test/api-search.test.js 2012-08-22 17:08:56 +0900 (e02c6f8) +++ test/api-search.test.js 2012-08-22 17:11:11 +0900 (ca029b9) @@ -340,6 +340,7 @@ suite('Search API', function() { suite('with fixture and synonyms loaded', function() { setup(function() { utils.loadDumpFile(context, __dirname + '/fixture/companies/ddl.grn'); + utils.loadDumpFile(context, __dirname + '/fixture/companies/configurations.grn'); utils.loadDumpFile(context, __dirname + '/fixture/companies/data.grn'); utils.loadDumpFile(context, __dirname + '/fixture/companies/synonyms.grn'); }); @@ -407,8 +408,10 @@ suite('Search API', function() { setup(function() { domain = new Domain('people', context) .setId('00000000000000000000000000').createSync(); - domain.getIndexField('realname').setType('text').createSync(); - domain.getIndexField('nickname').setType('text').createSync(); + domain.getIndexField('realname').setType('text') + .setSearchEnabled(true).setResultEnabled(true).createSync(); + domain.getIndexField('nickname').setType('text') + .setSearchEnabled(true).setResultEnabled(true).createSync(); domain.loadSync([ { id: 'id1', realname: 'Jack Sparrow', nickname: 'Captain' }, -------------- next part -------------- HTML����������������������������... Download