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

Sort results by relevance or page index with combined keyword and facet/filter searches #131

Open
kintopp opened this issue Jul 13, 2024 · 1 comment
Labels

Comments

@kintopp
Copy link
Member

kintopp commented Jul 13, 2024

Let's say you search the Globalise corpus for "Amsterdam". The results will be sorted by relevance (which I take is frequency of occurrence of the keyword relative to the amount of text on the page). Fair enough. Now let's say you enter * as the keyword and filter on an inventory number, like 1053. Your results will be sorted by the page index. Again, fair enough. But if you search for "Amsterdam" as well as inventory "1053" your results are still sorted by relevance:

https://transcriptions.globalise.huygens.knaw.nl/?indexName=docs-2024-03-18&fragmentSize=100&from=0&size=10&sortBy=_score&sortOrder=desc&query=eyJkYXRlRnJvbSI6IjE1MDAtMDEtMDEiLCJkYXRlVG8iOiIxODAwLTAxLTAxIiwicmFuZ2VGcm9tIjoiMCIsInJhbmdlVG8iOiIzMDAwMCIsImZ1bGxUZXh0IjoiYW1zdGVyZGFtIiwidGVybXMiOnsiaW52TnIiOlsiMTA1MyJdfX0%3D

But this isn't always what's wanted here. It would be better if a user could choose to see the results sorted by relevance or by page index. In cases where there was no keyword search, relevance could be grayed out. Ditto if there was no filter/facet like inventory number applied. In that case, sorting by page index should be grayed out.

@kintopp kintopp added enhancement New feature or request feature globalise labels Jul 13, 2024
@kintopp kintopp changed the title Sort results by relevance or page index Sort results by relevance or page index with combined keyword and facet/filter searches Jul 13, 2024
@kintopp
Copy link
Member Author

kintopp commented Jul 13, 2024

low priority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant