{
  "id": "task_libraries:search/javascript",
  "path": "/exapedia/javascript-search-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript full-text search libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript search libraries find matching records in a list of objects or documents without a search server. These libraries add search boxes to documentation sites, product catalogs, and offline apps that run entirely in the browser."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript full-text search libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#fuse-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#lunr",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#minisearch",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#orama",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flexsearch",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F245"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#js-search",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F266"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#wink-bm25-text-search",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F290"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F291"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F299"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F294"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F292"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#fuse-js",
          "label": [
            {
              "t": "fact",
              "fact": "F161"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most installs and the most GitHub stars."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Add documents after indexing",
            "Bundled TypeScript declarations",
            "Index serialization",
            "Prefix search",
            "Fuzzy matching"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#fuse-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#lunr",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#minisearch",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#orama",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flexsearch",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F245"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#js-search",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F266"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#wink-bm25-text-search",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F290"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F300"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F301"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F302"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F303"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F304"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "fuse-js",
          "name": [
            {
              "t": "fact",
              "fact": "F161"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/krisk/Fuse"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/fuse.js"
            },
            {
              "label": "Docs",
              "href": "https://github.com/krisk/Fuse/blob/main/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Fuse.js is a fuzzy search library for small to medium datasets searched in the browser or on a server, with no dependencies. "
            },
            {
              "t": "code",
              "text": "new Fuse"
            },
            {
              "t": "text",
              "text": " takes an array of strings or objects and a "
            },
            {
              "t": "code",
              "text": "keys"
            },
            {
              "t": "text",
              "text": " list of fields to search. Calling "
            },
            {
              "t": "code",
              "text": "search"
            },
            {
              "t": "text",
              "text": " returns the matching items ranked by score. Matching uses the Bitap algorithm, an approximate string matcher, so queries with typos, misspellings, or partial words still find results. With "
            },
            {
              "t": "code",
              "text": "useTokenSearch"
            },
            {
              "t": "text",
              "text": " turned on, multi-word queries are ranked by relevance across all their words."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/krisk/Fuse/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F161"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "No index"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Every search compares the query with every item. For larger datasets, "
                },
                {
                  "t": "code",
                  "text": "FuseWorker"
                },
                {
                  "t": "text",
                  "text": " splits the data across web workers, and an indexed library such as "
                },
                {
                  "t": "link",
                  "href": "#minisearch",
                  "label": [
                    {
                      "t": "text",
                      "text": "MiniSearch"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " avoids the full scan."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Worker limits"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "FuseWorker"
                },
                {
                  "t": "text",
                  "text": " can't take function-valued options, such as "
                },
                {
                  "t": "code",
                  "text": "sortFn"
                },
                {
                  "t": "text",
                  "text": " or "
                },
                {
                  "t": "code",
                  "text": "getFn"
                },
                {
                  "t": "text",
                  "text": ", because functions can't move to a worker."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mantinedev/mantine",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "const fuzzySearchFilter: SpotlightFilterFunction = (query, actions) => {\n  if (!query.trim()) {\n    return actions;\n  }\n\n  const flatActions = actions.reduce<any[]>((acc, item) => {\n    if ('actions' in item) {\n      return [...acc, ...item.actions.map((action) => ({ ...action, group: item.group }))];\n    }\n    return [...acc, item];\n  }, []);\n\n  const fuse = new Fuse(flatActions, {\n    keys: ['label', 'description', 'keywords'],\n    threshold: 0.3,\n    minMatchCharLength: 1,\n  });\n\n  const results = fuse.search(query).map((result) => result.item);\n\n  const groups: Record<string, any> = {};\n  const result: any[] = [];\n\n  results.forEach((action) => {\n    if (action.group) {\n      if (!groups[action.group]) {\n        groups[action.group] = { pushed: false, data: { group: action.group, actions: [] } };\n      }\n      groups[action.group].data.actions.push(action);\n      if (!groups[action.group].pushed) {\n        groups[action.group].pushed = true;\n        result.push(groups[action.group].data);\n      }\n    } else {\n      result.push(action);\n    }\n  });\n\n  return result;\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mantinedev/mantine/blob/3646de9f0fe83eaf2946154e6385bd82eb15c243/apps/mantine.dev/src/components/Search/Search.tsx#L9-L48",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20fuse.js%20for%20grouped%20IDE%20search%2C%20documentation%20section%20indexing%20and%20static%20search-index%20generation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F161"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import Fuse from 'fuse.js'\nconst books = [\n  { title: \"Old Man's War\", author: 'John Scalzi' },\n  { title: 'The Lock Artist', author: 'Steve Hamilton' }\n]\nconst fuse = new Fuse(books, {\n  keys: ['title', 'author']\n})\nconst results = fuse.search('jon')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/krisk/Fuse/blob/main/docs/getting-started.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F166"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "lunr",
          "name": [
            {
              "t": "fact",
              "fact": "F182"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/olivernn/lunr.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/lunr"
            },
            {
              "label": "Docs",
              "href": "https://lunrjs.com/guides/index_prebuilding.html"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Lunr builds a full-text search index of JSON documents in the browser. A "
            },
            {
              "t": "code",
              "text": "lunr"
            },
            {
              "t": "text",
              "text": " call takes a function that declares the fields, such as "
            },
            {
              "t": "code",
              "text": "title"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "body"
            },
            {
              "t": "text",
              "text": ", and adds each document. Searching with "
            },
            {
              "t": "code",
              "text": "idx.search"
            },
            {
              "t": "text",
              "text": " returns matching document references, each with a relevance score and the terms that matched. Indexes serialize to JSON. A site can build its index at deploy time and load the result in the browser instead of indexing on every visit. Queries can boost terms, scope to single fields, or match with wildcards and edit distance. Language support covers fourteen languages."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://lunrjs.com/guides/index_prebuilding.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F182"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Immutable indexes"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "After an index is built, documents can't be added, updated, or removed. Changing the documents means rebuilding the index."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Wildcards skip stemming"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "A search term with a wildcard isn't stemmed. The term matches only its literal form."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/cmfcmf/docusaurus-search-local",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F201"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function () {\n              if (language !== \"en\") {\n                if (Array.isArray(language)) {\n                  // @ts-expect-error\n                  this.use(lunr.multiLanguage(...language));\n                } else {\n                  // @ts-expect-error\n                  this.use(lunr[language]);\n                }\n              }\n\n              this.k1(k1);\n              this.b(b);\n\n              this.ref(\"id\");\n              this.field(\"title\");\n              this.field(\"content\");\n              this.field(\"tags\");\n\n              if (indexDocSidebarParentCategories > 0) {\n                this.field(\"sidebarParentCategories\");\n              }\n              const that = this;\n              documents.forEach(\n                ({\n                  id,\n                  sectionTitle,\n                  sectionContent,\n                  sectionTags,\n                  docSidebarParentCategories,\n                }) => {\n                  let sidebarParentCategories;\n                  if (\n                    indexDocSidebarParentCategories > 0 &&\n                    docSidebarParentCategories\n                  ) {\n                    sidebarParentCategories = [...docSidebarParentCategories]\n                      .reverse()\n                      .slice(0, indexDocSidebarParentCategories)\n                      .join(\" \");\n                  }\n\n                  that.add({\n                    id: id.toString(), // the ref must be a string\n                    title: sectionTitle,\n                    content: sectionContent,\n                    tags: sectionTags,\n                    sidebarParentCategories,\n                  });\n                },\n              );\n            }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/cmfcmf/docusaurus-search-local/blob/3e094559f8d46bb53660c8992a485f3b6e5e96d7/packages/docusaurus-search-local/src/server/index.ts#L517-L568",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20lunr%20for%20grouped%20IDE%20search%2C%20documentation%20section%20indexing%20and%20static%20search-index%20generation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F182"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "var documents = [{\n  \"name\": \"Lunr\",\n  \"text\": \"Like Solr, but much smaller, and not as bright.\"\n}, {\n  \"name\": \"React\",\n  \"text\": \"A JavaScript library for building user interfaces.\"\n}, {\n  \"name\": \"Lodash\",\n  \"text\": \"A modern JavaScript utility library delivering modularity, performance & extras.\"\n}]\nvar idx = lunr(function () {\n  this.ref('name')\n  this.field('text')\n  documents.forEach(function (doc) {\n    this.add(doc)\n  }, this)\n})\nidx.search(\"bright\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://lunrjs.com/guides/getting_started.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting_started.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F187"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "minisearch",
          "name": [
            {
              "t": "fact",
              "fact": "F203"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/lucaong/minisearch"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/minisearch"
            },
            {
              "label": "Docs",
              "href": "https://github.com/lucaong/minisearch/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "MiniSearch keeps a full-text index in memory, in the browser or in Node.js, with no external dependencies. "
            },
            {
              "t": "code",
              "text": "new MiniSearch"
            },
            {
              "t": "text",
              "text": " lists the fields to index and the fields to return with results. After "
            },
            {
              "t": "code",
              "text": "addAll"
            },
            {
              "t": "text",
              "text": " loads the documents, "
            },
            {
              "t": "code",
              "text": "search"
            },
            {
              "t": "text",
              "text": " supports exact, prefix, and fuzzy matching with field boosts. A separate method, "
            },
            {
              "t": "code",
              "text": "autoSuggest"
            },
            {
              "t": "text",
              "text": ", completes partial queries for search as the user types. Unlike "
            },
            {
              "t": "link",
              "href": "#lunr",
              "label": [
                {
                  "t": "text",
                  "text": "Lunr"
                }
              ]
            },
            {
              "t": "text",
              "text": ", MiniSearch lets documents be added and removed at any time."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/lucaong/minisearch/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F203"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Index in memory"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The index is stored in process memory. The indexed data has to fit in that memory."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Custom stemming"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Stemming and stop words come from a "
                },
                {
                  "t": "code",
                  "text": "processTerm"
                },
                {
                  "t": "text",
                  "text": " function the project supplies."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/vuejs/vitepress",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function indexFile(page: string) {\n    const file = path.join(siteConfig.srcDir, page)\n    // get file metadata\n    const fileId = getDocId(file)\n    const locale = getLocaleForPath(\n      siteConfig.site,\n      siteConfig.rewrites.map[page] || page\n    )\n    const index = getIndexByLocale(locale)\n    // retrieve file and split into \"sections\"\n    let html: string\n    try {\n      html = await render(file, locale)\n    } catch (e) {\n      // in dev this runs unawaited, so a page that fails to render must not\n      // reject and take the server down with it — the page reports the error\n      // itself through the markdown transform\n      siteConfig.logger.warn(\n        c.yellow(`Failed to index ${page} for search: ${(e as Error).message}`)\n      )\n      return\n    }\n    if (!html) return\n    const sections =\n      // user provided generator\n      (await options.miniSearch?._splitIntoSections?.(file, html)) ??\n      // default implementation\n      splitPageIntoSections(html)\n    // add sections to the locale index\n    for await (const section of sections) {\n      if (!section || !(section.text || section.titles)) break\n      const { anchor, text, titles } = section\n      const id = anchor ? [fileId, anchor].join('#') : fileId\n      index.has(id) && index.discard(id)\n      index.add({\n        id,\n        text,\n        title: titles.at(-1)!,\n        titles: titles.slice(0, -1)\n      })\n    }\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/vuejs/vitepress/blob/40b2e090772ac11eac358d25ec92ee435fc2adbd/src/node/plugins/localSearchPlugin.ts#L144-L185",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20minisearch%20for%20grouped%20IDE%20search%2C%20documentation%20section%20indexing%20and%20static%20search-index%20generation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F203"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import MiniSearch from 'minisearch'\nconst documents = [\n  {\n    id: 1,\n    title: 'Moby Dick',\n    text: 'Call me Ishmael. Some years ago...',\n    category: 'fiction'\n  },\n  {\n    id: 2,\n    title: 'Zen and the Art of Motorcycle Maintenance',\n    text: 'I can see by my watch...',\n    category: 'fiction'\n  },\n  {\n    id: 3,\n    title: 'Neuromancer',\n    text: 'The sky above the port was...',\n    category: 'fiction'\n  },\n  {\n    id: 4,\n    title: 'Zen and the Art of Archery',\n    text: 'At first sight it must seem...',\n    category: 'non-fiction'\n  },\n]\nlet miniSearch = new MiniSearch({\n  fields: ['title', 'text'], // fields to index for full-text search\n  storeFields: ['title', 'category'] // fields to return with search results\n})\nminiSearch.addAll(documents)\nlet results = miniSearch.search('zen art motorcycle')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/lucaong/minisearch/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "orama",
          "name": [
            {
              "t": "fact",
              "fact": "F224"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/oramasearch/orama"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@orama/orama"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/oramasearch/docs/refs/heads/main/content/docs/orama-js/index.mdx"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Orama is a search engine that runs in the browser, on a server, or at the edge, with full-text, vector, and hybrid search in one database. "
            },
            {
              "t": "code",
              "text": "create"
            },
            {
              "t": "text",
              "text": " sets a schema of typed fields. Documents go in through "
            },
            {
              "t": "code",
              "text": "insert"
            },
            {
              "t": "text",
              "text": ". A "
            },
            {
              "t": "code",
              "text": "search"
            },
            {
              "t": "text",
              "text": " call with a "
            },
            {
              "t": "code",
              "text": "term"
            },
            {
              "t": "text",
              "text": " returns ranked hits. Setting "
            },
            {
              "t": "code",
              "text": "mode"
            },
            {
              "t": "text",
              "text": " to "
            },
            {
              "t": "code",
              "text": "vector"
            },
            {
              "t": "text",
              "text": " compares a query embedding with a vector field instead. Filters, facets, geosearch, typo tolerance, and stemming in thirty languages come built in."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/oramasearch/docs/refs/heads/main/content/docs/orama-js/index.mdx",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F224"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F97"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Embeddings from outside"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Vector queries need embeddings at insert and search time, from the project's own model or from the "
                },
                {
                  "t": "code",
                  "text": "@orama/plugin-embeddings"
                },
                {
                  "t": "text",
                  "text": " plugin."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Fixed vector size"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Each vector field declares its dimension count when the database is created."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/fuma-nama/fumadocs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function createDBSimple({\n  indexes,\n  tokenizer,\n  ...rest\n}: SimpleOptions): Promise<Orama<typeof simpleSchema>> {\n  const items = typeof indexes === 'function' ? await indexes() : indexes;\n  const db = create({\n    schema: simpleSchema,\n    ...rest,\n    components: {\n      ...rest.components,\n      tokenizer: tokenizer ?? rest.components?.tokenizer,\n    },\n  }) as Orama<typeof simpleSchema>;\n\n  await insertMultiple(\n    db,\n    items.map((page) => ({\n      title: page.title,\n      description: page.description,\n      url: page.url,\n      content: page.content,\n      keywords: page.keywords,\n    })),\n  );\n\n  return db;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/fuma-nama/fumadocs/blob/9e16ce6ede74c5c506ed1424840ac26fa8cb0cf5/packages/core/src/search/orama/create-db.ts#L99-L126",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20%40orama/orama%20for%20grouped%20IDE%20search%2C%20documentation%20section%20indexing%20and%20static%20search-index%20generation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F224"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { create, search, insert } from \"@orama/orama\";\nconst db = create({\n  schema: {\n    name: \"string\",\n    description: \"string\",\n    price: \"number\",\n    meta: {\n      rating: \"number\",\n    },\n  },\n});\ninsert(db, {\n  name: \"Wireless Headphones\",\n  description: \"Experience immersive sound quality with these noise-cancelling wireless headphones.\",\n  price: 99.99,\n  meta: {\n    rating: 4.5,\n  },\n});\nconst searchResult = search(db, {\n  term: \"headphones\",\n});\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/oramasearch/docs/refs/heads/main/content/docs/orama-js/index.mdx",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.mdx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F229"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "flexsearch",
          "name": [
            {
              "t": "fact",
              "fact": "F245"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/nextapps-de/flexsearch"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/flexsearch"
            },
            {
              "label": "Docs",
              "href": "https://github.com/nextapps-de/flexsearch/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "FlexSearch builds full-text indexes for the browser and Node.js. Three index types cover different jobs: "
            },
            {
              "t": "code",
              "text": "Index"
            },
            {
              "t": "text",
              "text": " stores id and text pairs, "
            },
            {
              "t": "code",
              "text": "Document"
            },
            {
              "t": "text",
              "text": " indexes multi-field JSON documents, and "
            },
            {
              "t": "code",
              "text": "Worker"
            },
            {
              "t": "text",
              "text": " runs an index in a background thread. The "
            },
            {
              "t": "code",
              "text": "tokenize"
            },
            {
              "t": "text",
              "text": " option sets how partial words match. With "
            },
            {
              "t": "code",
              "text": "forward"
            },
            {
              "t": "text",
              "text": ", a query for "
            },
            {
              "t": "code",
              "text": "flex"
            },
            {
              "t": "text",
              "text": " finds flexsearch, while "
            },
            {
              "t": "code",
              "text": "full"
            },
            {
              "t": "text",
              "text": " indexes every substring at a much higher memory cost. Indexes stay in memory by default, and persistent indexes can store them in IndexedDB, Redis, SQLite, Postgres, MongoDB, or ClickHouse."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/nextapps-de/flexsearch/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F245"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F121"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F122"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Tokenizer sets memory"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Broader partial matching multiplies index size. The README recommends the narrowest tokenizer that covers the queries users type."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Async workers"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Every method on a "
                },
                {
                  "t": "code",
                  "text": "Worker"
                },
                {
                  "t": "text",
                  "text": " index returns a promise or takes a callback."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/TryGhost/Ghost",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F264"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function createFlexSearchProvider(sources: readonly SearchSource[]): SearchProvider {\n  const indexes = sources.map((source) => {\n    const index = new FlexSearch.Document<SearchItem>({\n      tokenize: 'forward',\n      document: { id: 'id', index: ['title', 'keywords'] },\n    });\n    source.items.forEach((item) => index.add(item));\n    return { index, itemsById: new Map(source.items.map((item) => [item.id, item])) };\n  });\n\n  return {\n    search(term) {\n      return groupResults(sources, (_source, sourceIndex) => {\n        const { index, itemsById } = indexes[sourceIndex];\n        const ids = new Set(\n          index.search(term, RESULT_LIMIT).flatMap((field) => field.result.map(String)),\n        );\n\n        return [...ids].flatMap((id) => itemsById.get(id) ?? []);\n      });\n    },\n  };\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/TryGhost/Ghost/blob/ea95c7b4ac7e6d76418764a69b65032a8b965a53/apps/admin/src/global-search/search-providers.ts#L27-L49",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F263"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20flexsearch%20for%20grouped%20IDE%20search%2C%20documentation%20section%20indexing%20and%20static%20search-index%20generation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F245"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Index } from \"flexsearch\";\nconst index = new Index({\n    tokenize: \"forward\"\n});\nconst data = [\n    'cats abcd efgh ijkl mnop qrst uvwx cute',\n    'cats abcd efgh ijkl mnop qrst cute',\n    'cats abcd efgh ijkl mnop cute',\n    'cats abcd efgh ijkl cute',\n    'cats abcd efgh cute',\n    'cats abcd cute',\n    'cats cute'\n];\ndata.forEach((item, id) => {\n    index.add(id, item);\n});\nconst result = index.search(\"cute cat\");\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/nextapps-de/flexsearch/blob/master/example/nodejs-esm/basic/index.js",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.js"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F250"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "js-search",
          "name": [
            {
              "t": "fact",
              "fact": "F266"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/bvaughn/js-search"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/js-search"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/bvaughn/js-search/master/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Js Search indexes JavaScript and JSON objects for client-side search, with no third-party dependencies. "
            },
            {
              "t": "code",
              "text": "new JsSearch.Search"
            },
            {
              "t": "text",
              "text": " takes the field that identifies each document. Next, "
            },
            {
              "t": "code",
              "text": "addIndex"
            },
            {
              "t": "text",
              "text": " adds each field to search, including nested ones such as an author's name, and "
            },
            {
              "t": "code",
              "text": "addDocuments"
            },
            {
              "t": "text",
              "text": " loads the objects. Results rank by TF-IDF, a term-weighting score, unless the project switches to an unordered index. The index strategy sets what matches: word prefixes by default, exact words, or every substring. The library began as a lighter implementation of "
            },
            {
              "t": "link",
              "href": "#lunr",
              "label": [
                {
                  "t": "text",
                  "text": "Lunr"
                }
              ]
            },
            {
              "t": "text",
              "text": "."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/bvaughn/js-search/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F266"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F322"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F323"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F324"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F325"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Stemming from another library"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Stemming comes from a third-party stemmer, such as porter-stemmer, wrapped in a "
                },
                {
                  "t": "code",
                  "text": "StemmingTokenizer"
                },
                {
                  "t": "text",
                  "text": "."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Ranking costs time"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Switching to "
                },
                {
                  "t": "code",
                  "text": "UnorderedSearchIndex"
                },
                {
                  "t": "text",
                  "text": " turns off TF-IDF ranking and returns results in no particular order."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/gatsbyjs/gatsby",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F288"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "rebuildIndex = () => {\n    const { bookList } = this.state\n\n    const dataToSearch = new JsSearch.Search(`isbn`)\n\n    /**\n     *  defines a indexing strategy for the data\n     * more more about it in here https://github.com/bvaughn/js-search#configuring-the-index-strategy\n     */\n    dataToSearch.indexStrategy = new JsSearch.PrefixIndexStrategy()\n\n    /**\n     * defines the sanitizer for the search\n     * to prevent some of the words from being excluded\n     *\n     */\n    dataToSearch.sanitizer = new JsSearch.LowerCaseSanitizer()\n\n    /**\n     * defines the search index\n     * read more in here https://github.com/bvaughn/js-search#configuring-the-search-index\n     */\n    dataToSearch.searchIndex = new JsSearch.TfIdfSearchIndex(`isbn`)\n\n    dataToSearch.addIndex(`title`) // sets the index attribute for the data\n    dataToSearch.addIndex(`author`) // sets the index attribute for the data\n\n    dataToSearch.addDocuments(bookList) // adds the data to be searched\n    this.setState({ search: dataToSearch, isLoading: false })\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/gatsbyjs/gatsby/blob/0ac6c88a72c4dfd4d541e3ac43c664343e8e15b6/examples/using-js-search/src/components/SearchContainer.js#L35-L64",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F287"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=js-search%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F266"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import * as JsSearch from 'js-search';\nvar theGreatGatsby = {\n  isbn: '9781597226769',\n  title: 'The Great Gatsby',\n  author: {\n    name: 'F. Scott Fitzgerald'\n  },\n  tags: ['book', 'inspirational']\n};\nvar theDaVinciCode = {\n  isbn: '0307474275',\n  title: 'The DaVinci Code',\n  author: {\n    name: 'Dan Brown'\n  },\n  tags: ['book', 'mystery']\n};\nvar angelsAndDemons = {\n  isbn: '074349346X',\n  title: 'Angels & Demons',\n  author: {\n    name: 'Dan Brown',\n  },\n  tags: ['book', 'mystery']\n};\nvar search = new JsSearch.Search('isbn');\nsearch.addIndex('title');\nsearch.addIndex(['author', 'name']);\nsearch.addIndex('tags')\nsearch.addDocuments([theGreatGatsby, theDaVinciCode, angelsAndDemons]);\nsearch.search('The');    // [theGreatGatsby, theDaVinciCode]\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/bvaughn/js-search/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F271"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "wink-bm25-text-search",
          "name": [
            {
              "t": "fact",
              "fact": "F290"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/winkjs/wink-bm25-text-search"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/wink-bm25-text-search"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/winkjs/wink-bm25-text-search/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F290"
            },
            {
              "t": "text",
              "text": " builds an in-memory search index from JSON documents, in Node.js or the browser, ranked by a probabilistic relevance algorithm. "
            },
            {
              "t": "code",
              "text": "defineConfig"
            },
            {
              "t": "text",
              "text": " sets a weight for each field. Next, "
            },
            {
              "t": "code",
              "text": "definePrepTasks"
            },
            {
              "t": "text",
              "text": " sets the text preparation, such as tokenizing and stemming with wink-nlp, and "
            },
            {
              "t": "code",
              "text": "addDoc"
            },
            {
              "t": "text",
              "text": " adds documents. A call to "
            },
            {
              "t": "code",
              "text": "consolidate"
            },
            {
              "t": "text",
              "text": " finalizes the index before "
            },
            {
              "t": "code",
              "text": "search"
            },
            {
              "t": "text",
              "text": " runs. A negative field weight lowers a document's score when a query term appears in that field."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F291"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F299"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F292"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/winkjs/wink-bm25-text-search/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F290"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F329"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F330"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F331"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F332"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Closed after consolidation"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "No documents can be added after "
                },
                {
                  "t": "code",
                  "text": "consolidate"
                },
                {
                  "t": "text",
                  "text": ". The README suggests exporting JSON before consolidating, then importing it to add more."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Setup order"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "defineConfig"
                },
                {
                  "t": "text",
                  "text": " and "
                },
                {
                  "t": "code",
                  "text": "definePrepTasks"
                },
                {
                  "t": "text",
                  "text": " must run before any document is added."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F313"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F314"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Stevenic/vectra",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F313"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "public async queryItems<TItemMetadata extends TMetadata = TMetadata>(\n    vector: number[],\n    query: string,\n    topK: number,\n    filter?: MetadataFilter,\n    isBm25?: boolean\n  ): Promise<QueryResult<TItemMetadata>[]> {\n    await this.loadIndexData();\n\n    // Filter items\n    let items = this._data!.items;\n    if (filter) {\n      items = items.filter(i => ItemSelector.select(i.metadata, filter));\n    }\n\n    // Find top K by cosine similarity using a bounded min-heap of size K.\n    // For N items this is O(N log K) vs the previous O(N log N) full sort.\n    const norm = ItemSelector.normalize(vector);\n    const k = Math.min(topK, items.length);\n    const heap: { index: number; distance: number }[] = [];\n    const siftUp = (start: number) => {\n      let i = start;\n      while (i > 0) {\n        const parent = (i - 1) >> 1;\n        if (heap[parent].distance > heap[i].distance) {\n          const tmp = heap[parent]; heap[parent] = heap[i]; heap[i] = tmp;\n          i = parent;\n        } else break;\n      }\n    };\n    const siftDown = () => {\n      let i = 0;\n      const n = heap.length;\n      while (true) {\n        const l = (i << 1) + 1;\n        const r = l + 1;\n        let smallest = i;\n        if (l < n && heap[l].distance < heap[smallest].distance) smallest = l;\n        if (r < n && heap[r].distance < heap[smallest].distance) smallest = r;\n        if (smallest === i) break;\n        const tmp = heap[i]; heap[i] = heap[smallest]; heap[smallest] = tmp;\n        i = smallest;\n      }\n    };\n    for (let i = 0; i < items.length; i++) {\n      const distance = ItemSelector.normalizedCosineSimilarity(vector, norm, items[i].vector, items[i].norm);\n      if (heap.length < k) {\n        heap.push({ index: i, distance });\n        siftUp(heap.length - 1);\n      } else if (k > 0 && distance > heap[0].distance) {\n        heap[0] = { index: i, distance };\n        siftDown();\n      }\n    }\n    heap.sort((a, b) => b.distance - a.distance);\n\n    // Find top k\n    const top: QueryResult<TItemMetadata>[] = heap.map(d => {\n      return {\n        item: Object.assign({}, items[d.index]) as any,\n        score: d.distance\n      };\n    });\n\n    // Load external metadata in parallel — each file is independent, and the\n    // top-K size is small, so this is bounded fan-out.\n    await Promise.all(top.map(async (item) => {\n      if (item.item.metadataFile) {\n        const metadataPath = path.join(this._folderPath, item.item.metadataFile);\n        const metadataBuffer = await this.storage.readFile(metadataPath);\n        item.item.metadata = this._codec.deserializeMetadata(metadataBuffer) as any;\n      }\n    }));\n\n    // Perform bm25 search only if enabled. Avoid duplicate chunks that are already selected during semantic search.\n    if (isBm25) {\n      const itemSet = new Set<string>();\n      for (const r of top) itemSet.add(r.item.id);\n\n      // Set up BM25 engine\n      await this.setupBm25();\n\n      // Add docs if we have necessary metadata; guard everything to avoid crashes\n      for (let i = 0; i < items.length; i++) {\n        if (!itemSet.has(items[i].id)) {\n          const item = items[i] as any;\n          const md = item.metadata || {};\n          if (md.documentId != undefined && md.startPos != undefined && md.endPos != undefined) {\n            try {\n              const currDocTxt = await this._docReader(String(md.documentId));\n              const startPos = Number(md.startPos);\n              const endPos = Number(md.endPos);\n              const chunkText = currDocTxt.substring(startPos, endPos + 1);\n              this._bm25Engine.addDoc?.({ body: chunkText }, i);\n            } catch {\n              // Ignore load or engine errors for BM25 doc prep\n            }\n          }\n        }\n      }\n\n      this._bm25Engine.consolidate?.();\n\n      const results: any[] = await this.bm25Search(query, items, topK);\n\n      results.forEach((res: any) => {\n        // Support both [index, score] tuples and { item, score } objects\n        if (Array.isArray(res)) {\n          const idx = res[0];\n          const score = res[1];\n          if (items[idx]) {\n            top.push({\n              item: Object.assign({}, { ...items[idx], metadata: { ...items[idx].metadata, isBm25: true } }) as any,\n              score\n            });\n          }\n        } else if (res && typeof res === 'object' && 'item' in res && 'score' in res) {\n          const objItem = Object.assign({}, { ...(res.item || {}), metadata: { ...(res.item?.metadata || {}), isBm25: true } }) as any;\n          top.push({ item: objItem, score: res.score });\n        }\n      });\n    }\n\n    return top;\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Stevenic/vectra/blob/dec2dadc3bb158b06ac72fa9097bee729429a271/src/LocalIndex.ts#L338-L462",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F312"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=wink-bm25-text-search%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F290"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "var bm25 = require( 'wink-bm25-text-search' );\nvar engine = bm25();\nvar docs = require( 'wink-bm25-text-search/sample-data/demo-data-for-wink-bm25.json' );\nconst winkNLP = require( 'wink-nlp' );\nconst model = require( 'wink-eng-lite-web-model' );\nconst nlp = winkNLP( model );\nconst its = nlp.its;\nconst prepTask = function ( text ) {\n  const tokens = [];\n  nlp.readDoc(text)\n      .tokens()\n      .filter( (t) => ( t.out(its.type) === 'word' && !t.out(its.stopWordFlag) ) )\n      .each( (t) => tokens.push( (t.out(its.negationFlag)) ? '!' + t.out(its.stem) : t.out(its.stem) ) );\n  return tokens;\n};\nvar query;\nengine.defineConfig( { fldWeights: { title: 1, body: 2 } } );\nengine.definePrepTasks( [ prepTask ] );\ndocs.forEach( function ( doc, i ) {\n  engine.addDoc( doc, i );\n} );\nengine.consolidate();\nquery = 'not studied law';\nvar results = engine.search( query );\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/winkjs/wink-bm25-text-search/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F295"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript search library should I use?",
      "a": [
        {
          "t": "text",
          "text": "Use "
        },
        {
          "t": "link",
          "href": "#minisearch",
          "label": [
            {
              "t": "text",
              "text": "MiniSearch"
            }
          ]
        },
        {
          "t": "text",
          "text": " to search app documents, especially ones users add or edit. Use "
        },
        {
          "t": "link",
          "href": "#fuse-js",
          "label": [
            {
              "t": "text",
              "text": "Fuse.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " for typo-tolerant matching over a short list, and "
        },
        {
          "t": "link",
          "href": "#lunr",
          "label": [
            {
              "t": "text",
              "text": "Lunr"
            }
          ]
        },
        {
          "t": "text",
          "text": " for a static site whose index is built ahead of time. Choose "
        },
        {
          "t": "link",
          "href": "#orama",
          "label": [
            {
              "t": "text",
              "text": "Orama"
            }
          ]
        },
        {
          "t": "text",
          "text": " when an app also needs vector search."
        }
      ]
    },
    {
      "q": "What is MiniSearch?",
      "a": [
        {
          "t": "text",
          "text": "MiniSearch is a full-text search engine that keeps its index in memory, in the browser or in Node.js. It supports prefix search, fuzzy search, and field boosts, and documents can be added or removed at any time."
        }
      ]
    },
    {
      "q": "What is FlexSearch?",
      "a": [
        {
          "t": "text",
          "text": "FlexSearch is a full-text search library, tuned through its tokenizer and scalable with worker threads. Its persistent indexes keep the index in IndexedDB, Redis, SQLite, or another database instead of memory."
        }
      ]
    },
    {
      "q": "How do I add fuzzy search in JavaScript?",
      "a": [
        {
          "t": "text",
          "text": "Use "
        },
        {
          "t": "link",
          "href": "#fuse-js",
          "label": [
            {
              "t": "text",
              "text": "Fuse.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " to fuzzy-match a short list of names or labels. For larger document sets, turn on the fuzzy option in "
        },
        {
          "t": "link",
          "href": "#minisearch",
          "label": [
            {
              "t": "text",
              "text": "MiniSearch"
            }
          ]
        },
        {
          "t": "text",
          "text": ", which scales the allowed edit distance with the length of each term."
        }
      ]
    },
    {
      "q": "What is Orama search?",
      "a": [
        {
          "t": "text",
          "text": "Orama is a search engine written in TypeScript that runs full-text, vector, and hybrid search over a custom schema. It works in the browser, on a server, or at the edge."
        }
      ]
    },
    {
      "q": "Is Lunr.js still a good choice?",
      "a": [
        {
          "t": "text",
          "text": "Yes, for static sites: build the index at deploy time and load it in the browser. A Lunr index can't change after it's built, and the last release was in "
        },
        {
          "t": "fact",
          "fact": "F186"
        },
        {
          "t": "text",
          "text": ", so use "
        },
        {
          "t": "link",
          "href": "#minisearch",
          "label": [
            {
              "t": "text",
              "text": "MiniSearch"
            }
          ]
        },
        {
          "t": "text",
          "text": " when documents change while the app runs."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, fuse.js",
      "display": "Fuse.js",
      "asOf": "2026-11-18"
    },
    "F2": {
      "label": "Monthly downloads, fuse.js",
      "display": "75.3M",
      "asOf": "2026-11-14"
    },
    "F3": {
      "label": "License, fuse.js",
      "display": "Apache-2.0",
      "asOf": "2026-11-18"
    },
    "F4": {
      "label": "Package release, fuse.js",
      "display": "7.5.0",
      "asOf": "2026-07-13"
    },
    "F5": {
      "label": "Package release date, fuse.js",
      "display": "Jul 2026",
      "asOf": "2026-07-13"
    },
    "F6": {
      "label": "Repository stars, fuse.js",
      "display": "20.5K",
      "asOf": "2026-11-18"
    },
    "F7": {
      "label": "Fuzzy matching, fuse.js",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F8": {
      "label": "Prefix search, fuse.js",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F9": {
      "label": "Field boosting, fuse.js",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F10": {
      "label": "Index serialization, fuse.js",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F11": {
      "label": "Install, fuse.js",
      "display": "npm install fuse.js",
      "asOf": "2026-11-18"
    },
    "F12": {
      "label": "What it does, fuse.js",
      "display": "Fuzzy-matches a query against a small-to-medium list of strings or objects, in the browser or on the server.",
      "asOf": "2026-11-18"
    },
    "F13": {
      "label": "strengths lead, fuse.js",
      "display": "Tolerates typos",
      "asOf": "2026-11-18"
    },
    "F14": {
      "label": "strengths, fuse.js",
      "display": "Finds near matches when the query has typos, swapped letters, or missing characters.",
      "asOf": "2026-11-18"
    },
    "F15": {
      "label": "strengths lead, fuse.js",
      "display": "Weights fields",
      "asOf": "2026-11-18"
    },
    "F16": {
      "label": "strengths, fuse.js",
      "display": "Give title matches more weight than description matches.",
      "asOf": "2026-11-18"
    },
    "F17": {
      "label": "limitations lead, fuse.js",
      "display": "Searches the start of long fields",
      "asOf": "2026-11-18"
    },
    "F18": {
      "label": "limitations, fuse.js",
      "display": "By default only the start of each field counts. Set ignoreLocation: true for long text.",
      "asOf": "2026-11-18"
    },
    "F19": {
      "label": "limitations lead, fuse.js",
      "display": "Scans every entry",
      "asOf": "2026-11-18"
    },
    "F20": {
      "label": "limitations, fuse.js",
      "display": "Search time grows with the list, so move large collections to an indexed library.",
      "asOf": "2026-11-18"
    },
    "F21": {
      "label": "Quickstart, fuse.js",
      "display": "import Fuse from 'fuse.js'\n\nconst books = [\n  { title: \"Old Man's War\", author: 'John Scalzi' },\n  { title: 'The Lock Artist', author: 'Steve Hamilton' }\n]\n\nconst fuse = new Fuse(books, {\n  keys: ['title', 'author']\n})\n\nconst results = fuse.search('jon')\n// [{ item: { title: \"Old Man's War\", author: \"John Scalzi\" }, refIndex: 0 }]\n",
      "asOf": "2026-11-18"
    },
    "F22": {
      "label": "Project function, fuse.js",
      "display": "export const fuzzySearchInFiles = (\n  searchStr: string,\n  files: EditorSegmentList,\n) => {\n  if (searchStr && searchStr !== \"\") {\n    const newFiles = files\n      .map((group) => {\n        const fuse = new Fuse(group.items, FUSE_OPTIONS);\n        const resultItems = fuse.search(searchStr);\n        return { ...group, items: resultItems };\n      })\n      .filter((group) => group.items.length > 0);\n    return newFiles;\n  }\n\n  return files;\n};\n",
      "asOf": "2026-11-18"
    },
    "F23": {
      "label": "Project function reference, fuse.js",
      "display": "utils.ts · fuzzySearchInFiles()",
      "asOf": "2026-11-18"
    },
    "F24": {
      "label": "Project repository, fuse.js",
      "display": "appsmithorg/appsmith",
      "asOf": "2026-11-18"
    },
    "F25": {
      "label": "Project stars, appsmithorg/appsmith",
      "display": "41.3K",
      "asOf": "2026-11-18"
    },
    "F26": {
      "label": "Project push date, appsmithorg/appsmith",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "Library name, lunr",
      "display": "Lunr",
      "asOf": "2026-11-18"
    },
    "F28": {
      "label": "Monthly downloads, lunr",
      "display": "37.0M",
      "asOf": "2026-11-14"
    },
    "F29": {
      "label": "License, lunr",
      "display": "MIT",
      "asOf": "2026-11-18"
    },
    "F30": {
      "label": "Package release, lunr",
      "display": "2.3.9",
      "asOf": "2020-08-19"
    },
    "F31": {
      "label": "Package release date, lunr",
      "display": "Aug 2020",
      "asOf": "2020-08-19"
    },
    "F32": {
      "label": "Repository stars, lunr",
      "display": "9.2K",
      "asOf": "2026-11-18"
    },
    "F33": {
      "label": "Fuzzy matching, lunr",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F34": {
      "label": "Prefix search, lunr",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F35": {
      "label": "Field boosting, lunr",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F36": {
      "label": "Index serialization, lunr",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F37": {
      "label": "Output formats, lunr",
      "display": "JSON",
      "asOf": "2026-11-18"
    },
    "F38": {
      "label": "Install, lunr",
      "display": "npm install lunr",
      "asOf": "2026-11-18"
    },
    "F39": {
      "label": "What it does, lunr",
      "display": "Builds a full-text index that can be prebuilt at deploy time and loaded in the browser.",
      "asOf": "2026-11-18"
    },
    "F40": {
      "label": "strengths lead, lunr",
      "display": "Prebuilt indexes",
      "asOf": "2026-11-18"
    },
    "F41": {
      "label": "strengths, lunr",
      "display": "Build the index during the site build and serve the serialized index to the browser.",
      "asOf": "2026-11-18"
    },
    "F42": {
      "label": "strengths lead, lunr",
      "display": "Field boosts",
      "asOf": "2026-11-18"
    },
    "F43": {
      "label": "strengths, lunr",
      "display": "Boost a field at build time so its matches rank higher.",
      "asOf": "2026-11-18"
    },
    "F44": {
      "label": "limitations lead, lunr",
      "display": "Indexes can't change",
      "asOf": "2026-11-18"
    },
    "F45": {
      "label": "limitations, lunr",
      "display": "A built index can't add, update, or remove documents. Rebuild it instead.",
      "asOf": "2026-11-18"
    },
    "F46": {
      "label": "limitations lead, lunr",
      "display": "Wildcards skip stemming",
      "asOf": "2026-11-18"
    },
    "F47": {
      "label": "limitations, lunr",
      "display": "A query with a wildcard matches the literal term, not its stem.",
      "asOf": "2026-11-18"
    },
    "F48": {
      "label": "Quickstart, lunr",
      "display": "var lunr = require('lunr'),\n    stdin = process.stdin,\n    stdout = process.stdout,\n    buffer = []\n\nstdin.resume()\nstdin.setEncoding('utf8')\n\nstdin.on('data', function (data) {\n  buffer.push(data)\n})\n\nstdin.on('end', function () {\n  var documents = JSON.parse(buffer.join(''))\n\n  var idx = lunr(function () {\n    this.ref('id')\n    this.field('title')\n    this.field('body')\n\n    documents.forEach(function (doc) {\n      this.add(doc)\n    }, this)\n  })\n\n  stdout.write(JSON.stringify(idx))\n})\n\n",
      "asOf": "2026-11-18"
    },
    "F49": {
      "label": "Project function, lunr",
      "display": "function () {\n              if (language !== \"en\") {\n                if (Array.isArray(language)) {\n                  // @ts-expect-error\n                  this.use(lunr.multiLanguage(...language));\n                } else {\n                  // @ts-expect-error\n                  this.use(lunr[language]);\n                }\n              }\n\n              this.k1(k1);\n              this.b(b);\n\n              this.ref(\"id\");\n              this.field(\"title\");\n              this.field(\"content\");\n              this.field(\"tags\");\n\n              if (indexDocSidebarParentCategories > 0) {\n                this.field(\"sidebarParentCategories\");\n              }\n              const that = this;\n              documents.forEach(\n                ({\n                  id,\n                  sectionTitle,\n                  sectionContent,\n                  sectionTags,\n                  docSidebarParentCategories,\n                }) => {\n                  let sidebarParentCategories;\n                  if (\n                    indexDocSidebarParentCategories > 0 &&\n                    docSidebarParentCategories\n                  ) {\n                    sidebarParentCategories = [...docSidebarParentCategories]\n                      .reverse()\n                      .slice(0, indexDocSidebarParentCategories)\n                      .join(\" \");\n                  }\n\n                  that.add({\n                    id: id.toString(), // the ref must be a string\n                    title: sectionTitle,\n                    content: sectionContent,\n                    tags: sectionTags,\n                    sidebarParentCategories,\n                  });\n                },\n              );\n            }\n",
      "asOf": "2026-11-18"
    },
    "F50": {
      "label": "Project function reference, lunr",
      "display": "index.ts · configureSearchIndex()",
      "asOf": "2026-11-18"
    },
    "F51": {
      "label": "Project repository, lunr",
      "display": "cmfcmf/docusaurus-search-local",
      "asOf": "2026-11-18"
    },
    "F52": {
      "label": "Project stars, cmfcmf/docusaurus-search-local",
      "display": "503",
      "asOf": "2026-11-18"
    },
    "F53": {
      "label": "Project push date, cmfcmf/docusaurus-search-local",
      "display": "Jan 2026",
      "asOf": "2026-01-20"
    },
    "F54": {
      "label": "Library name, minisearch",
      "display": "MiniSearch",
      "asOf": "2026-11-18"
    },
    "F55": {
      "label": "Monthly downloads, minisearch",
      "display": "23.0M",
      "asOf": "2026-11-14"
    },
    "F56": {
      "label": "License, minisearch",
      "display": "MIT",
      "asOf": "2026-11-18"
    },
    "F57": {
      "label": "Package release, minisearch",
      "display": "7.2.0",
      "asOf": "2025-09-16"
    },
    "F58": {
      "label": "Package release date, minisearch",
      "display": "Sep 2025",
      "asOf": "2025-09-16"
    },
    "F59": {
      "label": "Repository stars, minisearch",
      "display": "6.2K",
      "asOf": "2026-11-18"
    },
    "F60": {
      "label": "Fuzzy matching, minisearch",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F61": {
      "label": "Prefix search, minisearch",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F62": {
      "label": "Field boosting, minisearch",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F63": {
      "label": "Index serialization, minisearch",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F64": {
      "label": "Output formats, minisearch",
      "display": "JSON",
      "asOf": "2026-11-18"
    },
    "F65": {
      "label": "Install, minisearch",
      "display": "npm install minisearch",
      "asOf": "2026-11-18"
    },
    "F66": {
      "label": "What it does, minisearch",
      "display": "Keeps a full-text index in memory, in the browser or in Node.js.",
      "asOf": "2026-11-18"
    },
    "F67": {
      "label": "strengths lead, minisearch",
      "display": "Prefix and fuzzy search",
      "asOf": "2026-11-18"
    },
    "F68": {
      "label": "strengths, minisearch",
      "display": "Supports prefix search, fuzzy search, ranking, and field boosts in one index.",
      "asOf": "2026-11-18"
    },
    "F69": {
      "label": "strengths lead, minisearch",
      "display": "Saves indexes as JSON",
      "asOf": "2026-11-18"
    },
    "F70": {
      "label": "strengths, minisearch",
      "display": "Serialize the index to JSON and reload it later with MiniSearch.loadJSON.",
      "asOf": "2026-11-18"
    },
    "F71": {
      "label": "limitations lead, minisearch",
      "display": "Index must fit in memory",
      "asOf": "2026-11-18"
    },
    "F72": {
      "label": "limitations, minisearch",
      "display": "The whole index lives in the memory of the app's process.",
      "asOf": "2026-11-18"
    },
    "F73": {
      "label": "limitations lead, minisearch",
      "display": "Reload with the same options",
      "asOf": "2026-11-18"
    },
    "F74": {
      "label": "limitations, minisearch",
      "display": "Pass loadJSON the same options used to create the original index.",
      "asOf": "2026-11-18"
    },
    "F75": {
      "label": "Quickstart, minisearch",
      "display": "// If you are using import:\nimport MiniSearch from 'minisearch'\n\n\n// A collection of documents for our examples\nconst documents = [\n  {\n    id: 1,\n    title: 'Moby Dick',\n    text: 'Call me Ishmael. Some years ago...',\n    category: 'fiction'\n  },\n  {\n    id: 2,\n    title: 'Zen and the Art of Motorcycle Maintenance',\n    text: 'I can see by my watch...',\n    category: 'fiction'\n  },\n  {\n    id: 3,\n    title: 'Neuromancer',\n    text: 'The sky above the port was...',\n    category: 'fiction'\n  },\n  {\n    id: 4,\n    title: 'Zen and the Art of Archery',\n    text: 'At first sight it must seem...',\n    category: 'non-fiction'\n  },\n  // ...and more\n]\n\nlet miniSearch = new MiniSearch({\n  fields: ['title', 'text'], // fields to index for full-text search\n  storeFields: ['title', 'category'] // fields to return with search results\n})\n\n// Index all documents\nminiSearch.addAll(documents)\n\n// Search with default options\nlet results = miniSearch.search('zen art motorcycle')\n// => [\n//   { id: 2, title: 'Zen and the Art of Motorcycle Maintenance', category: 'fiction', score: 2.77258, match: { ... } },\n//   { id: 4, title: 'Zen and the Art of Archery', category: 'non-fiction', score: 1.38629, match: { ... } }\n// ]\n",
      "asOf": "2026-11-18"
    },
    "F76": {
      "label": "Project function, minisearch",
      "display": "async function indexFile(page: string) {\n    const file = path.join(siteConfig.srcDir, page)\n    // get file metadata\n    const fileId = getDocId(file)\n    const locale = getLocaleForPath(\n      siteConfig.site,\n      siteConfig.rewrites.map[page] || page\n    )\n    const index = getIndexByLocale(locale)\n    // retrieve file and split into \"sections\"\n    let html: string\n    try {\n      html = await render(file, locale)\n    } catch (e) {\n      // in dev this runs unawaited, so a page that fails to render must not\n      // reject and take the server down with it — the page reports the error\n      // itself through the markdown transform\n      siteConfig.logger.warn(\n        c.yellow(`Failed to index ${page} for search: ${(e as Error).message}`)\n      )\n      return\n    }\n    if (!html) return\n    const sections =\n      // user provided generator\n      (await options.miniSearch?._splitIntoSections?.(file, html)) ??\n      // default implementation\n      splitPageIntoSections(html)\n    // add sections to the locale index\n    for await (const section of sections) {\n      if (!section || !(section.text || section.titles)) break\n      const { anchor, text, titles } = section\n      const id = anchor ? [fileId, anchor].join('#') : fileId\n      index.has(id) && index.discard(id)\n      index.add({\n        id,\n        text,\n        title: titles.at(-1)!,\n        titles: titles.slice(0, -1)\n      })\n    }\n  }\n",
      "asOf": "2026-11-18"
    },
    "F77": {
      "label": "Project function reference, minisearch",
      "display": "localSearchPlugin.ts · indexFile()",
      "asOf": "2026-11-18"
    },
    "F78": {
      "label": "Project repository, minisearch",
      "display": "vuejs/vitepress",
      "asOf": "2026-11-18"
    },
    "F79": {
      "label": "Project stars, vuejs/vitepress",
      "display": "18.5K",
      "asOf": "2026-11-18"
    },
    "F80": {
      "label": "Project push date, vuejs/vitepress",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F81": {
      "label": "Library name, @orama/orama",
      "display": "Orama",
      "asOf": "2026-11-18"
    },
    "F82": {
      "label": "Monthly downloads, @orama/orama",
      "display": "7.9M",
      "asOf": "2026-11-16"
    },
    "F83": {
      "label": "License, @orama/orama",
      "display": "Apache-2.0",
      "asOf": "2026-11-18"
    },
    "F84": {
      "label": "Package release, @orama/orama",
      "display": "3.1.18",
      "asOf": "2025-12-19"
    },
    "F85": {
      "label": "Package release date, @orama/orama",
      "display": "Dec 2025",
      "asOf": "2025-12-19"
    },
    "F86": {
      "label": "Repository stars, @orama/orama",
      "display": "10.6K",
      "asOf": "2026-11-18"
    },
    "F87": {
      "label": "Fuzzy matching, @orama/orama",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F88": {
      "label": "Prefix search, @orama/orama",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F89": {
      "label": "Field boosting, @orama/orama",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F90": {
      "label": "Index serialization, @orama/orama",
      "display": "Via plugin",
      "asOf": "2026-11-18"
    },
    "F91": {
      "label": "Output formats, @orama/orama",
      "display": "JSON",
      "asOf": "2026-11-18"
    },
    "F92": {
      "label": "Install, @orama/orama",
      "display": "npm install @orama/orama",
      "asOf": "2026-11-18"
    },
    "F93": {
      "label": "What it does, @orama/orama",
      "display": "Runs full-text, vector, and hybrid search in the browser, on a server, or at the edge.",
      "asOf": "2026-11-18"
    },
    "F94": {
      "label": "strengths lead, @orama/orama",
      "display": "Field boosts",
      "asOf": "2026-11-18"
    },
    "F95": {
      "label": "strengths, @orama/orama",
      "display": "Boost a field so its matches rank higher.",
      "asOf": "2026-11-18"
    },
    "F96": {
      "label": "strengths lead, @orama/orama",
      "display": "Vector search built in",
      "asOf": "2026-11-18"
    },
    "F97": {
      "label": "strengths, @orama/orama",
      "display": "Vector, full-text, and hybrid queries use the same search function.",
      "asOf": "2026-11-18"
    },
    "F98": {
      "label": "limitations lead, @orama/orama",
      "display": "Needs external embeddings",
      "asOf": "2026-11-18"
    },
    "F99": {
      "label": "limitations, @orama/orama",
      "display": "Generate embeddings for the documents before running vector queries.",
      "asOf": "2026-11-18"
    },
    "F100": {
      "label": "limitations lead, @orama/orama",
      "display": "Exact turns off typo tolerance",
      "asOf": "2026-11-18"
    },
    "F101": {
      "label": "limitations, @orama/orama",
      "display": "When a query sets exact, Orama ignores the tolerance setting.",
      "asOf": "2026-11-18"
    },
    "F102": {
      "label": "Quickstart, @orama/orama",
      "display": "import { create, search, insert } from \"@orama/orama\";\n\n// Create a new Orama instance\nconst db = create({\n  schema: {\n    name: \"string\",\n    description: \"string\",\n    price: \"number\",\n    meta: {\n      rating: \"number\",\n    },\n  },\n});\n\n// Insert documents into the database\ninsert(db, {\n  name: \"Wireless Headphones\",\n  description: \"Experience immersive sound quality with these noise-cancelling wireless headphones.\",\n  price: 99.99,\n  meta: {\n    rating: 4.5,\n  },\n});\n\n// Search for documents\nconst searchResult = search(db, {\n  term: \"headphones\",\n});\n\nconsole.log(searchResult.hits.map((hit) => hit.document));\n",
      "asOf": "2026-11-18"
    },
    "F103": {
      "label": "Project function, @orama/orama",
      "display": "export async function createDBSimple({\n  indexes,\n  tokenizer,\n  ...rest\n}: SimpleOptions): Promise<Orama<typeof simpleSchema>> {\n  const items = typeof indexes === 'function' ? await indexes() : indexes;\n  const db = create({\n    schema: simpleSchema,\n    ...rest,\n    components: {\n      ...rest.components,\n      tokenizer: tokenizer ?? rest.components?.tokenizer,\n    },\n  }) as Orama<typeof simpleSchema>;\n\n  await insertMultiple(\n    db,\n    items.map((page) => ({\n      title: page.title,\n      description: page.description,\n      url: page.url,\n      content: page.content,\n      keywords: page.keywords,\n    })),\n  );\n\n  return db;\n}\n",
      "asOf": "2026-11-18"
    },
    "F104": {
      "label": "Project function reference, @orama/orama",
      "display": "create-db.ts · createDBSimple()",
      "asOf": "2026-11-18"
    },
    "F105": {
      "label": "Project repository, @orama/orama",
      "display": "fuma-nama/fumadocs",
      "asOf": "2026-11-18"
    },
    "F106": {
      "label": "Project stars, fuma-nama/fumadocs",
      "display": "13.7K",
      "asOf": "2026-11-18"
    },
    "F107": {
      "label": "Project push date, fuma-nama/fumadocs",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Library name, flexsearch",
      "display": "FlexSearch",
      "asOf": "2026-11-18"
    },
    "F109": {
      "label": "Monthly downloads, flexsearch",
      "display": "5.4M",
      "asOf": "2026-11-14"
    },
    "F110": {
      "label": "License, flexsearch",
      "display": "Apache-2.0",
      "asOf": "2026-11-18"
    },
    "F111": {
      "label": "Package release, flexsearch",
      "display": "0.8.212",
      "asOf": "2025-09-06"
    },
    "F112": {
      "label": "Package release date, flexsearch",
      "display": "Sep 2025",
      "asOf": "2025-09-06"
    },
    "F113": {
      "label": "Repository stars, flexsearch",
      "display": "13.8K",
      "asOf": "2026-11-18"
    },
    "F114": {
      "label": "Fuzzy matching, flexsearch",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F115": {
      "label": "Prefix search, flexsearch",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F116": {
      "label": "Index serialization, flexsearch",
      "display": "Built-in",
      "asOf": "2026-11-18"
    },
    "F117": {
      "label": "Install, flexsearch",
      "display": "npm install flexsearch",
      "asOf": "2026-11-18"
    },
    "F118": {
      "label": "What it does, flexsearch",
      "display": "Builds text indexes tunable for partial matching and scalable with worker threads.",
      "asOf": "2026-11-18"
    },
    "F119": {
      "label": "strengths lead, flexsearch",
      "display": "Tokenizer controls matching",
      "asOf": "2026-11-18"
    },
    "F120": {
      "label": "strengths, flexsearch",
      "display": "Choose a tokenizer so that typing flex or search finds flexsearch.",
      "asOf": "2026-11-18"
    },
    "F121": {
      "label": "strengths lead, flexsearch",
      "display": "Worker threads",
      "asOf": "2026-11-18"
    },
    "F122": {
      "label": "strengths, flexsearch",
      "display": "Run index updates and queries in parallel worker threads.",
      "asOf": "2026-11-18"
    },
    "F123": {
      "label": "limitations lead, flexsearch",
      "display": "Tokenizer sets the cost",
      "asOf": "2026-11-18"
    },
    "F124": {
      "label": "limitations, flexsearch",
      "display": "Pick the narrowest tokenizer that matches what users type.",
      "asOf": "2026-11-18"
    },
    "F125": {
      "label": "limitations lead, flexsearch",
      "display": "Imports need the same config",
      "asOf": "2026-11-18"
    },
    "F126": {
      "label": "limitations, flexsearch",
      "display": "Import an exported index with the configuration it was built with. Changed settings mean re-indexing.",
      "asOf": "2026-11-18"
    },
    "F127": {
      "label": "Quickstart, flexsearch",
      "display": "import { Index } from \"flexsearch\";\n\n// create a simple index which can store id-content-pairs\nconst index = new Index({\n    // use forward when you want to match partials\n    // e.g. match \"flexsearch\" when query \"flex\"\n    tokenize: \"forward\"\n});\n\n// some test data\nconst data = [\n    'cats abcd efgh ijkl mnop qrst uvwx cute',\n    'cats abcd efgh ijkl mnop qrst cute',\n    'cats abcd efgh ijkl mnop cute',\n    'cats abcd efgh ijkl cute',\n    'cats abcd efgh cute',\n    'cats abcd cute',\n    'cats cute'\n];\n\n// add data to the index\ndata.forEach((item, id) => {\n    index.add(id, item);\n});\n\n// perform query\nconst result = index.search(\"cute cat\");\n\n// display results\nresult.forEach(i => {\n    console.log(data[i]);\n});\n",
      "asOf": "2026-11-18"
    },
    "F128": {
      "label": "Developer need",
      "display": "Documents that change",
      "asOf": "2026-11-18"
    },
    "F129": {
      "label": "Why choose minisearch",
      "display": "adds and removes documents at any time",
      "asOf": "2026-11-18"
    },
    "F130": {
      "label": "Developer need in introduction",
      "display": "search app documents that users can edit",
      "asOf": "2026-11-18"
    },
    "F131": {
      "label": "When to consider lunr",
      "display": "for indexes built ahead of time",
      "asOf": "2026-11-18"
    },
    "F132": {
      "label": "Developer need",
      "display": "Fuzzy search over a short list",
      "asOf": "2026-11-18"
    },
    "F133": {
      "label": "Why choose fuse.js",
      "display": "matches despite typos",
      "asOf": "2026-11-18"
    },
    "F134": {
      "label": "Developer need in introduction",
      "display": "filter a list while the user types",
      "asOf": "2026-11-18"
    },
    "F135": {
      "label": "When to consider minisearch",
      "display": "for searching full documents",
      "asOf": "2026-11-18"
    },
    "F136": {
      "label": "Developer need",
      "display": "An index stored in a database",
      "asOf": "2026-11-18"
    },
    "F137": {
      "label": "Why choose flexsearch",
      "display": "saves indexes to persistent storage",
      "asOf": "2026-11-18"
    },
    "F138": {
      "label": "Developer need in introduction",
      "display": "keep a growing search index in local storage",
      "asOf": "2026-11-18"
    },
    "F139": {
      "label": "When to consider minisearch",
      "display": "when the index fits in memory",
      "asOf": "2026-11-18"
    },
    "F140": {
      "label": "Developer need",
      "display": "Search on a static site",
      "asOf": "2026-11-18"
    },
    "F141": {
      "label": "Why choose lunr",
      "display": "loads an index built at deploy time",
      "asOf": "2026-11-18"
    },
    "F142": {
      "label": "Developer need in introduction",
      "display": "maintain a site with prebuilt Lunr indexes",
      "asOf": "2026-11-18"
    },
    "F143": {
      "label": "When to consider minisearch",
      "display": "for documents that change after page load",
      "asOf": "2026-11-18"
    },
    "F144": {
      "label": "Developer need",
      "display": "Keyword and vector search",
      "asOf": "2026-11-18"
    },
    "F145": {
      "label": "Why choose @orama/orama",
      "display": "searches text and embeddings together",
      "asOf": "2026-11-18"
    },
    "F146": {
      "label": "Developer need in introduction",
      "display": "combine keyword and semantic search",
      "asOf": "2026-11-18"
    },
    "F147": {
      "label": "When to consider minisearch",
      "display": "when keyword search is enough",
      "asOf": "2026-11-18"
    },
    "F148": {
      "label": "Page introduction",
      "display": "JavaScript full-text search libraries let application developers index and search content.",
      "asOf": "2026-11-18"
    },
    "F149": {
      "label": "Page introduction",
      "display": "For document search inside an app, start with MiniSearch: documents can change without rebuilding the whole index.",
      "asOf": "2026-11-18"
    },
    "F150": {
      "label": "Page introduction",
      "display": "For a searchable list or command palette, use Fuse.js for typo-tolerant matching.",
      "asOf": "2026-11-18"
    },
    "F151": {
      "label": "Page introduction",
      "display": "Use Orama when the same application needs text and vector search.",
      "asOf": "2026-11-18"
    },
    "F152": {
      "label": "FAQ: Which JavaScript search library should I use?",
      "display": "Start with MiniSearch for searchable app documents, especially when users can add or edit them.",
      "asOf": "2026-11-18"
    },
    "F153": {
      "label": "FAQ: Which JavaScript search library should I use?",
      "display": "Use Fuse.js for fuzzy matching over a local list.",
      "asOf": "2026-11-18"
    },
    "F154": {
      "label": "FAQ: Which JavaScript search library should I use?",
      "display": "Orama supports full-text and vector search in the same engine.",
      "asOf": "2026-11-18"
    },
    "F155": {
      "label": "FAQ: Fuse.js vs MiniSearch: which fits autocomplete?",
      "display": "Fuse.js fits fuzzy matching over a small-to-medium collection of names or labels.",
      "asOf": "2026-11-18"
    },
    "F156": {
      "label": "FAQ: Fuse.js vs MiniSearch: which fits autocomplete?",
      "display": "MiniSearch fits document search with ranked results, prefixes, and updates to the indexed collection.",
      "asOf": "2026-11-18"
    },
    "F157": {
      "label": "FAQ: Can I add website search without running a search server?",
      "display": "Yes. MiniSearch keeps the index in the application process and can work offline.",
      "asOf": "2026-11-18"
    },
    "F158": {
      "label": "FAQ: Can I add website search without running a search server?",
      "display": "Lunr can load an index built ahead of time, which suits a static-site build.",
      "asOf": "2026-11-18"
    },
    "F159": {
      "label": "FAQ: When should I move browser search to a server?",
      "display": "Move beyond MiniSearch when the index no longer fits local process memory.",
      "asOf": "2026-11-18"
    },
    "F160": {
      "label": "FAQ: When should I move browser search to a server?",
      "display": "MiniSearch is not designed for a distributed index kept in sync across multiple nodes.",
      "asOf": "2026-11-18"
    },
    "F161": {
      "label": "Library name, fuse.js",
      "display": "Fuse.js",
      "asOf": "2026-11-18"
    },
    "F162": {
      "label": "Monthly downloads, fuse.js",
      "display": "76.1M",
      "asOf": "2026-11-18"
    },
    "F163": {
      "label": "License, fuse.js",
      "display": "Apache-2.0",
      "asOf": "2026-11-18"
    },
    "F164": {
      "label": "Package release, fuse.js",
      "display": "7.5.0",
      "asOf": "2026-11-18"
    },
    "F165": {
      "label": "Package release date, fuse.js",
      "display": "Jul 2026",
      "asOf": "2026-11-18"
    },
    "F166": {
      "label": "Install, fuse.js",
      "display": "npm install fuse.js",
      "asOf": "2026-11-18"
    },
    "F167": {
      "label": "Quickstart, fuse.js",
      "display": "import Fuse from 'fuse.js'\nconst books = [\n  { title: \"Old Man's War\", author: 'John Scalzi' },\n  { title: 'The Lock Artist', author: 'Steve Hamilton' }\n]\nconst fuse = new Fuse(books, {\n  keys: ['title', 'author']\n})\nconst results = fuse.search('jon')\n",
      "asOf": "2026-11-18"
    },
    "F168": {
      "label": "Repository stars, fuse.js",
      "display": "20.5K",
      "asOf": "2026-11-18"
    },
    "F169": {
      "label": "Add documents after indexing, fuse.js",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F170": {
      "label": "Bundled TypeScript declarations, fuse.js",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F171": {
      "label": "Index serialization, fuse.js",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F172": {
      "label": "Prefix search, fuse.js",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F173": {
      "label": "Fuzzy matching, fuse.js",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F174": {
      "label": "Bundle size, fuse.js",
      "display": "26,486 bytes minified; 9,392 bytes gzip",
      "asOf": "2026-11-18"
    },
    "F175": {
      "label": "Prefix search, fuse.js",
      "display": "Extended-search ^prefix operator; requires useExtendedSearch: true",
      "asOf": "2026-11-18"
    },
    "F176": {
      "label": "Index serialization, fuse.js",
      "display": "Index toJSON, then Fuse.parseIndex and supplied collection",
      "asOf": "2026-11-18"
    },
    "F177": {
      "label": "Fuzzy matching, fuse.js",
      "display": "Threshold-controlled fuzzy matching; default 0.6",
      "asOf": "2026-11-18"
    },
    "F178": {
      "label": "Project function, fuse.js",
      "display": "const fuzzySearchFilter: SpotlightFilterFunction = (query, actions) => {\n  if (!query.trim()) {\n    return actions;\n  }\n\n  const flatActions = actions.reduce<any[]>((acc, item) => {\n    if ('actions' in item) {\n      return [...acc, ...item.actions.map((action) => ({ ...action, group: item.group }))];\n    }\n    return [...acc, item];\n  }, []);\n\n  const fuse = new Fuse(flatActions, {\n    keys: ['label', 'description', 'keywords'],\n    threshold: 0.3,\n    minMatchCharLength: 1,\n  });\n\n  const results = fuse.search(query).map((result) => result.item);\n\n  const groups: Record<string, any> = {};\n  const result: any[] = [];\n\n  results.forEach((action) => {\n    if (action.group) {\n      if (!groups[action.group]) {\n        groups[action.group] = { pushed: false, data: { group: action.group, actions: [] } };\n      }\n      groups[action.group].data.actions.push(action);\n      if (!groups[action.group].pushed) {\n        groups[action.group].pushed = true;\n        result.push(groups[action.group].data);\n      }\n    } else {\n      result.push(action);\n    }\n  });\n\n  return result;\n};\n",
      "asOf": "2026-11-18"
    },
    "F179": {
      "label": "Project source file, fuse.js",
      "display": "apps/mantine.dev/src/components/Search/Search.tsx",
      "asOf": "2026-11-18"
    },
    "F180": {
      "label": "Project full_name, fuse.js",
      "display": "mantinedev/mantine",
      "asOf": "2026-11-18"
    },
    "F181": {
      "label": "Project stargazers_count, fuse.js",
      "display": "31.9K",
      "asOf": "2026-11-18"
    },
    "F182": {
      "label": "Library name, lunr",
      "display": "Lunr",
      "asOf": "2026-11-18"
    },
    "F183": {
      "label": "Monthly downloads, lunr",
      "display": "37.2M",
      "asOf": "2026-11-18"
    },
    "F184": {
      "label": "License, lunr",
      "display": "MIT",
      "asOf": "2026-11-18"
    },
    "F185": {
      "label": "Package release, lunr",
      "display": "2.3.9",
      "asOf": "2026-11-18"
    },
    "F186": {
      "label": "Package release date, lunr",
      "display": "Aug 2020",
      "asOf": "2026-11-18"
    },
    "F187": {
      "label": "Install, lunr",
      "display": "npm install lunr",
      "asOf": "2026-11-18"
    },
    "F188": {
      "label": "Quickstart, lunr",
      "display": "var documents = [{\n  \"name\": \"Lunr\",\n  \"text\": \"Like Solr, but much smaller, and not as bright.\"\n}, {\n  \"name\": \"React\",\n  \"text\": \"A JavaScript library for building user interfaces.\"\n}, {\n  \"name\": \"Lodash\",\n  \"text\": \"A modern JavaScript utility library delivering modularity, performance & extras.\"\n}]\nvar idx = lunr(function () {\n  this.ref('name')\n  this.field('text')\n  documents.forEach(function (doc) {\n    this.add(doc)\n  }, this)\n})\nidx.search(\"bright\")\n",
      "asOf": "2026-11-18"
    },
    "F189": {
      "label": "Repository stars, lunr",
      "display": "9.2K",
      "asOf": "2026-11-18"
    },
    "F190": {
      "label": "Add documents after indexing, lunr",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F191": {
      "label": "Bundled TypeScript declarations, lunr",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F192": {
      "label": "Index serialization, lunr",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F193": {
      "label": "Prefix search, lunr",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F194": {
      "label": "Fuzzy matching, lunr",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F195": {
      "label": "Bundle size, lunr",
      "display": "28,915 bytes minified; 8,350 bytes gzip",
      "asOf": "2026-11-18"
    },
    "F196": {
      "label": "Index serialization, lunr",
      "display": "Index toJSON via JSON.stringify; lunr.Index.load",
      "asOf": "2026-11-18"
    },
    "F197": {
      "label": "Prefix search, lunr",
      "display": "Trailing * wildcard query syntax",
      "asOf": "2026-11-18"
    },
    "F198": {
      "label": "Fuzzy matching, lunr",
      "display": "Edit-distance ~N query syntax",
      "asOf": "2026-11-18"
    },
    "F199": {
      "label": "Project function, lunr",
      "display": "function () {\n              if (language !== \"en\") {\n                if (Array.isArray(language)) {\n                  // @ts-expect-error\n                  this.use(lunr.multiLanguage(...language));\n                } else {\n                  // @ts-expect-error\n                  this.use(lunr[language]);\n                }\n              }\n\n              this.k1(k1);\n              this.b(b);\n\n              this.ref(\"id\");\n              this.field(\"title\");\n              this.field(\"content\");\n              this.field(\"tags\");\n\n              if (indexDocSidebarParentCategories > 0) {\n                this.field(\"sidebarParentCategories\");\n              }\n              const that = this;\n              documents.forEach(\n                ({\n                  id,\n                  sectionTitle,\n                  sectionContent,\n                  sectionTags,\n                  docSidebarParentCategories,\n                }) => {\n                  let sidebarParentCategories;\n                  if (\n                    indexDocSidebarParentCategories > 0 &&\n                    docSidebarParentCategories\n                  ) {\n                    sidebarParentCategories = [...docSidebarParentCategories]\n                      .reverse()\n                      .slice(0, indexDocSidebarParentCategories)\n                      .join(\" \");\n                  }\n\n                  that.add({\n                    id: id.toString(), // the ref must be a string\n                    title: sectionTitle,\n                    content: sectionContent,\n                    tags: sectionTags,\n                    sidebarParentCategories,\n                  });\n                },\n              );\n            }\n",
      "asOf": "2026-11-18"
    },
    "F200": {
      "label": "Project source file, lunr",
      "display": "packages/docusaurus-search-local/src/server/index.ts",
      "asOf": "2026-11-18"
    },
    "F201": {
      "label": "Project full_name, lunr",
      "display": "cmfcmf/docusaurus-search-local",
      "asOf": "2026-11-18"
    },
    "F202": {
      "label": "Project stargazers_count, lunr",
      "display": "503",
      "asOf": "2026-11-18"
    },
    "F203": {
      "label": "Library name, minisearch",
      "display": "MiniSearch",
      "asOf": "2026-11-18"
    },
    "F204": {
      "label": "Monthly downloads, minisearch",
      "display": "23.4M",
      "asOf": "2026-11-18"
    },
    "F205": {
      "label": "License, minisearch",
      "display": "MIT",
      "asOf": "2026-11-18"
    },
    "F206": {
      "label": "Package release, minisearch",
      "display": "7.2.0",
      "asOf": "2026-11-18"
    },
    "F207": {
      "label": "Package release date, minisearch",
      "display": "Sep 2025",
      "asOf": "2026-11-18"
    },
    "F208": {
      "label": "Install, minisearch",
      "display": "npm install minisearch",
      "asOf": "2026-11-18"
    },
    "F209": {
      "label": "Quickstart, minisearch",
      "display": "import MiniSearch from 'minisearch'\nconst documents = [\n  {\n    id: 1,\n    title: 'Moby Dick',\n    text: 'Call me Ishmael. Some years ago...',\n    category: 'fiction'\n  },\n  {\n    id: 2,\n    title: 'Zen and the Art of Motorcycle Maintenance',\n    text: 'I can see by my watch...',\n    category: 'fiction'\n  },\n  {\n    id: 3,\n    title: 'Neuromancer',\n    text: 'The sky above the port was...',\n    category: 'fiction'\n  },\n  {\n    id: 4,\n    title: 'Zen and the Art of Archery',\n    text: 'At first sight it must seem...',\n    category: 'non-fiction'\n  },\n]\nlet miniSearch = new MiniSearch({\n  fields: ['title', 'text'], // fields to index for full-text search\n  storeFields: ['title', 'category'] // fields to return with search results\n})\nminiSearch.addAll(documents)\nlet results = miniSearch.search('zen art motorcycle')\n",
      "asOf": "2026-11-18"
    },
    "F210": {
      "label": "Repository stars, minisearch",
      "display": "6.2K",
      "asOf": "2026-11-18"
    },
    "F211": {
      "label": "Add documents after indexing, minisearch",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F212": {
      "label": "Bundled TypeScript declarations, minisearch",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F213": {
      "label": "Index serialization, minisearch",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F214": {
      "label": "Prefix search, minisearch",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F215": {
      "label": "Fuzzy matching, minisearch",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F216": {
      "label": "Bundle size, minisearch",
      "display": "17,687 bytes minified; 5,720 bytes gzip",
      "asOf": "2026-11-18"
    },
    "F217": {
      "label": "Fuzzy matching, minisearch",
      "display": "fuzzy: 0.2 permits maximum edit distance of 0.2 × term length, rounded",
      "asOf": "2026-11-18"
    },
    "F218": {
      "label": "Prefix search, minisearch",
      "display": "Search prefix option: include prefix matches",
      "asOf": "2026-11-18"
    },
    "F219": {
      "label": "Index serialization, minisearch",
      "display": "Index toJSON / MiniSearch.loadJSON",
      "asOf": "2026-11-18"
    },
    "F220": {
      "label": "Project function, minisearch",
      "display": "async function indexFile(page: string) {\n    const file = path.join(siteConfig.srcDir, page)\n    // get file metadata\n    const fileId = getDocId(file)\n    const locale = getLocaleForPath(\n      siteConfig.site,\n      siteConfig.rewrites.map[page] || page\n    )\n    const index = getIndexByLocale(locale)\n    // retrieve file and split into \"sections\"\n    let html: string\n    try {\n      html = await render(file, locale)\n    } catch (e) {\n      // in dev this runs unawaited, so a page that fails to render must not\n      // reject and take the server down with it — the page reports the error\n      // itself through the markdown transform\n      siteConfig.logger.warn(\n        c.yellow(`Failed to index ${page} for search: ${(e as Error).message}`)\n      )\n      return\n    }\n    if (!html) return\n    const sections =\n      // user provided generator\n      (await options.miniSearch?._splitIntoSections?.(file, html)) ??\n      // default implementation\n      splitPageIntoSections(html)\n    // add sections to the locale index\n    for await (const section of sections) {\n      if (!section || !(section.text || section.titles)) break\n      const { anchor, text, titles } = section\n      const id = anchor ? [fileId, anchor].join('#') : fileId\n      index.has(id) && index.discard(id)\n      index.add({\n        id,\n        text,\n        title: titles.at(-1)!,\n        titles: titles.slice(0, -1)\n      })\n    }\n  }\n",
      "asOf": "2026-11-18"
    },
    "F221": {
      "label": "Project source file, minisearch",
      "display": "src/node/plugins/localSearchPlugin.ts",
      "asOf": "2026-11-18"
    },
    "F222": {
      "label": "Project full_name, minisearch",
      "display": "vuejs/vitepress",
      "asOf": "2026-11-18"
    },
    "F223": {
      "label": "Project stargazers_count, minisearch",
      "display": "18.5K",
      "asOf": "2026-11-18"
    },
    "F224": {
      "label": "Library name, @orama/orama",
      "display": "Orama",
      "asOf": "2026-11-18"
    },
    "F225": {
      "label": "Monthly downloads, @orama/orama",
      "display": "7.9M",
      "asOf": "2026-11-18"
    },
    "F226": {
      "label": "License, @orama/orama",
      "display": "Apache-2.0",
      "asOf": "2026-11-18"
    },
    "F227": {
      "label": "Package release, @orama/orama",
      "display": "3.1.18",
      "asOf": "2026-11-18"
    },
    "F228": {
      "label": "Package release date, @orama/orama",
      "display": "Dec 2025",
      "asOf": "2026-11-18"
    },
    "F229": {
      "label": "Install, @orama/orama",
      "display": "npm install @orama/orama",
      "asOf": "2026-11-18"
    },
    "F230": {
      "label": "Quickstart, @orama/orama",
      "display": "import { create, search, insert } from \"@orama/orama\";\nconst db = create({\n  schema: {\n    name: \"string\",\n    description: \"string\",\n    price: \"number\",\n    meta: {\n      rating: \"number\",\n    },\n  },\n});\ninsert(db, {\n  name: \"Wireless Headphones\",\n  description: \"Experience immersive sound quality with these noise-cancelling wireless headphones.\",\n  price: 99.99,\n  meta: {\n    rating: 4.5,\n  },\n});\nconst searchResult = search(db, {\n  term: \"headphones\",\n});\n",
      "asOf": "2026-11-18"
    },
    "F231": {
      "label": "Repository stars, @orama/orama",
      "display": "10.6K",
      "asOf": "2026-11-18"
    },
    "F232": {
      "label": "Add documents after indexing, @orama/orama",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F233": {
      "label": "Bundled TypeScript declarations, @orama/orama",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F234": {
      "label": "Index serialization, @orama/orama",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F235": {
      "label": "Prefix search, @orama/orama",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F236": {
      "label": "Fuzzy matching, @orama/orama",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F237": {
      "label": "Bundle size, @orama/orama",
      "display": "77,047 bytes minified; 24,416 bytes gzip",
      "asOf": "2026-11-18"
    },
    "F238": {
      "label": "Fuzzy matching, @orama/orama",
      "display": "tolerance sets maximum Levenshtein edit distance",
      "asOf": "2026-11-18"
    },
    "F239": {
      "label": "Prefix search, @orama/orama",
      "display": "Prefix matches enabled unless exact: true",
      "asOf": "2026-11-18"
    },
    "F240": {
      "label": "Index serialization, @orama/orama",
      "display": "Native save/load database state; persistence plugin additionally handles disk/in-memory persistence",
      "asOf": "2026-11-18"
    },
    "F241": {
      "label": "Project function, @orama/orama",
      "display": "export async function createDBSimple({\n  indexes,\n  tokenizer,\n  ...rest\n}: SimpleOptions): Promise<Orama<typeof simpleSchema>> {\n  const items = typeof indexes === 'function' ? await indexes() : indexes;\n  const db = create({\n    schema: simpleSchema,\n    ...rest,\n    components: {\n      ...rest.components,\n      tokenizer: tokenizer ?? rest.components?.tokenizer,\n    },\n  }) as Orama<typeof simpleSchema>;\n\n  await insertMultiple(\n    db,\n    items.map((page) => ({\n      title: page.title,\n      description: page.description,\n      url: page.url,\n      content: page.content,\n      keywords: page.keywords,\n    })),\n  );\n\n  return db;\n}\n",
      "asOf": "2026-11-18"
    },
    "F242": {
      "label": "Project source file, @orama/orama",
      "display": "packages/core/src/search/orama/create-db.ts",
      "asOf": "2026-11-18"
    },
    "F243": {
      "label": "Project full_name, @orama/orama",
      "display": "fuma-nama/fumadocs",
      "asOf": "2026-11-18"
    },
    "F244": {
      "label": "Project stargazers_count, @orama/orama",
      "display": "13.7K",
      "asOf": "2026-11-18"
    },
    "F245": {
      "label": "Library name, flexsearch",
      "display": "FlexSearch",
      "asOf": "2026-11-18"
    },
    "F246": {
      "label": "Monthly downloads, flexsearch",
      "display": "5.3M",
      "asOf": "2026-11-18"
    },
    "F247": {
      "label": "License, flexsearch",
      "display": "Apache-2.0",
      "asOf": "2026-11-18"
    },
    "F248": {
      "label": "Package release, flexsearch",
      "display": "0.8.212",
      "asOf": "2026-11-18"
    },
    "F249": {
      "label": "Package release date, flexsearch",
      "display": "Sep 2025",
      "asOf": "2026-11-18"
    },
    "F250": {
      "label": "Install, flexsearch",
      "display": "npm install flexsearch",
      "asOf": "2026-11-18"
    },
    "F251": {
      "label": "Quickstart, flexsearch",
      "display": "import { Index } from \"flexsearch\";\nconst index = new Index({\n    tokenize: \"forward\"\n});\nconst data = [\n    'cats abcd efgh ijkl mnop qrst uvwx cute',\n    'cats abcd efgh ijkl mnop qrst cute',\n    'cats abcd efgh ijkl mnop cute',\n    'cats abcd efgh ijkl cute',\n    'cats abcd efgh cute',\n    'cats abcd cute',\n    'cats cute'\n];\ndata.forEach((item, id) => {\n    index.add(id, item);\n});\nconst result = index.search(\"cute cat\");\n",
      "asOf": "2026-11-18"
    },
    "F252": {
      "label": "Repository stars, flexsearch",
      "display": "13.8K",
      "asOf": "2026-11-18"
    },
    "F253": {
      "label": "Add documents after indexing, flexsearch",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F254": {
      "label": "Bundled TypeScript declarations, flexsearch",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F255": {
      "label": "Index serialization, flexsearch",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F256": {
      "label": "Prefix search, flexsearch",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F257": {
      "label": "Fuzzy matching, flexsearch",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F258": {
      "label": "Bundle size, flexsearch",
      "display": "49,808 bytes minified; 16,839 bytes gzip",
      "asOf": "2026-11-18"
    },
    "F259": {
      "label": "Fuzzy matching, flexsearch",
      "display": "tolerant tokenizer handles swapped/missing letters; phonetic encoder presets are distinct; suggest allows missing query terms",
      "asOf": "2026-11-18"
    },
    "F260": {
      "label": "Prefix search, flexsearch",
      "display": "forward tokenizer indexes term beginnings; reverse/full have different coverage",
      "asOf": "2026-11-18"
    },
    "F261": {
      "label": "Index serialization, flexsearch",
      "display": "export / import index parts; user-selected storage handler",
      "asOf": "2026-11-18"
    },
    "F262": {
      "label": "Project function, flexsearch",
      "display": "export function createFlexSearchProvider(sources: readonly SearchSource[]): SearchProvider {\n  const indexes = sources.map((source) => {\n    const index = new FlexSearch.Document<SearchItem>({\n      tokenize: 'forward',\n      document: { id: 'id', index: ['title', 'keywords'] },\n    });\n    source.items.forEach((item) => index.add(item));\n    return { index, itemsById: new Map(source.items.map((item) => [item.id, item])) };\n  });\n\n  return {\n    search(term) {\n      return groupResults(sources, (_source, sourceIndex) => {\n        const { index, itemsById } = indexes[sourceIndex];\n        const ids = new Set(\n          index.search(term, RESULT_LIMIT).flatMap((field) => field.result.map(String)),\n        );\n\n        return [...ids].flatMap((id) => itemsById.get(id) ?? []);\n      });\n    },\n  };\n}\n",
      "asOf": "2026-11-18"
    },
    "F263": {
      "label": "Project source file, flexsearch",
      "display": "apps/admin/src/global-search/search-providers.ts",
      "asOf": "2026-11-18"
    },
    "F264": {
      "label": "Project full_name, flexsearch",
      "display": "TryGhost/Ghost",
      "asOf": "2026-11-18"
    },
    "F265": {
      "label": "Project stargazers_count, flexsearch",
      "display": "55.8K",
      "asOf": "2026-11-18"
    },
    "F266": {
      "label": "Library name, js-search",
      "display": "Js Search",
      "asOf": "2026-11-18"
    },
    "F267": {
      "label": "Monthly downloads, js-search",
      "display": "849.5K",
      "asOf": "2026-11-18"
    },
    "F268": {
      "label": "License, js-search",
      "display": "MIT",
      "asOf": "2026-11-18"
    },
    "F269": {
      "label": "Package release, js-search",
      "display": "2.0.1",
      "asOf": "2026-11-18"
    },
    "F270": {
      "label": "Package release date, js-search",
      "display": "May 2023",
      "asOf": "2026-11-18"
    },
    "F271": {
      "label": "Install, js-search",
      "display": "npm install js-search",
      "asOf": "2026-11-18"
    },
    "F272": {
      "label": "Quickstart, js-search",
      "display": "import * as JsSearch from 'js-search';\nvar theGreatGatsby = {\n  isbn: '9781597226769',\n  title: 'The Great Gatsby',\n  author: {\n    name: 'F. Scott Fitzgerald'\n  },\n  tags: ['book', 'inspirational']\n};\nvar theDaVinciCode = {\n  isbn: '0307474275',\n  title: 'The DaVinci Code',\n  author: {\n    name: 'Dan Brown'\n  },\n  tags: ['book', 'mystery']\n};\nvar angelsAndDemons = {\n  isbn: '074349346X',\n  title: 'Angels & Demons',\n  author: {\n    name: 'Dan Brown',\n  },\n  tags: ['book', 'mystery']\n};\nvar search = new JsSearch.Search('isbn');\nsearch.addIndex('title');\nsearch.addIndex(['author', 'name']);\nsearch.addIndex('tags')\nsearch.addDocuments([theGreatGatsby, theDaVinciCode, angelsAndDemons]);\nsearch.search('The');    // [theGreatGatsby, theDaVinciCode]\n",
      "asOf": "2026-11-18"
    },
    "F273": {
      "label": "Official description, js-search",
      "display": "JS Search is an efficient, client-side search library for JavaScript and JSON objects",
      "asOf": "2026-11-18"
    },
    "F274": {
      "label": "Quickstart source file, js-search",
      "display": "README.md",
      "asOf": "2026-11-18"
    },
    "F275": {
      "label": "Repository stars, js-search",
      "display": "2.2K",
      "asOf": "2026-11-18"
    },
    "F276": {
      "label": "Add documents after indexing, js-search",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F277": {
      "label": "Bundled TypeScript declarations, js-search",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F278": {
      "label": "Index serialization, js-search",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F279": {
      "label": "Prefix search, js-search",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F280": {
      "label": "Fuzzy matching, js-search",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F281": {
      "label": "Bundle size, js-search",
      "display": "7,837 bytes minified; 2,536 bytes gzip",
      "asOf": "2026-11-18"
    },
    "F282": {
      "label": "Prefix search, js-search",
      "display": "PrefixIndexStrategy (default); ExactWordIndexStrategy and AllSubstringsIndexStrategy alternatives",
      "asOf": "2026-11-18"
    },
    "F283": {
      "label": "Term ranking, js-search",
      "display": "TfIdfSearchIndex (default) or UnorderedSearchIndex",
      "asOf": "2026-11-18"
    },
    "F284": {
      "label": "Index serialization, js-search",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F285": {
      "label": "Fuzzy matching, js-search",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F286": {
      "label": "Project function, js-search",
      "display": "rebuildIndex = () => {\n    const { bookList } = this.state\n\n    const dataToSearch = new JsSearch.Search(`isbn`)\n\n    /**\n     *  defines a indexing strategy for the data\n     * more more about it in here https://github.com/bvaughn/js-search#configuring-the-index-strategy\n     */\n    dataToSearch.indexStrategy = new JsSearch.PrefixIndexStrategy()\n\n    /**\n     * defines the sanitizer for the search\n     * to prevent some of the words from being excluded\n     *\n     */\n    dataToSearch.sanitizer = new JsSearch.LowerCaseSanitizer()\n\n    /**\n     * defines the search index\n     * read more in here https://github.com/bvaughn/js-search#configuring-the-search-index\n     */\n    dataToSearch.searchIndex = new JsSearch.TfIdfSearchIndex(`isbn`)\n\n    dataToSearch.addIndex(`title`) // sets the index attribute for the data\n    dataToSearch.addIndex(`author`) // sets the index attribute for the data\n\n    dataToSearch.addDocuments(bookList) // adds the data to be searched\n    this.setState({ search: dataToSearch, isLoading: false })\n  }\n",
      "asOf": "2026-11-18"
    },
    "F287": {
      "label": "Project source file, js-search",
      "display": "examples/using-js-search/src/components/SearchContainer.js",
      "asOf": "2026-11-18"
    },
    "F288": {
      "label": "Project full_name, js-search",
      "display": "gatsbyjs/gatsby",
      "asOf": "2026-11-18"
    },
    "F289": {
      "label": "Project stargazers_count, js-search",
      "display": "55.9K",
      "asOf": "2026-11-18"
    },
    "F290": {
      "label": "Library name, wink-bm25-text-search",
      "display": "wink-bm25-text-search",
      "asOf": "2026-11-18"
    },
    "F291": {
      "label": "Monthly downloads, wink-bm25-text-search",
      "display": "277.9K",
      "asOf": "2026-11-18"
    },
    "F292": {
      "label": "License, wink-bm25-text-search",
      "display": "MIT",
      "asOf": "2026-11-18"
    },
    "F293": {
      "label": "Package release, wink-bm25-text-search",
      "display": "3.1.2",
      "asOf": "2026-11-18"
    },
    "F294": {
      "label": "Package release date, wink-bm25-text-search",
      "display": "Nov 2022",
      "asOf": "2026-11-18"
    },
    "F295": {
      "label": "Install, wink-bm25-text-search",
      "display": "npm install wink-bm25-text-search",
      "asOf": "2026-11-18"
    },
    "F296": {
      "label": "Quickstart, wink-bm25-text-search",
      "display": "var bm25 = require( 'wink-bm25-text-search' );\nvar engine = bm25();\nvar docs = require( 'wink-bm25-text-search/sample-data/demo-data-for-wink-bm25.json' );\nconst winkNLP = require( 'wink-nlp' );\nconst model = require( 'wink-eng-lite-web-model' );\nconst nlp = winkNLP( model );\nconst its = nlp.its;\nconst prepTask = function ( text ) {\n  const tokens = [];\n  nlp.readDoc(text)\n      .tokens()\n      .filter( (t) => ( t.out(its.type) === 'word' && !t.out(its.stopWordFlag) ) )\n      .each( (t) => tokens.push( (t.out(its.negationFlag)) ? '!' + t.out(its.stem) : t.out(its.stem) ) );\n  return tokens;\n};\nvar query;\nengine.defineConfig( { fldWeights: { title: 1, body: 2 } } );\nengine.definePrepTasks( [ prepTask ] );\ndocs.forEach( function ( doc, i ) {\n  engine.addDoc( doc, i );\n} );\nengine.consolidate();\nquery = 'not studied law';\nvar results = engine.search( query );\n",
      "asOf": "2026-11-18"
    },
    "F297": {
      "label": "Official description, wink-bm25-text-search",
      "display": "Configurable BM25 Text Search Engine with simple semantic search support",
      "asOf": "2026-11-18"
    },
    "F298": {
      "label": "Quickstart source file, wink-bm25-text-search",
      "display": "README.md",
      "asOf": "2026-11-18"
    },
    "F299": {
      "label": "Repository stars, wink-bm25-text-search",
      "display": "74",
      "asOf": "2026-11-18"
    },
    "F300": {
      "label": "Add documents after indexing, wink-bm25-text-search",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F301": {
      "label": "Bundled TypeScript declarations, wink-bm25-text-search",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F302": {
      "label": "Index serialization, wink-bm25-text-search",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F303": {
      "label": "Prefix search, wink-bm25-text-search",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F304": {
      "label": "Fuzzy matching, wink-bm25-text-search",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F305": {
      "label": "Bundle size, wink-bm25-text-search",
      "display": "9,802 bytes minified; 3,250 bytes gzip",
      "asOf": "2026-11-18"
    },
    "F306": {
      "label": "Index serialization, wink-bm25-text-search",
      "display": "exportJSON / importJSON; pre-consolidation export can accept additional documents",
      "asOf": "2026-11-18"
    },
    "F307": {
      "label": "Matching model, wink-bm25-text-search",
      "display": "BM25 text ranking with optional semantic expansion preparation",
      "asOf": "2026-11-18"
    },
    "F308": {
      "label": "Index lifecycle, wink-bm25-text-search",
      "display": "Add documents before consolidate; searching requires consolidation",
      "asOf": "2026-11-18"
    },
    "F309": {
      "label": "Prefix search, wink-bm25-text-search",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F310": {
      "label": "Fuzzy matching, wink-bm25-text-search",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F311": {
      "label": "Project function, wink-bm25-text-search",
      "display": "public async queryItems<TItemMetadata extends TMetadata = TMetadata>(\n    vector: number[],\n    query: string,\n    topK: number,\n    filter?: MetadataFilter,\n    isBm25?: boolean\n  ): Promise<QueryResult<TItemMetadata>[]> {\n    await this.loadIndexData();\n\n    // Filter items\n    let items = this._data!.items;\n    if (filter) {\n      items = items.filter(i => ItemSelector.select(i.metadata, filter));\n    }\n\n    // Find top K by cosine similarity using a bounded min-heap of size K.\n    // For N items this is O(N log K) vs the previous O(N log N) full sort.\n    const norm = ItemSelector.normalize(vector);\n    const k = Math.min(topK, items.length);\n    const heap: { index: number; distance: number }[] = [];\n    const siftUp = (start: number) => {\n      let i = start;\n      while (i > 0) {\n        const parent = (i - 1) >> 1;\n        if (heap[parent].distance > heap[i].distance) {\n          const tmp = heap[parent]; heap[parent] = heap[i]; heap[i] = tmp;\n          i = parent;\n        } else break;\n      }\n    };\n    const siftDown = () => {\n      let i = 0;\n      const n = heap.length;\n      while (true) {\n        const l = (i << 1) + 1;\n        const r = l + 1;\n        let smallest = i;\n        if (l < n && heap[l].distance < heap[smallest].distance) smallest = l;\n        if (r < n && heap[r].distance < heap[smallest].distance) smallest = r;\n        if (smallest === i) break;\n        const tmp = heap[i]; heap[i] = heap[smallest]; heap[smallest] = tmp;\n        i = smallest;\n      }\n    };\n    for (let i = 0; i < items.length; i++) {\n      const distance = ItemSelector.normalizedCosineSimilarity(vector, norm, items[i].vector, items[i].norm);\n      if (heap.length < k) {\n        heap.push({ index: i, distance });\n        siftUp(heap.length - 1);\n      } else if (k > 0 && distance > heap[0].distance) {\n        heap[0] = { index: i, distance };\n        siftDown();\n      }\n    }\n    heap.sort((a, b) => b.distance - a.distance);\n\n    // Find top k\n    const top: QueryResult<TItemMetadata>[] = heap.map(d => {\n      return {\n        item: Object.assign({}, items[d.index]) as any,\n        score: d.distance\n      };\n    });\n\n    // Load external metadata in parallel — each file is independent, and the\n    // top-K size is small, so this is bounded fan-out.\n    await Promise.all(top.map(async (item) => {\n      if (item.item.metadataFile) {\n        const metadataPath = path.join(this._folderPath, item.item.metadataFile);\n        const metadataBuffer = await this.storage.readFile(metadataPath);\n        item.item.metadata = this._codec.deserializeMetadata(metadataBuffer) as any;\n      }\n    }));\n\n    // Perform bm25 search only if enabled. Avoid duplicate chunks that are already selected during semantic search.\n    if (isBm25) {\n      const itemSet = new Set<string>();\n      for (const r of top) itemSet.add(r.item.id);\n\n      // Set up BM25 engine\n      await this.setupBm25();\n\n      // Add docs if we have necessary metadata; guard everything to avoid crashes\n      for (let i = 0; i < items.length; i++) {\n        if (!itemSet.has(items[i].id)) {\n          const item = items[i] as any;\n          const md = item.metadata || {};\n          if (md.documentId != undefined && md.startPos != undefined && md.endPos != undefined) {\n            try {\n              const currDocTxt = await this._docReader(String(md.documentId));\n              const startPos = Number(md.startPos);\n              const endPos = Number(md.endPos);\n              const chunkText = currDocTxt.substring(startPos, endPos + 1);\n              this._bm25Engine.addDoc?.({ body: chunkText }, i);\n            } catch {\n              // Ignore load or engine errors for BM25 doc prep\n            }\n          }\n        }\n      }\n\n      this._bm25Engine.consolidate?.();\n\n      const results: any[] = await this.bm25Search(query, items, topK);\n\n      results.forEach((res: any) => {\n        // Support both [index, score] tuples and { item, score } objects\n        if (Array.isArray(res)) {\n          const idx = res[0];\n          const score = res[1];\n          if (items[idx]) {\n            top.push({\n              item: Object.assign({}, { ...items[idx], metadata: { ...items[idx].metadata, isBm25: true } }) as any,\n              score\n            });\n          }\n        } else if (res && typeof res === 'object' && 'item' in res && 'score' in res) {\n          const objItem = Object.assign({}, { ...(res.item || {}), metadata: { ...(res.item?.metadata || {}), isBm25: true } }) as any;\n          top.push({ item: objItem, score: res.score });\n        }\n      });\n    }\n\n    return top;\n  }\n",
      "asOf": "2026-11-18"
    },
    "F312": {
      "label": "Project source file, wink-bm25-text-search",
      "display": "src/LocalIndex.ts",
      "asOf": "2026-11-18"
    },
    "F313": {
      "label": "Project full_name, wink-bm25-text-search",
      "display": "Stevenic/vectra",
      "asOf": "2026-11-18"
    },
    "F314": {
      "label": "Project stargazers_count, wink-bm25-text-search",
      "display": "634",
      "asOf": "2026-11-18"
    },
    "F315": {
      "label": "Developer need, js-search",
      "display": "Matching text inside words",
      "asOf": "2026-11-18"
    },
    "F316": {
      "label": "Pick reason, js-search",
      "display": "finds matches anywhere inside a word",
      "asOf": "2026-11-18"
    },
    "F317": {
      "label": "Pick alternative reason, flexsearch",
      "display": "for tunable tokenizing",
      "asOf": "2026-11-18"
    },
    "F318": {
      "label": "Developer need, wink",
      "display": "BM25 relevance ranking",
      "asOf": "2026-11-18"
    },
    "F319": {
      "label": "Pick reason, wink",
      "display": "ranks results with BM25 and field weights",
      "asOf": "2026-11-18"
    },
    "F320": {
      "label": "Pick alternative reason, minisearch",
      "display": "for adding documents after indexing",
      "asOf": "2026-11-18"
    },
    "F321": {
      "label": "what, js-search",
      "display": "Indexes JavaScript objects for client-side search, with stemming, stop words, and TF-IDF ranking.",
      "asOf": "2026-11-18"
    },
    "F322": {
      "label": "strengths lead, js-search",
      "display": "Choice of index strategy",
      "asOf": "2026-11-18"
    },
    "F323": {
      "label": "strengths, js-search",
      "display": "Index word prefixes by default, or switch to exact words or every substring.",
      "asOf": "2026-11-18"
    },
    "F324": {
      "label": "strengths lead, js-search",
      "display": "No dependencies",
      "asOf": "2026-11-18"
    },
    "F325": {
      "label": "strengths, js-search",
      "display": "It runs on ES5 and needs no third-party libraries.",
      "asOf": "2026-11-18"
    },
    "F326": {
      "label": "limitations lead, js-search",
      "display": "Stemming needs another library",
      "asOf": "2026-11-18"
    },
    "F327": {
      "label": "limitations, js-search",
      "display": "Bring a stemmer such as porter-stemmer and wrap it in a StemmingTokenizer.",
      "asOf": "2026-11-18"
    },
    "F328": {
      "label": "what, wink",
      "display": "Builds an in-memory BM25 index from JSON documents, in Node.js or the browser.",
      "asOf": "2026-11-18"
    },
    "F329": {
      "label": "strengths lead, wink",
      "display": "Field weights can be negative",
      "asOf": "2026-11-18"
    },
    "F330": {
      "label": "strengths, wink",
      "display": "Set a weight per field. A negative weight pushes down documents that match in that field.",
      "asOf": "2026-11-18"
    },
    "F331": {
      "label": "strengths lead, wink",
      "display": "Pluggable text preparation",
      "asOf": "2026-11-18"
    },
    "F332": {
      "label": "strengths, wink",
      "display": "Plug in wink-nlp for stemming, stop-word removal, and negation handling.",
      "asOf": "2026-11-18"
    },
    "F333": {
      "label": "limitations lead, wink",
      "display": "Closed after consolidate()",
      "asOf": "2026-11-18"
    },
    "F334": {
      "label": "limitations, wink",
      "display": "No documents can be added after consolidate(), so keep a JSON export from before consolidation to add more later.",
      "asOf": "2026-11-18"
    }
  },
  "dataCheckedAt": "2026-11-18",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript search libraries Fuse.js MiniSearch FlexSearch Lunr full text fuzzy search code examples Orama",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
