Edgewall Software

Changes between Initial Version and Version 1 of SearchRefactoring


Ignore:
Timestamp:
May 30, 2007, 12:44:28 PM (17 years ago)
Author:
Christian Boos
Comment:

Description of the current search refactoring (0.11dev)

Legend:

Unmodified
Added
Removed
Modified
  • SearchRefactoring

    v1 v1  
     1= Search Refactoring =
     2
     3One of the complaints I've heard regularly about Trac was it's not so useful search module.
     4The usual answer was that we have nice ideas and plans for an AdvancedSearch, at some point in the future ([milestone:1.0]?).
     5
     6But nevertheless, there are some simple steps that could be taken to incrementally improve the current situation, changes that don't require any kind of big redesign.
     7
     8== Issues ==
     9=== Ranking ===
     10
     11The current situation is simply to find all the resources matching all the given search terms. It's either hit or miss, and the results are sorted in chronological order, most recent item first.
     12
     13There are two things that could be done quite easily:
     14 - give more importance to the resources that have many hits
     15 - let the search source increase the relevance of a match if the match happens in some "search sensitive" area, like the summary or the keywords associated to that resource
     16
     17While useful, the chronological ordering would gain to be replaced by a more useful relevance ordering, highest ranking results first.
     18
     19=== Reuse of results ===
     20When you're searching for some tickets, you sometimes want to be able to restrict your search to either the opened or the closed tickets, or according to some other constraints on tickets. Since [milestone:0.10] (#2859), closed tickets are shown using the usual strike-through style and this is already helpful. But what would really be needed sometimes are the filtering capabilities of the ticket custom query module. In turn, it is inconvenient to start with a plain text search in the custom query.
     21This has been discussed in #1329 (and the alternative #4824).
     22
     23
     24=== Direct access to resources by their numbers ===
     25While there's always been the possibility to use the "quickjump" facility in the search page, by writing any kind of TracLinks in the search field to go directly to the resource referred to by the link, there has been nevertheless constant request for the possibility to find resources by their numbers (see #1268 and numerous duplicates: #1644, #2919, #3419, #3856). There's also the need to take special care of short numbers (#4398) which are wrongly disqualified as search terms.
     26
     27== Proposed Solutions ==
     28''(to be completed...)''
     29
     30Implemented so far:
     31 - log:sandbox/search-api-tmp
     32
     33
     34Other minor glitches:
     35 - #2561
     36 - #2530, which could be addressed in the FieldRefactoring branch
     37