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

Fairsearch as an elasticsearch rescore function. #3

Closed
purbon opened this issue Mar 19, 2018 · 2 comments
Closed

Fairsearch as an elasticsearch rescore function. #3

purbon opened this issue Mar 19, 2018 · 2 comments
Assignees
Labels
query UX User experience
Milestone

Comments

@purbon
Copy link
Contributor

purbon commented Mar 19, 2018

The first and straight forward way to integrate the fair search methodology in an elasticsearch plugin is to offer the algorithm as a [rescore] function. (https://www.elastic.co/guide/en/elasticsearch/reference/6.2/search-request-rescore.html).

Given a query like this:

GET studies/_search
{
  "query": {
    "match": {
      "center": "Berlin"
    }
  },
  "rescore": {
    "window_size": 100,
    "fair_rescorer" : {
      "protected_key" : "gender",
      "protected_value" : "Female"
    }
  }
}

The system will execute the query

  "query": {
    "match": {
      "center": "Berlin"
    }

and then apply the rescore function to raise the score of top fair results.

This functionality will allow an initial, clean and straightforward implementation implementation that will provide initial high value to users of this plugin.

Depends On: #1

@purbon purbon added UX User experience query labels Mar 19, 2018
@purbon purbon self-assigned this Mar 19, 2018
@purbon purbon added this to the preview1 milestone Mar 19, 2018
@purbon purbon added this to Backlog in FAIR Search project Mar 19, 2018
@purbon purbon moved this from Backlog to In Dev in FAIR Search project Mar 21, 2018
@purbon purbon moved this from In Dev to Testing in FAIR Search project Mar 25, 2018
@purbon
Copy link
Contributor Author

purbon commented Apr 4, 2018

@tsuehr would you like to live test this with a real elasticsearch?

@purbon
Copy link
Contributor Author

purbon commented Apr 14, 2018

code has been tested and merge to master. closing for now, if you or we find bugs we should open new specific issues and fix them.

@purbon purbon closed this as completed Apr 14, 2018
FAIR Search project automation moved this from Testing to Done Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
query UX User experience
Projects
Development

No branches or pull requests

1 participant