typesense / typesense/typesense

Custom stem dictionaries API returns Request Malformed error, but save the dictionary

Open
#2,236 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
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).

plurals_en_v1.json

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.