Skip to content

Abstract ordering clause of query builder and implement BM25 support on top of it#2

Open
absurdfarce wants to merge 2 commits into
4191-preview1from
bm25_support
Open

Abstract ordering clause of query builder and implement BM25 support on top of it#2
absurdfarce wants to merge 2 commits into
4191-preview1from
bm25_support

Conversation

@absurdfarce
Copy link
Copy Markdown
Owner

This PR first consolidates handling of column ordering into an OrderingClause type and re-implements existing orderings using that type. We then demonstrate how this implementation can be used to implement custom orderings, specifically the BM25 ordering provided by Astra.


/**
* Retrieve the current {@link OrderingClause} as a {@link ColumnsOrderingClause} if it exists and
* is an instance of this class, Otherwise create a new one.
Copy link
Copy Markdown

@tatu-at-datastax tatu-at-datastax Jul 18, 2025

Choose a reason for hiding this comment

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

So this means that if there is an existing custom-type OrderingClause, that is dropped?

I assume it is ok wrt ANN and BM25 as they cannot be combined with "regulard" ORDER BY clauses but could maybe hide issues?

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