-
Notifications
You must be signed in to change notification settings - Fork 28
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
permissions: allow moderators to read emails #107
Conversation
e5d25f9
to
856e467
Compare
resource: expose search all users endpoint
856e467
to
6c183e2
Compare
@@ -1,23 +1,46 @@ | |||
{ | |||
"settings": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this analyzer is needed to extract email domains to multifield: email.domain (see mapping of the email field)
}, | ||
"analyzer": { | ||
"email": { | ||
"tokenizer": "uax_url_email", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this tokenizer for the email is needed to keep the email as one token, otherwise ES creates many tokens on the email and can be confusing when searching - we learned that from user feedback in ILS (check ES docs)
"type": "text" | ||
"type": "text", | ||
"fields": { | ||
"keyword": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed for aggs
"links": {"avatar": avatar}, | ||
"links": resolved_dict.get("links"), | ||
"blocked_at": resolved_dict.get("blocked_at"), | ||
"verified_at": resolved_dict.get("verified_at"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be confirmed if we can expand those fields - they are added to the field_permission_dump, but this might not be enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My hunch is that if we're using email
as above, this goes through the service and gets properly filtered, in which case any attribute would be good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true! thanks
d0d87d0
to
f0fd0af
Compare
search: add user facets
f0fd0af
to
9b42e83
Compare
FAQ