typesense / typesense/typesense
[Feature request] multiple snippets from various parts of the document
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.6k
- Forks
- 973
- Avg merge
- 18h 45m
- Merged PRs (30d)
- 4
Description
We already discussed this in the slack channel but I'm creating this feature request in case others are interested as well.
Use case:
In a long document there are 10 occurrences of "keyword" and I'd like to display all 10 snippets. Right now typesense returns just one snippet (the best matched one) for each document.
It is possible to implement this on the client side (by splitting the long document into paragraphs/sentences) but it would be useful to have typesense support this functionality via a flag.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named in the issue. Start by locating the existing document-snippet and highlighting implementation, then determine how a flag should request multiple snippets and define done as returning all relevant snippets from the document.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- search
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100