Bug 124442 - Incorrect search results
Summary: Incorrect search results
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Find-Toolbar
  Show dependency treegraph
 
Reported: 2019-03-30 07:53 UTC by Jim Raykowski
Modified: 2023-03-31 16:32 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Raykowski 2019-03-30 07:53:17 UTC
Hi All,

Stumbled across this while doing some examples for bug 106723.

This seems to only happen when the search string is found at the beginning or end of a document and no other places in the document.

Steps to repro incorrect search result at end of a document:

1) Open a new document in Writer and enter "This is a sentence to test search not found bug"
2) Open the find toolbar Menu > View > Toolbars > Find or Ctrl+F
3) In the find text box enter "bug" without quotes
4) Click on the "Find Next" button
"Reached the end of the document" is displayed in the find bar message area and "bug" is selected in the document.
5) Click on the "Find Previous" button

Results: "Search key not found" is display in the find bar messages area.

Expected results: "Reached the begining of the document" should be displayed in the find bar message area as can be seen by clicking on "Find Previous" button after the incorrect "Search key not found" message is displayed.

Steps to repro incorrect search result at beginning of a document:

1) In the find text box enter "This" without quotes
2) Click on the "Find Previous" button
3) Click on the "Find Next" button

Results: "Search key not found" is display in the find bar messages area.

Expected results: "Reached the end of the document" should be displayed in the find bar message area as can be seen by clicking on "Find Next" button after the incorrect "Search key not found" message is displayed.


I repro back to version 5.2.8.0.0+
Comment 1 raal 2019-03-30 17:13:43 UTC
I can confirm with Version: 6.3.0.0.alpha0+
Build ID: 82463bdde75447d45e0cd6ed9ab579e0e51ea912
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 



It works as expected if word "bug" is not last word, even it works if spaces are after word "bug".
Comment 2 QA Administrators 2021-03-30 03:39:47 UTC Comment hidden (obsolete)
Comment 3 Roman Kuznetsov 2021-03-30 14:46:19 UTC
still repro in

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 78c33a4c3d1633b97049874305b3b49b820395a2
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded
Comment 4 QA Administrators 2023-03-31 03:29:22 UTC Comment hidden (obsolete)
Comment 5 Jim Raykowski 2023-03-31 16:32:49 UTC
Still exists in:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ced4a9221329b88484f90ab6d00d797f024585bb
CPU threads: 2; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded