Skip to content

Highlight() does not take into account the index option expand_keywords=1 #3352

Open
@osipal

Description

@osipal

Bug Description:

When searching by part of a word, the entry is found. But in the HIGHLIGHT() block, the found word is not highlighted

How to reproduce the bug:

DROP TABLE IF EXISTS tbl;
CREATE TABLE tbl(content text) min_infix_len = '2' expand_keywords = '1';
INSERT INTO tbl(content) VALUES('Something');
SELECT content, HIGHLIGHT() FROM tbl WHERE match('omet');

Return

content highlight()
Something Something

Expected

content highlight()
Something <b>Something</b>

Manticore Search Version:

9.2.14 23296c0f8@25032816

Operating System Version:

Ubuntu 22.04.5

Have you tried the latest development version?

None

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

  • Implementation completed
  • Tests developed
  • Documentation updated
  • Documentation reviewed

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions