You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ Document }=require("flexsearch")constdocument=newDocument({index: ["content"]})constdocs=[{id: 1,content: "Hello world"},{id: 2,content: "What's up?"}]// this does not work (no results)// document.add(docs)// this does work (one result)docs.forEach(doc=>document.add(doc))console.log(document.search("hello"))
The text was updated successfully, but these errors were encountered:
The documentation says: "Just pass the document array (or a single object) to the index". However, that doesn't seem to work for me:
The text was updated successfully, but these errors were encountered: