Closed georgyfarniev closed 5 years ago
Hello, thanks for the report. Your document descriptor did not define the index on the field data:body
, that will solve it:
const index = new FlexSearch({
async: true,
doc: {
id: 'id',
field: [ 'data:body' ] // <---
}
})
@ts-thomas my apologies, I should pay enough attention to configuration. I think it could be nice to throw more meaningful error in that case. What do you think?
That's true, I added this improvement to a milestone: https://github.com/nextapps-de/flexsearch/milestone/8
I tried to use code example from unit test, but got the following error:
Code to reproduce:
Output:
Environment: Node Node version: v11.2.0 Flexsearch version: "^0.5.2"