typesense / typesense/typesense
Custom stem dictionaries API returns Request Malformed error, but save the dictionary
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.6k
- Forks
- 973
- Avg merge
- 18h 45m
- Merged PRs (30d)
- 4
Description
I am successfully implemented the feature. The feature is one of the most useful in my cases!
But I needed to suppress the error. The POST upsert_stem_dictionary method returns RequestMalformed error, but saves the stem dictionary at the same time. I decided to suppress the error for a while.
The response body is {"message": "Invalid dictionary format."}.
Also, I removed duplicated items from my dictionary, as we were talking in the issue, so my dictionary is in the attachment. (I changed jsonl to json before uploading to workaround github file extension validation rule, please, change extension to jsonl before using).
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
Reproduce the POST upsert_stem_dictionary request using the attached plurals_en_v1.json after restoring its jsonl extension. Start by tracing that endpoint's request validation and confirm the dictionary is saved without returning the RequestMalformed error or the “Invalid dictionary format.” response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100