-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add tasks for positional queries with nested disjunctions #133
Merged
mikemccand
merged 1 commit into
mikemccand:master
from
magibney:positional_disjunctions
Jun 28, 2021
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# these are artificially designed to create intensive disjunction queries. The | ||
# goal is to illustrate performance profile; particularly, e.g., with | ||
# potentially adversarial queries | ||
|
||
# NOTE: alternating between "a|in-the" and "the|in-the" clauses is required | ||
# to induce `pullUpDisjunctions()` query rewriting, which otherwise seems | ||
# to be prevented by `OrderedIntervalSource.deduplicate()`? | ||
|
||
# NOTE: the "smith" term is arbitrary, just to restrict the domain somewhat | ||
# and push QPS into friendlier number ranges | ||
|
||
IntervalDis1: intervalDis//(body:smith a|in-the) | ||
IntervalMinDis1: intervalMinDis//(body:smith a|in-the) | ||
SpanDis1: spanDis//(body:smith a|in-the) | ||
IntervalDis2: intervalDis//(body:smith a|in-the the|in-the) | ||
IntervalMinDis2: intervalMinDis//(body:smith a|in-the the|in-the) | ||
SpanDis2: spanDis//(body:smith a|in-the the|in-the) | ||
IntervalDis3: intervalDis//(body:smith a|in-the the|in-the a|in-the) | ||
IntervalMinDis3: intervalMinDis//(body:smith a|in-the the|in-the a|in-the) | ||
SpanDis3: spanDis//(body:smith a|in-the the|in-the a|in-the) | ||
IntervalDis4: intervalDis//(body:smith a|in-the the|in-the a|in-the the|in-the) | ||
IntervalMinDis4: intervalMinDis//(body:smith a|in-the the|in-the a|in-the the|in-the) | ||
SpanDis4: spanDis//(body:smith a|in-the the|in-the a|in-the the|in-the) | ||
IntervalDis5: intervalDis//(body:smith a|in-the the|in-the a|in-the the|in-the a|in-the) | ||
IntervalMinDis5: intervalMinDis//(body:smith a|in-the the|in-the a|in-the the|in-the a|in-the) | ||
SpanDis5: spanDis//(body:smith a|in-the the|in-the a|in-the the|in-the a|in-the) | ||
IntervalDis6: intervalDis//(body:smith a|in-the the|in-the a|in-the the|in-the a|in-the the|in-the) | ||
IntervalMinDis6: intervalMinDis//(body:smith a|in-the the|in-the a|in-the the|in-the a|in-the the|in-the) | ||
SpanDis6: spanDis//(body:smith a|in-the the|in-the a|in-the the|in-the a|in-the the|in-the) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This is intended to illustrate a realistic-type query that would have | ||
# relatively significant combinatorial expansion in `pullUpDisjunctions()` | ||
|
||
IntervalDis: intervalDis//(body:us|united-states health|health-care policy|public-policy law|legal-aspects) | ||
IntervalMinDis: intervalMinDis//(body:us|united-states health|health-care policy|public-policy law|legal-aspects) | ||
SpanDis: spanDis//(body:us|united-states health|health-care policy|public-policy law|legal-aspects) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# These should not actually result in positional queries; they exist to evaluate | ||
# realistic pure-disjunction queries in isolation (i.e.: SpanOrQuery, | ||
# DisjunctionIntervalsSource) | ||
|
||
PlainIntervalDis: intervalDis//(body:trash|waste|garbage|recycling|refuse) | ||
PlainSpanDis: spanDis//(body:trash|waste|garbage|recycling|refuse) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this effectively the same thing as a good old
PhraseQuery
withslop=0
?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.
I think they should be functionally the same, yes. @romseygeek might be in the best position to confirm though.