opensearch-project/neural-search

[FEATURE] Better handle the behavior diff for semantic highlight sing vs batch

开放

#1,813 创建于 2026年3月27日

 (0 条评论) (0 个反应) (0 位负责人)Java (124 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (116 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Is your feature request related to a problem?

We have behavior diff between the semantic highlight using standard Highlight framework vs System generated search processor approach:

Standard Highlighter Framework:

  • Cannot support non-string fields
  • Fails early when encountering lists or objects - returns null and silently skips highlighting (Need to double confirm)

Batch Inference Processor Approach:

  • Can support non-string fields
  • Can handle lists and objects successfully (Need to double confirm)

The User Experience Gap:

Currently, when a user tries to highlight a field that's a list:

The standard approach silently returns null and skips highlighting (no feedback to user) The processor approach can actually highlight the list successfully

What solution would you like?

Rather than silently skipping, we should inform users when they attempt to highlight a list or object field using the standard approach. Should we try to throw an error(may not be easy to do this since we may fail in core before we get into the neural plugin) to let user know if they want to highlight non string field they can try the processor approach? Or we simply update the documentation to make this clear and let user figure it out by themselves?

What alternatives have you considered?

A clear and concise description of any alternative solutions or features you've considered.

Do you have any additional context?

Add any other context or screenshots about the feature request here.

贡献者指南