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

feat: Add a new search implementation #1984

Merged
merged 12 commits into from
Jan 18, 2024
Merged

Conversation

rchandnaeg
Copy link
Contributor

This PR changes how Elasticsearch queries get made from user queries.

At a high level, it keeps words together to do better than single-word query clauses when possible, more Elasticsearch clauses get generated, and the fields that get searched are restricted to avoid irrelevant matches.

There's also a toggle to the right of the search bar that allows users to revert to using the old search.

@rchandnaeg rchandnaeg requested a review from a team as a code owner January 16, 2024 16:22
packages/shared/src/search2.ts Show resolved Hide resolved
'description',
'name^3',
'fullName', // (index with simple analyzer?)
'tags',
Copy link
Contributor

Choose a reason for hiding this comment

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

I think tags should be boosted to ^2; if the user searches for a tag name, that's a pretty good signal that it's a match, even if they don't use #tag

Copy link
Contributor

@baumandm baumandm left a comment

Choose a reason for hiding this comment

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

🚀

@baumandm baumandm changed the title fix: search improvements feat: add a new search implementation Jan 18, 2024
@baumandm baumandm changed the title feat: add a new search implementation feat: Add a new search implementation Jan 18, 2024
@baumandm baumandm merged commit 02bd961 into ExpediaGroup:main Jan 18, 2024
3 checks passed
eg-oss-ci added a commit that referenced this pull request Jan 18, 2024
## [3.26.0](v3.25.23...v3.26.0) (2024-01-18)

### Features

* Add a new search implementation ([#1984](#1984)) ([02bd961](02bd961))

### Bug Fixes

* **deps:** bump @emotion/styled from 11.10.6 to 11.11.0 ([913aa38](913aa38))
* **deps:** bump follow-redirects from 1.15.2 to 1.15.4 ([570529f](570529f))
* **deps:** bump pino-http from 8.3.3 to 9.0.0 ([1884681](1884681))
* Fix attachment uploading issue caused by ES2022 spread operator ([87ae1d3](87ae1d3))
* Fix saving new avatars to a user profile ([420e134](420e134))
@eg-oss-ci
Copy link
Contributor

🎉 This PR is included in version 3.26.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants