Skip to content

FCBHDBP-616 improving response for search languages endpoint#3

Open
marcvictorpassarelli wants to merge 1 commit intodevelopfrom
FCBHDBP-616
Open

FCBHDBP-616 improving response for search languages endpoint#3
marcvictorpassarelli wants to merge 1 commit intodevelopfrom
FCBHDBP-616

Conversation

@marcvictorpassarelli
Copy link

@marcvictorpassarelli marcvictorpassarelli commented Aug 30, 2024

Description

When retrieving information from endpoint GET /languages/search/{search_text} not always returns the best results in the top.
The solution presented is to try to maintain the current order according to the MATCH function but move the row that matches the search text to the top using a score system using LIKE to move the results that start with the search text to the top, ensuring that the most relevant results appear first.

Issue Link

FCBHDBP-616

How Do I QA This

Search for English and notice that the results are starting with English
https://digitalbibleplatform.postman.co/workspace/DBP4-workspace~0a283f7f-06d9-467d-97f0-fef92d18bd3d/request/12519377-3d1641d8-f3ff-44c4-9077-d56350f31c68?action=share&source=copy-link&creator=18435954&active-environment=810fd94b-9392-43e2-9f13-943e8d323135

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

Successfully merging this pull request may close these issues.

1 participant