Meteor 流星简易搜索的区块结果

Meteor 流星简易搜索的区块结果,meteor,meteor-easy-search,Meteor,Meteor Easy Search,嗨,我使用matteodem:Meteor的简易搜索包。现在我正在将我的结果分为size Template.UserList.helpers({ users: function () { all = Meteor.users.find().fetch(); chunks = []; size = 3; while (all.length > size) { chunks.push({ row: all.slice(0, size)});

嗨,我使用matteodem:Meteor的简易搜索包。现在我正在将我的结果分为
size

Template.UserList.helpers({
  users: function () {
    all = Meteor.users.find().fetch();
    chunks = [];
    size = 3;
    while (all.length > size) {
      chunks.push({ row: all.slice(0, size)});
      all = all.slice(size);
    }
    chunks.push({row: all});
    return chunks;
  }
});
它就像一个魔咒,但现在我想知道如何使用它

{{{#EasySearch.Each index=playerIndex}

因为你不能分割索引。任何人都有获得EasySearch的想法。每个人都使用引导行


谢谢。

看看什么是EasySearch.Each做的()看起来你可以用

index.getComponentMethods().getCursor()

一旦您创建了索引,即,只需将find调用替换为上述调用,它可能会工作。

您不能将find调用替换为对
EasySearch.index
的调用吗?