A search engine written in typescript, can be used in the browser, with node.js and deno.
Look at this example below to get you started.
Or remove the document from the index.
;th.removeDoc"hello world".thenconsole.log'succesfully removed'
Write your own store to store your indexes where you prefer, extend from this abstract class.
/// implement your own store;
You can also write your own stemmer or use snowball (look at node-snowball)