Bug 93664

Summary: Add Builtin Help Center Search Facility Indexer
Product: [Applications] khelpcenter Reporter: Ian Ventura-Whiting <ian>
Component: generalAssignee: Documentation Editorial Team <kde-doc-english>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 3.3.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ian Ventura-Whiting 2004-11-21 13:45:11 UTC
Version:           3.3.1 (using KDE KDE 3.3.1)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) -mcpu=athlon-xp -O3 -pipe
OS:                Linux

Due to all the help indexing issues (they are still current - check both kde and gentoo forums) the help facility should include its own help indexing facility.

How about something similar to microsoft's help facility that lets you browse the help (just like you can already do on KDE), but when you click on search you get asked if you would like to build a search index. 

Changing the search index once it has already been created could be done from the settings menu.

Please, please, please implement this feature with a progress bar or something so that we know it is actually doing something (since it could take some time).

This would be a really useful feature that many people would appreciate.
Comment 1 Sebastian Held 2005-03-18 11:48:39 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 Alastair Mailer 2006-09-20 15:55:34 UTC
*** And it's still here folks... ***
Comment 3 Pino Toscano 2016-03-12 23:06:10 UTC
Git commit 583ed246c75ce2c686957b6e1dc34aaed31206b4 by Pino Toscano.
Committed on 12/03/2016 at 23:01.
Pushed by pino into branch 'master'.

Add Xapian support for indexing and searching

Start using Xapian for indexing and searching the documentation: it
works much better than htp://dig, it provides a C++ API, and it is well
maintained.

Introduce two helper tools to create/update an index, and search on it,
starting from the cache.bz2 files generated by meinproc: this way it is
possible to index the whole text, with the entities already expanded
(something which would not be there when parsing the docbook files
directly). Make use of libxml2 to parse the HTML documents, and get all
the text in them.

Xapian and libxml2 are currently considered as mandatory dependencies:
they are portable, generally available everywhere, and not requiring
themselves too many extra dependencies.
Related: bug 126710, bug 103266, bug 115935, bug 122437, bug 125276, bug 152671, bug 158633, bug 209415, bug 256397, bug 266290

M  +13   -0    CMakeLists.txt
M  +35   -0    searchhandlers/CMakeLists.txt
A  +134  -0    searchhandlers/cachereader.cpp     [License: GPL (v2+)]
A  +49   -0    searchhandlers/cachereader.h     [License: GPL (v2+)]
A  +107  -0    searchhandlers/htmltextdump.cpp     [License: GPL (v2+)]
A  +29   -0    searchhandlers/htmltextdump.h     [License: GPL (v2+)]
A  +5    -0    searchhandlers/xapian.desktop.cmake
A  +126  -0    searchhandlers/xapiancommon.cpp     [License: GPL (v2+)]
A  +50   -0    searchhandlers/xapiancommon.h     [License: GPL (v2+)]
A  +269  -0    searchhandlers/xapianindexer.cpp     [License: GPL (v2+)]
A  +151  -0    searchhandlers/xapiansearch.cpp     [License: GPL (v2+)]

http://commits.kde.org/khelpcenter/583ed246c75ce2c686957b6e1dc34aaed31206b4
Comment 4 Pino Toscano 2016-03-12 23:26:18 UTC
Git commit cafde04221d0f0d20b042f9afcf63669f23b7a1d by Pino Toscano.
Committed on 12/03/2016 at 23:02.
Pushed by pino into branch 'master'.

Re-enable the full-index search

Now that
- Xapian is in place for indexing and searching
- ht://dig is removed
- indexes are updated automatically each startup
we can enable the full-index search again.
Related: bug 57897, bug 103266, bug 112958, bug 115935, bug 161514, bug 173767, bug 207519, bug 222494, bug 237329, bug 266290, bug 269260, bug 269619

M  +1    -3    navigator.cpp

http://commits.kde.org/khelpcenter/cafde04221d0f0d20b042f9afcf63669f23b7a1d