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

Issue with rank_features field when updating document #119381

Open
vinodkotagiri opened this issue Dec 31, 2024 · 1 comment
Open

Issue with rank_features field when updating document #119381

vinodkotagiri opened this issue Dec 31, 2024 · 1 comment
Labels
:Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch

Comments

@vinodkotagiri
Copy link

i have an index with a field rank_features, and i ingested documents to that index, when i am tring to update any field other than the field with rank_feature, I am getting this error
Error updating documents: ResponseError: document_parsing_exception: [document_parsing_exception] Reason: [1:2658] failed to parse: [rank_features] fields do not support indexing multiple values for the same rank feature [ml_text.tokens.copyright] in the same document
at onBody (/app/node_modules/@elastic/elasticsearch/lib/Transport.js:375:23)
at IncomingMessage.onEnd (/app/node_modules/@elastic/elasticsearch/lib/Transport.js:299:11)
at IncomingMessage.emit (events.js:412:35)
at IncomingMessage.emit (domain.js:475:12)
at endReadableNT (internal/streams/readable.js:1333:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21) {
meta: {
body: { error: [Object], status: 400 },
statusCode: 400,
headers: {
'content-length': '659',
'content-type': 'application/json',
'x-cloud-request-id': 'HLxoyyIoRRiyz2T7eif1Rw',
'x-elastic-product': 'Elasticsearch',
'x-found-handling-cluster': '10d5d33851874436885b4939d3b5212d',
'x-found-handling-instance': 'instance-0000000005',
date: 'Tue, 24 Dec 2024 08:42:01 GMT'
},
meta: {
context: null,
request: [Object],
name: 'elasticsearch-js',
connection: [Object],
attempts: 0,
aborted: false
}
}
}
null

But when i change the rank_features to sparse_vector it is woking fine.

@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Dec 31, 2024
@tvernum tvernum added :Search Relevance/Search Catch all for Search Relevance and removed needs:triage Requires assignment of a team area label labels Jan 2, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jan 2, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

3 participants