[Lxr-dev] [ lxr-Bugs-1183103 ] 0 search results with large number of glimpse results
Brought to you by:
ajlittoz
|
From: SourceForge.net <no...@so...> - 2012-01-29 15:19:31
|
Bugs item #1183103, was opened at 2005-04-14 07:54 Message generated for change (Comment added) made by ajlittoz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1183103&group_id=27350 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Browsing >Group: current cvs >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Andre-Littoz (ajlittoz) Summary: 0 search results with large number of glimpse results Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Andre-Littoz (ajlittoz) Date: 2012-01-29 07:19 Message: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1183103&group_id=27350 |