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

Normalising facet-search at the /aviser/query/facet-endpoint #12

Open
maxodsbjerg opened this issue Apr 19, 2021 · 0 comments
Open

Normalising facet-search at the /aviser/query/facet-endpoint #12

maxodsbjerg opened this issue Apr 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@maxodsbjerg
Copy link
Contributor

maxodsbjerg commented Apr 19, 2021

When doing facet searches it would be helpfull to have normalised results as well as the count of articles.
Eg the following facet search:

Q: folkestyre
Facet: lplace

Response:

"lplace","count"
"København",10
"Århus",9
"Aalborg",7
"Hjørring",7
"Horsens",6
"Næstved",4
"Nykøbing Falster",3
"Ringsted",3
"Rønne",3
"Vejle",2

Ideally the csv-structure would be something like:
"lplace", "count", "percentage"

Possible pitfall

Imagine the following query:
folkestyre AND py:[1849 TO 1880]
In this case the value used for normalising should only be the total amount of articles between 1849 and 1880. Is it possible to handle this?

@maxodsbjerg maxodsbjerg added the enhancement New feature or request label Apr 19, 2021
@maxodsbjerg maxodsbjerg changed the title Normalising facet-search Normalising facet-search at the /aviser/query/facet-endpoint Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant