Skip to content

Filetype when passing contents to index, why is it required? #164

Discussion options

You must be logged in to vote

Hey @ashutoshsaboo! Thanks for writing in.

I think @reese has answered your question really well in the linked thread:

I think it does make sense that you would need to pass a filetype, because otherwise Stork doesn't know what parser is required. contents isn't a parsed format -- it could be a raw HTML string, or plain markdown, so Stork needs to know what type of contents they are. It can't tokenize something that it can't parse tokens for.

For example, I put raw HTML into the contents field for one Stork index I build, and I need to tell Stork that it should parse the contents as HTML instead of plaintext.

There might be an enhancement here where Stork assumes PlainText unless you sp…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ashutoshsaboo
Comment options

@jameslittle230
Comment options

Answer selected by ashutoshsaboo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #163 on April 01, 2021 23:52.