Bug 103265

Summary: Search of several words in man pages doesn't work
Product: [Applications] khelpcenter Reporter: Andrey Cherepanov <sibskull>
Component: generalAssignee: Documentation Editorial Team <kde-doc-english>
Status: RESOLVED FIXED    
Severity: normal CC: sitter
Priority: NOR    
Version: 3.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andrey Cherepanov 2005-04-05 09:01:26 UTC
Version:           3.4 (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
OS:                Linux (i686) release 2.4.26-01-NeTraverse-i686-SMP-64GB

When I try to search ONE word in man pages it work fine, but on search several words (such as 'list directory') no pages found. Why? 
On search by one word 'directory' a get 'dir - list directory contents'
This pages should be found and for search 'list directory'.
Comment 1 Harald Sitter 2008-08-18 11:13:44 UTC
By search you mean the KHC search feature or the inline document search?
Comment 2 Pino Toscano 2016-03-13 09:09:41 UTC
Git commit 47193641a8ccce758ba82449b7e96dc092c3a9ce by Pino Toscano.
Committed on 13/03/2016 at 09:01.
Pushed by pino into branch 'master'.

Improve man search

Improve the helper script for performing the search on man pages:
- pass the language and the search method (and/or) to it
- use an array to compose the command line of apropos
- pass the language to apropos
- if the search method is "and", pass --and to apropos (its default is
  like "or)
- split the search string by "+"; it is a kludge, but needed due to the
  internal handling of search in khelpcenter currently

M  +22   -3    searchhandlers/khc_mansearch.pl
M  +1    -1    searchhandlers/man.desktop.cmake

http://commits.kde.org/khelpcenter/47193641a8ccce758ba82449b7e96dc092c3a9ce