#103 0 search results with large number of glimpse results

Browsing (93)

when searching for a common word and glimpse is
returning a lot of results (more than maxhits) but a
file name was chosen to search for, lxr is returning 0
search result when the directory containing this file
wasn't reached at this point, although there is perhaps
only one search result in this particular file.

i think its caused by first searching _all_ files for
the word and than comparing it to the file name.

suggestion: when a file name is given, to use the
agrep-version of glimpse.


  • Malcolm Box

    Malcolm Box - 2009-03-26
    • assigned_to: nobody --> mbox
  • Andre-Littoz

    Andre-Littoz - 2012-01-29

    Code is already there but misplaced.

    Current implementation is: get results from glimpse and stuff it into an array up to $maxhits occurrences; when all results are collected, filter them using file name and edit.

    Better implementation: filter glimpse results as soon as they arrive and keep only those matching file name; when done, edit the results without re-filtering.

    Will be in 0.11 release.

  • Andre-Littoz

    Andre-Littoz - 2012-01-29
    • assigned_to: mbox --> ajlittoz
    • milestone: --> current_cvs
    • status: open --> closed-fixed

Log in to post a comment.