apache / apache/lucene

Luke displays weird characters for binary payloads [LUCENE-9065]

Open
#10,107 0 comments 0 reactions 0 assignees View on GitHub
affects-version:8.3 legacy-jira-priority:Major module:luke type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

When payloads are binary, like short int, Luke displays some unreadable characters.

  ![Screenshot 2019-11-25 at 15.59.48.png](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-9065/Screenshot%202019-11-25%20at%2015.59.48.png)

Suggestion improvement: display the original byte string.

Another idea is to try to decode the string similarly to Solr's own decoder/encoder of string and numeric values (and show in a separate column).

 

@mocobeta FYI

---
Migrated from [LUCENE-9065](https://issues.apache.org/jira/browse/LUCENE-9065) by Dmitry Kan
Attachments: [Screenshot 2019-11-25 at 15.59.48.png](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-9065/Screenshot%202019-11-25%20at%2015.59.48.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the unreadable-character display in Luke with a binary payload, using the linked screenshot and issue description as the expected behavior reference. Locate the Luke code path that renders payload values; done means binary payloads are shown as their original byte string, with any decoded representation treated as a separate, clearly defined choice.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.