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

Support boolean search combination of languages #193

Open
nichtich opened this issue Mar 3, 2023 · 0 comments
Open

Support boolean search combination of languages #193

nichtich opened this issue Mar 3, 2023 · 0 comments

Comments

@nichtich
Copy link
Member

nichtich commented Mar 3, 2023

By now JSKOS server backend combines multiple languages via boolean OR. There should be a way to combine them via AND.

Current workaround is to get query result (bottom right icon </>) and process with addition tool such as jq (also possible online at https://jqplay.org/). For instance all glossaries with English AND French:

curl 'https://bartoc.org/api/voc?type=http%3A%2F%2Fw3id.org%2Fnkos%2Fnkostype%23glossary' | jq '.[]|select(.languages|any(index("en")) and any(index("fr")))'
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

No branches or pull requests

1 participant