[Bug 62668] New: Problems while using glimpse 4.17.0 for searching

George kde.mail at troot.demon.co.uk
Thu Aug 14 19:38:04 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=62668     
           Summary: Problems while using glimpse 4.17.0 for searching
           Product: kdevelop
           Version: 2.1.5
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: kde.mail at troot.demon.co.uk


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




More information about the KDevelop-devel mailing list