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

Update semantic_text query to use highlighting option #205795

Merged
merged 14 commits into from
Jan 17, 2025

Conversation

saikatsarkar056
Copy link
Contributor

@saikatsarkar056 saikatsarkar056 commented Jan 7, 2025

This PR addresses this issue by replacing the current semantic_text implementation, which uses inner_hit, with semantic_text highlighting.

Screen.Recording.2025-01-10.at.1.35.06.PM.mov

@saikatsarkar056 saikatsarkar056 requested a review from a team as a code owner January 7, 2025 18:11
@saikatsarkar056 saikatsarkar056 marked this pull request as draft January 7, 2025 18:11
@saikatsarkar056 saikatsarkar056 force-pushed the playground_semantic_query branch from cda8a3d to 368a0c0 Compare January 7, 2025 18:14
@saikatsarkar056 saikatsarkar056 self-assigned this Jan 7, 2025
@saikatsarkar056 saikatsarkar056 added v8.18.0 Team:EnterpriseSearch backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes v9.0.0 labels Jan 7, 2025
@saikatsarkar056 saikatsarkar056 force-pushed the playground_semantic_query branch 2 times, most recently from 6dae019 to 1f132d5 Compare January 7, 2025 19:31
@joemcelroy
Copy link
Member

This looks good so far! Theres likely going to be a number of units failing for this so need to run the test suite for this and fix the snapshots.

@saikatsarkar056 saikatsarkar056 force-pushed the playground_semantic_query branch 5 times, most recently from acb6955 to bc2976c Compare January 9, 2025 22:05
@saikatsarkar056 saikatsarkar056 marked this pull request as ready for review January 10, 2025 02:54
@saikatsarkar056 saikatsarkar056 force-pushed the playground_semantic_query branch from bc2976c to 2000496 Compare January 10, 2025 18:50
@saikatsarkar056 saikatsarkar056 enabled auto-merge (squash) January 10, 2025 20:26
@joemcelroy
Copy link
Member

@elasticmachine merge upstream

@joemcelroy joemcelroy enabled auto-merge (squash) January 17, 2025 17:12
@joemcelroy joemcelroy merged commit 575d57e into elastic:main Jan 17, 2025
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12834959401

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
searchPlayground 258.7KB 258.4KB -253.0B

History

cc @saikatsarkar056

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 17, 2025
This PR addresses [this
issue](elastic/search-team#8928) by replacing
the current semantic_text implementation, which uses inner_hit, with
semantic_text highlighting.

https://github.com/user-attachments/assets/bac8abf7-ec50-4463-b0ad-d3152872253a

---------

Co-authored-by: Joseph McElroy <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 575d57e)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jan 17, 2025
…#207125)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Update semantic_text query to use highlighting option
(#205795)](#205795)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Saikat
Sarkar","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-17T18:42:15Z","message":"Update
semantic_text query to use highlighting option (#205795)\n\nThis PR
addresses
[this\r\nissue](elastic/search-team#8928) by
replacing\r\nthe current semantic_text implementation, which uses
inner_hit, with\r\nsemantic_text
highlighting.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/bac8abf7-ec50-4463-b0ad-d3152872253a\r\n\r\n---------\r\n\r\nCo-authored-by:
Joseph McElroy <[email protected]>\r\nCo-authored-by: Elastic
Machine
<[email protected]>","sha":"575d57e8fa7c75e1cf5549c839acb5a7d901611a","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:EnterpriseSearch","backport:prev-minor","v8.18.0"],"title":"Update
semantic_text query to use highlighting
option","number":205795,"url":"https://github.com/elastic/kibana/pull/205795","mergeCommit":{"message":"Update
semantic_text query to use highlighting option (#205795)\n\nThis PR
addresses
[this\r\nissue](elastic/search-team#8928) by
replacing\r\nthe current semantic_text implementation, which uses
inner_hit, with\r\nsemantic_text
highlighting.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/bac8abf7-ec50-4463-b0ad-d3152872253a\r\n\r\n---------\r\n\r\nCo-authored-by:
Joseph McElroy <[email protected]>\r\nCo-authored-by: Elastic
Machine
<[email protected]>","sha":"575d57e8fa7c75e1cf5549c839acb5a7d901611a"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205795","number":205795,"mergeCommit":{"message":"Update
semantic_text query to use highlighting option (#205795)\n\nThis PR
addresses
[this\r\nissue](elastic/search-team#8928) by
replacing\r\nthe current semantic_text implementation, which uses
inner_hit, with\r\nsemantic_text
highlighting.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/bac8abf7-ec50-4463-b0ad-d3152872253a\r\n\r\n---------\r\n\r\nCo-authored-by:
Joseph McElroy <[email protected]>\r\nCo-authored-by: Elastic
Machine
<[email protected]>","sha":"575d57e8fa7c75e1cf5549c839acb5a7d901611a"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Saikat Sarkar <[email protected]>
cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Jan 21, 2025
This PR addresses [this
issue](elastic/search-team#8928) by replacing
the current semantic_text implementation, which uses inner_hit, with
semantic_text highlighting.


https://github.com/user-attachments/assets/bac8abf7-ec50-4463-b0ad-d3152872253a

---------

Co-authored-by: Joseph McElroy <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
viduni94 pushed a commit to viduni94/kibana that referenced this pull request Jan 23, 2025
This PR addresses [this
issue](elastic/search-team#8928) by replacing
the current semantic_text implementation, which uses inner_hit, with
semantic_text highlighting.


https://github.com/user-attachments/assets/bac8abf7-ec50-4463-b0ad-d3152872253a

---------

Co-authored-by: Joseph McElroy <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants