Closed bphenriques closed 2 years ago
What you can do ist create an index and do not use builtin store. Instead after adding the object to the index prune the specific data field and push data objects manually to your own store object by using the ID as key. when getting back the results from the search you can just use arr.map(id => store[id])
to enrich results (when needed).
Hello! 👋
Given a document:
Is it possible to index both fields and prune.
content
to, for example, 90 characters (as I only need to provide a small preview of the content) to optimize the store? As of now I can get by having an additional fieldpreview
which is a truncated version ofcontent
:)Thank you for the amazing project 🙇