Bug 137179 - FIND cannot locate phrases containing an INDEX MARK
Summary: FIND cannot locate phrases containing an INDEX MARK
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
Depends on:
Blocks: Find-Search
  Show dependency treegraph
Reported: 2020-10-01 10:44 UTC by R. Green
Modified: 2021-08-14 17:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:

Writer file illustrating a problem with FIND and index marks (120.73 KB, application/vnd.oasis.opendocument.text)
2020-10-01 10:44 UTC, R. Green

Note You need to log in before you can comment on or make changes to this bug.
Description R. Green 2020-10-01 10:44:12 UTC
Created attachment 166000 [details]
Writer file illustrating a problem with FIND and index marks

Version: (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded

Open the attached Writer file. It contains a short (demonstration) Alphabeticsl Index at the back.

Notice the two types of index marks in the text: (1) LARGE INDEX MARK, spanning one or more words, indicating that the text in the shaded area is to be found in the index, VERBATIM. (2) SMALL INDEX MARK, at the beginning of words, indicating that the initially-highlighted "Entry" has been altered (in "Insert Index Entry) and can be found under a different word in the Index.

1. Place the cursor at the beginning of the document.
2. Open the Find toolbar. Enter "didn't bode" (this phrase occurs several times in the text). Press the "Find Next" arrow.

EXPECTED RESULT: The first occurence of "didn't bode" near the top of page 1 is highlighted.

ACTUAL RESULT: The first occurence of the phrase is missed – because it contains a SMALL index mark. This problem occurs for any search where the phrase contains a small index mark. NOTE: Text within LARGE index marks is not affected by the bug.
Comment 1 sivisolucangubresi 2020-10-28 21:04:52 UTC Comment hidden (spam)
Comment 2 Buovjaga 2021-07-27 11:48:12 UTC

Version: / LibreOffice Community
Build ID: 67e47070a7580a17804adce812cc2f98bfe7b51f
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: x11
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 3 Buovjaga 2021-08-14 17:34:45 UTC
Seen in 6.3, 5.0 bibisect repos and oldest of 43all repo. Assuming inherited.