quickwit-oss / quickwit-oss/quickwit
Doc processing error with an object mapping and null value
Open
@fatelei is already working on this.
Since Oct 10, 2023.
bug
good first issue
- Dominant language
- Rust
- Stars
- 11.7k
- Forks
- 597
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 37
Description
While indexing GH archive dataset, I got this error:
2023-07-20T07:24:14.984Z WARN quickwit_indexing::actors::doc_processor: error=ValueError("payload.pull_request.head.repo", "Expected an JSON Object, got null")
Here is the mapping:
doc_mapping:
field_mappings:
- name: id
type: text
- name: type
type: text
fast: true
- name: actor
type: object
field_mappings:
- name: login
fast: true
type: text
- name: payload
type: object
field_mappings:
- name: description
type: text
tokenizer: default
- name: pull_request
type: object
field_mappings:
- name: head
type: object
field_mappings:
- name: repo
type: object
field_mappings:
- name: description
type: text
tokenizer: default
I would expect that we just ignore the null value and still index the document.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.