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

BUG: Query Loop Block does not order by score in FSE #2694

Closed
felipeelia opened this issue Mar 31, 2022 · 5 comments
Closed

BUG: Query Loop Block does not order by score in FSE #2694

felipeelia opened this issue Mar 31, 2022 · 5 comments
Assignees
Labels
bug Something isn't working wp-5.9 Issues related to WordPress 5.9, blocks and/or Full Site Editing (FSE)
Milestone

Comments

@felipeelia
Copy link
Member

Describe the bug

While using the new Twenty Twenty-Two theme, search results will always be ordered by date, instead of by Elasticsearch score.

@felipeelia felipeelia added bug Something isn't working wp-5.9 Issues related to WordPress 5.9, blocks and/or Full Site Editing (FSE) labels Mar 31, 2022
@felipeelia felipeelia added this to the 4.2.0 milestone Mar 31, 2022
@felipeelia
Copy link
Member Author

Issue opened in Gutenberg: WordPress/gutenberg#39285

@felipeelia
Copy link
Member Author

@oscarssanchez do you mind checking if this is still a problem?

@oscarssanchez
Copy link
Contributor

@felipeelia couldn't reproduce doing this:

1.- Create a post with title "test"
2.- Create a post with unrelated title and content "test"
3.- Using Twenty Twenty-Two theme search for "test"
4.- The post with title test comes first

@felipeelia
Copy link
Member Author

@oscarssanchez does it come first even when the post "test" has an old date?

@oscarssanchez
Copy link
Contributor

@felipeelia yes, I tested manually changing the date to a day before creation and it still did show up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wp-5.9 Issues related to WordPress 5.9, blocks and/or Full Site Editing (FSE)
Projects
None yet
Development

No branches or pull requests

5 participants