Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12963

Remote assistant, fallback to fulltext search when keyword has not been found

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.8.0
    • 4.6.2
    • Tools: Assistant
    • None
    • 7aec069a0edee1593e8bdb60995609edc18b2574

      It would be a nice faeture if assistant would do a fulltext search after remotely searching for a keyword (with "activateKeyword" command) that does not exist. Currently, the "index" string is set (resulting in an empty set for an unknown keyword) but otherwise there is no visual feedback. If the index tab is not active, the user will not notice that something has happened.

      Attached is a patch against Qt 4.6.2 which does the following:

      • Indoducing a new assistant specific tag in qhcp <assistant></assistant> section named "enableSearchFallback"
      • The tag supports the attribute "fieldName" which accepts "DEFAULT", "FUZZY", ... (string representation of enum QHelpSearchQuery::FieldName)
      • search fallback is disabled by default, default fieldName is "DEFAULT"
      • if fallback is enabled, search tab will be activated if a keyword can not be found and searchEngine is used to search

      If a keyword cannot be found and if search does not find anything either, user is now presented with "Your search did not match any documents." Existing tabs showing documentation are not modified.
      One little problem exists, though. It does not seem to be possible to modify the text input field in the query widget. At least, previously set query strings should be cleared somehow to avoid confusion.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            heimrich Karsten Heimrich
            gordin Christoph Vogtländer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes