Skip to content

Query: Adds LINQ extension method for ORDER BY RANK, FullTextScore and RRF #4993

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

Merged
merged 24 commits into from
Apr 30, 2025

Conversation

leminh98
Copy link
Contributor

@leminh98 leminh98 commented Feb 3, 2025

Pull Request Template

Description

This PR adds extension methods for ORDER BY RANK, FullTextScore, and RRF to the LINQ extension method support.

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [] This change requires a documentation update

Closing issues

To automatically close an issue: closes #IssueNumber

@leminh98 leminh98 added the auto-merge Enables automation to merge PRs label Feb 3, 2025
@adityasa
Copy link
Contributor

adityasa commented Apr 11, 2025

             && declaringType != typeof(CosmosLinqExtensions) /*OrderByRank*/)

Why is this check required, even though we had other functions in CosmosLinqExtensions before? #Resolved


Refers to: Microsoft.Azure.Cosmos/src/Linq/ExpressionToSQL.cs:1164 in 09fe0f2. [](commit_id = 09fe0f2, deletion_comment = False)

@leminh98
Copy link
Contributor Author

             && declaringType != typeof(CosmosLinqExtensions) /*OrderByRank*/)

the other extension type is all Enumerable, whereas the OrderByRank has a custom declration so we need to make an exception


In reply to: 2797948570


Refers to: Microsoft.Azure.Cosmos/src/Linq/ExpressionToSQL.cs:1164 in 09fe0f2. [](commit_id = 09fe0f2, deletion_comment = False)

adityasa
adityasa previously approved these changes Apr 29, 2025
Copy link
Contributor

@adityasa adityasa left a comment

Choose a reason for hiding this comment

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

:shipit:

adityasa
adityasa previously approved these changes Apr 29, 2025
Copy link
Contributor

@adityasa adityasa left a comment

Choose a reason for hiding this comment

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

:shipit:

@leminh98 leminh98 dismissed stale reviews from adityasa and kirankumarkolli via 687f0f5 April 29, 2025 19:38
Copy link
Contributor

@adityasa adityasa left a comment

Choose a reason for hiding this comment

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

:shipit:

@kirankumarkolli kirankumarkolli merged commit 7711480 into master Apr 30, 2025
26 checks passed
@kirankumarkolli kirankumarkolli deleted the users/leminh/FTRankLINQ branch April 30, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Enables automation to merge PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants