quickwit
quickwit copied to clipboard
Search Query will not get the field value when index field type is bytes.
Describe the bug Quickwit version: 0.3.1 Query will not get the field value when index field type is bytes.
Steps to reproduce (if applicable) Steps to reproduce the behavior:
- Config a index that has bytes field.
- Ingest data in the index
- search index value like this: quickwit index search --index xxx --query "*"
- The bytes field value will not returned.
After reviewing the code, I find the problem is occured here:
we got a json array type value from tantivy, but the field type is set to json string type when do config mapping operation.
Expected behavior Return the base64 encoded field value.
Configuration: Please provide: quickwit version: 0.3.1
Thanks @geek-frio for the report.
I just opened an issue on tantivy side as documents are first serialized into json at the leaf search level when we call fetch_docs
function. At this level, we just used tantivy schema.to_json
method to serialize a tantivy document.
It is only at the root level that we use the doc mapper to convert a flat json object into a json object that follows the structure described in the doc mapping.
@geek-frio We've just merged #2093 which should fix your issue. We now return the base64 encoded value. Sorry for the delay.
I'm closing this now, feel free to reopen if you still have a bug on this.