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

LUCENE-9956: Make getBaseQuery, getDrillDownQueries API from DrillDownQuery public #138

Merged
merged 7 commits into from
Jun 1, 2021

Conversation

gautamworah96
Copy link
Contributor

@gautamworah96 gautamworah96 commented May 13, 2021

Description

It would be great if users could access the baseQuery of a DrillDownQuery. I think this can be useful for folks who want to access/test the clauses of a BooleanQuery (for example) after they've already wrapped it into a DrillDownQuery.
Currently the Query getBaseQuery() method is package private by default.
Based on comments from Greg Miller in the JIRA ticket, I decided to expose getDrillDownQueries as well

Solution

Change the method signature to public

Tests

Not added

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Lucene maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.

@gautamworah96 gautamworah96 changed the title Lucene 9956 Make getBaseQuery, getDrillDownQueries API from DrillDownQuery public Lucene-9956 Make getBaseQuery, getDrillDownQueries API from DrillDownQuery public May 13, 2021
@gautamworah96 gautamworah96 changed the title Lucene-9956 Make getBaseQuery, getDrillDownQueries API from DrillDownQuery public LUCENE-9956: Make getBaseQuery, getDrillDownQueries API from DrillDownQuery public May 13, 2021
.. and need to be rebuilt.
Rebuild only those dimensions when the user calls getDrillDownQueries
Copy link
Contributor

@gsmiller gsmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gautamworah96! I like your approach with the Set. I left a few comments but nothing too major.

@gautamworah96 gautamworah96 requested a review from gsmiller June 1, 2021 00:15
@gsmiller
Copy link
Contributor

gsmiller commented Jun 1, 2021

Looks great. Thanks @gautamworah96!

@gsmiller gsmiller merged commit 27b009c into apache:main Jun 1, 2021
@gautamworah96 gautamworah96 deleted the LUCENE-9956 branch June 1, 2021 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants