nextapps-de / flexsearch

Next-Generation full text search library for Browser and Node.js
Apache License 2.0
12.54k stars 492 forks source link

export only exports one field #288

Closed jackz314 closed 2 years ago

jackz314 commented 3 years ago

I'm trying to export a Document index that has multiple fields, but it seems like only one field is exported. Does anyone know what might be the cause of this? Or is this a bug?

await docIndex.export((key, data) => {
    console.log("Index key:", key);
    ...
  });

Output ("title" is one of the indexed fields):

Index key: reg Index key: title.cfg Index key: title.map Index key: title.ctx

I'm using the latest version (0.7.2), I also tried the master branch, neither worked.

ts-thomas commented 2 years ago

This is now fixed in v0.7.23 Further improvements to provide Promise.all() compatible export ist coming in next version.