Bug 62668 - Problems while using glimpse 4.17.0 for searching
Summary: Problems while using glimpse 4.17.0 for searching
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevelop
Classification: Applications
Component: doctreeview (show other bugs)
Version: 2.1.5
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-14 19:35 UTC by George
Modified: 2003-08-24 02:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George 2003-08-14 19:35:15 UTC
Version:           2.1.5 (using KDE 3.1.3)
Installed from:    compiled sources
Compiler:          gcc version 2.95.3 20010315 (release)
OS:          Linux (i686) release 2.4.19

Indexing runs properly, but nothing is found when searching.

After a bit of investigation, I found the following:

index is created as follows (kdevelop/setup/ccreatedocdatabasedlg.cpp)
  void CCreateDocDatabaseDlg::slotOkClicked()
    ...
    *m_proc <<  "find "+ dirs +" -name '*.html' | glimpseindex " +
                    size_str +" -F -X -H "+ locateLocal("appdata","");
    m_proc->start(KShellProcess::NotifyOnExit,KShellProcess::AllOutput);
    ...

index is read as follows (kdevelop/ckdevelop.cpp)
  void CKDevelop::slotHelpSearchText(QString text){
    ...
    search_process << "glimpse";
    search_process << "-H" << locateLocal("appdata", "");
    search_process << "-U" << "-c" << "-y" << "'" + text +"'";
    search_process.start(KShellProcess::NotifyOnExit,KShellProcess::AllOutput);
    ...


As a newcomer to KDE, first I read the manuals.

Then I tried using glimpse directly to search index using
the above options.  This also produced no output.

Next tried 'glimpse -H . -X -c -y', which produced results.

Manually rebuilt index, ommiting '-X' option from glimpseindex
command.  glimpse '-U' produced results, but not in useable format.

After further reading and experimentation, it seems that
the glimpse '-U' option, in ver 4.17.0 at least, no longer 
works when '-X' is used with glimpseindex.

Also, even when '-X' is being used with glimpse:

      Search String: 'QFTP'
      Title				Hits 
      An FTP client			0 
      QNetworkProtocol Class		0 
      Annotated Class Index		0 
      QFtp Class			0 
      Input/Output and Networking	0 
      ...

Not sure what to do about this...

Best regards,
George
Comment 1 Amilcar do Carmo Lucas 2003-08-15 11:11:43 UTC
 Sorry, KDevelop 2.x is no longer under development. 
 
You are strongly advised to update to the latest CVS version of KDevelop3, 
code name gideon, take a look at: 
http://www.kdevelop.org/index.html?filename=branches_compiling.html 
for all the details you need. If you find a problem or need help please send a 
mail to the mailing list: 
http://www.kdevelop.org/index.html?filename=mailinglist.html 
or drop us a line at the channel #kdevelop on the server irc.kde.org using 
ksirc, for example. 
Please use the CVS version and compile it yourself because that way you can 
easily patch it if a bug is found. 
 
KDevelop3 can open Develop2 projects. To do so, goto the "Project -> Open 
Project ... " and select 
"KDevelop 2 Project Files" in the "Filter:". 
You can have and run KDevelop3 and KDevelop2 at the same time on the same 
computer without any problems. 
So migrating is a breeze. :) 
 
P.S. : The KDevelop team closed over 337 reported and confirmed bugs since the 
release of the last KDevelop2.x 
 
Comment 2 Jens Dagerbo 2003-08-24 02:50:50 UTC
Gideon doesn't support glimpse, only htdig. Closing.