Skip to content

Conversation

laptou
Copy link

@laptou laptou commented May 9, 2025

For my own project, I needed a version of Snippet that provided absolute offsets within the text. This PR does the following:

  • allows the user to retrieve the absolute offset
  • changes the return value of snippet_from_doc to Option<Snippet> and gets rid of "empty snippets"
  • adds new methods snippets_from_doc and snippets which return all of the relevant snippets, not just the best one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant