Bug 150163 - Filter index search results to only show the most important keyword match from a single page, or a page title
Summary: Filter index search results to only show the most important keyword match fro...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: New-Help
  Show dependency treegraph
 
Reported: 2022-07-27 08:40 UTC by Mike Kaganski
Modified: 2022-08-05 15:10 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 Mike Kaganski 2022-07-27 08:40:18 UTC
For a test: go to the Calc help page [1], and type 'insert column' into its 'Index' search box.

The results look like this:

> == Calc ==
> insert columns -- protected sheet
> inserting -- columns
> inserting -- manual column breaks
> columns -- inserting
> spreadsheets -- inserting column breaks
> spreadsheets -- inserting columns
> column breaks -- inserting
> protected sheet -- insert columns

The problem is that these eight result entries collectively point to three different pages (e.g., "insert columns -- protected sheet" and "protected sheet -- insert columns" are the same, including pointing to the same fragment).

This becomes a bigger problem when the number of results grows larger, thus not fitting to one result page. One sees multiple links, but needs to list through them finding the same answer, that maybe hides the really helpful result to some Nth result page.

The search results should either show one most important keyword match (assuming that the keywords are listed in some order in pages), or simply provide the target page title (and again, give only one occurrence in the search results).

Indeed, when the links are different (say, point to different fragments inside the same page), it's OK to list them separately. In that case, the second approach (with the target page title) would not work without some combination with the anchor name (or simply have the result listed as "Page Title: keyword match" in this case).

[1] https://help.libreoffice.org/7.4/en-US/text/scalc/main0000.html?DbPAR=CALC