Skip to content

Move Retriever Handling to Rewrite Phase#110641

Merged
jimczi merged 3 commits intoelastic:mainfrom
jimczi:retriever_rewrite_part0
Jul 10, 2024
Merged

Move Retriever Handling to Rewrite Phase#110641
jimczi merged 3 commits intoelastic:mainfrom
jimczi:retriever_rewrite_part0

Conversation

@jimczi
Copy link
Copy Markdown
Contributor

@jimczi jimczi commented Jul 9, 2024

This change moves the handling of the retriever to the rewrite phase.
It also adds validation of the search source builder after extracting the retriever into the source builder.
Relates #110482

This change moves the handling of the retriever to the rewrite phase. It also adds validation of the search source builder after extracting the retriever into the source builder.
Relates elastic#110482
@jimczi jimczi added >non-issue :Search/Search Search-related issues that do not fall into other categories v8.16.0 labels Jul 9, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Jul 9, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search (Team:Search)

Copy link
Copy Markdown
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

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

Thanks Jim

I think the type of an exeption users will get will change from "illegal_argument_exception" to "validation" exception, but it is not a big deal.

Copy link
Copy Markdown
Contributor

@pmpailis pmpailis left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @jimczi !

@jimczi jimczi merged commit 20071da into elastic:main Jul 10, 2024
@jimczi jimczi deleted the retriever_rewrite_part0 branch July 10, 2024 16:48
Copy link
Copy Markdown
Contributor

@javanna javanna left a comment

Choose a reason for hiding this comment

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

LGTM

tvernum pushed a commit that referenced this pull request Feb 25, 2025
This change moves the handling of the retriever to the rewrite phase. It also adds validation of the search source builder after extracting the retriever into the source builder.

Relates #110482
tvernum pushed a commit that referenced this pull request Feb 25, 2025
This change moves the handling of the retriever to the rewrite phase. It also adds validation of the search source builder after extracting the retriever into the source builder.

Relates #110482
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants