Skip to content

Conversation

@Mikep86
Copy link
Contributor

@Mikep86 Mikep86 commented Nov 21, 2024

Addresses #117258

@Mikep86 Mikep86 added >bug :SearchOrg/Relevance Label for the Search (solution/org) Relevance team v9.0.0 v8.17.0 v8.15.5 v8.16.2 labels Nov 21, 2024
@elasticsearchmachine
Copy link
Collaborator

Hi @Mikep86, I've created a changelog YAML for you.

Comment on lines +493 to +516
- do:
update:
index: test-in-object-index
id: doc_1
body:
doc: { "object.sparse_source_field": "sparse data 3", "object.dense_source_field": "dense data 3" }

- do:
get:
index: test-in-object-index
id: doc_1

- match: { _source.object.sparse_field.text: "sparse data 1" }
- length: { _source.object.sparse_field.inference.chunks: 3 }
- match: { _source.object.sparse_field.inference.chunks.1.text: "sparse data 2" }
- exists: _source.object.sparse_field.inference.chunks.1.embeddings
- match: { _source.object.sparse_field.inference.chunks.2.text: "sparse data 3" }
- exists: _source.object.sparse_field.inference.chunks.2.embeddings
- match: { _source.object.dense_field.text: "dense data 1" }
- length: { _source.object.dense_field.inference.chunks: 3 }
- match: { _source.object.dense_field.inference.chunks.1.text: "dense data 2" }
- exists: _source.object.dense_field.inference.chunks.1.embeddings
- match: { _source.object.dense_field.inference.chunks.2.text: "dense data 3" }
- exists: _source.object.dense_field.inference.chunks.2.embeddings
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Notice how the updated values for object.sparse_source_field and object.dense_source_field are appended instead of overwritten. This is because they are defined using a flat path instead of a nested path, resulting in a merged _source with both values:

{
  "object": {
    "sparse_source_field": "sparse data 2",
    "dense_source_field": "dense data 2",
  },
  "object.sparse_source_field": "sparse data 3",
  "object.dense_source_field": "dense data 3"
}

@Mikep86 Mikep86 added the auto-backport Automatically create backport pull requests when merged label Nov 22, 2024
@Mikep86 Mikep86 added v8.18.0 and removed v8.15.6 labels Nov 22, 2024
@Mikep86 Mikep86 marked this pull request as ready for review November 22, 2024 18:28
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-eng (Team:SearchOrg)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-relevance (Team:Search - Relevance)

@elasticsearchmachine
Copy link
Collaborator

Hi @Mikep86, I've updated the changelog YAML for you.

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

Labels

auto-backport Automatically create backport pull requests when merged >bug :SearchOrg/Relevance Label for the Search (solution/org) Relevance team v8.16.6 v8.17.0 v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants