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

Match generation returns unrelated match #422

Open
ayya-vimala opened this issue Jan 7, 2025 · 0 comments
Open

Match generation returns unrelated match #422

ayya-vimala opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
backend bug Something isn't working

Comments

@ayya-vimala
Copy link
Collaborator

ayya-vimala commented Jan 7, 2025

Image

When running:

curl -X 'POST' \
  'https://dharmamitra.org/api-db/text-view/text-parallels/' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "filename": "PA_dn_1",
  "folio": "",
  "active_segment": "none",
  "filters": {
    "par_length": 30,
    "score": 30,
    "languages": [
      "all"
    ]
  },
  "page": 0
}'

It returns an unrelated match "PA_tha-ap_301:3.3_PA_thi-ap_39:16.3", for source file PA_dn_1, segment number PA_dn_1:1.0. This should not return any matches that do not start with the source file name.

This might happen elsewhere too so good to keep an eye out for other problems.

Might have something to do with the match generation process:

Image

@ayya-vimala ayya-vimala added bug Something isn't working backend labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants