Skip to content

Fix sorting of composite index fields - #301

Merged
JonoPrest merged 1 commit into
mainfrom
jp/fix-composite-index-ordering
Oct 28, 2024
Merged

Fix sorting of composite index fields#301
JonoPrest merged 1 commit into
mainfrom
jp/fix-composite-index-ordering

Conversation

@JonoPrest

Copy link
Copy Markdown
Collaborator

Closes #221

@JonoPrest
JonoPrest requested review from DZakh and JasoonS October 28, 2024 09:23
@JonoPrest
JonoPrest force-pushed the jp/fix-composite-index-ordering branch from 2abed86 to 663f24d Compare October 28, 2024 09:52

impl MultiFieldIndex {
fn new(field_names: Vec<String>) -> Self {
Self(field_names.into_iter().sorted().collect())

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This shouldn't have been sorted.

@JonoPrest
JonoPrest merged commit d720eea into main Oct 28, 2024
@JonoPrest
JonoPrest deleted the jp/fix-composite-index-ordering branch October 28, 2024 11:40
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.

Composite indexes do not retain order

2 participants