Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upQuery tags field with a match query (use mapping analyzer) #2690
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Lgtm, just waiting for Travis |
added a commit
that referenced
this pull request
Oct 29, 2015
seanh
merged commit cd3fd6b
into
master
Oct 29, 2015
seanh
deleted the
match-tags-according-to-mapping-analyzer
branch
Oct 29, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nickstenning commentedOct 29, 2015
The "tags" field is stored in Elasticsearch analysed (by our custom "uni_normalizer" analyzer). This means, broadly, that in the inverted index, individual terms in a tag will be stripped of punctuation and case-normalised. As such, we need to do the same normalisation when querying, and the easiest way to do this is with a match query.
This commit changes "tag" queries so that:
By way of example, for an annotation with tags:
These queries will match:
Whereas these will not:
Fixes #2655.