Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Snippets on multiple matches on the same document? #2301

Open
inzanez opened this issue Jan 14, 2024 · 1 comment
Open

Multiple Snippets on multiple matches on the same document? #2301

inzanez opened this issue Jan 14, 2024 · 1 comment

Comments

@inzanez
Copy link

inzanez commented Jan 14, 2024

Hi

just found the Snippet example which is very useful. But as far as I can see it only ever returns one snippet per document. Is there a way to iterate through all possible snippets, assuming there are multiple portions of a document that matched?

@PSeitz
Copy link
Contributor

PSeitz commented Feb 7, 2024

Not by default, but the information is there from which the Snippet is constructed

fn select_best_fragment_combination(fragments: &[FragmentCandidate], text: &str) -> Snippet {

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

No branches or pull requests

2 participants