Skip to content

Store all document metadata #19

@talolard

Description

@talolard

Currently we only store the text field of the document, but a user would probbly want all of the metadata that came with it. Also, in the future we'd probably want to add search on it.

The offending code is here

const formtedData = data.map((x, id) => ({

And it's also a perofmrance hit because we're doing an extra loop on the dataset.

The problem is, we need to know the name of the field that has the text. For know, I just shove it into content, but maybe better solution is to store the name of the text field somehwere and just use it when we build the postings list and the example. The index itself doesn't know or care about this field

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions