Closed Bug 1748757 Opened 2 years ago Closed 1 month ago

When only file / path results are returned, the 1000 result limit isn't mentioned, which can be confusing.

Categories

(Webtools :: Searchfox, defect)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jwatt, Unassigned)

Details

It seems like we don't display the "Number of results: 1000 (maximum is 1000)" response boilerplate generated by search.js in the UI when the results are only path results. We do enforce a hard cap of 1000 results on the search_files result but it's separate from the other work_limit logic and we don't really signal that the limit is hit.

Although I'm re-titling the subject here to be about the absence of context on result counts and limits (which I think we need to fix), I expect there are probably reasonable use-cases where we shouldn't be forcing a hard limit of 1000. I think the 1000 limit in this case is mainly a UX assumption that no one would actually want 1000 results and that they'd refine their search after seeing way too many results, plus wanting to avoid janking the browser by feeding it a huge file in a way that prevents the user from refining their search. In the case of file results here, router.py actually has all the results because all we did was shell out to a grep, whereas semantic results are a situation where we might potentially need to perform a lot of marginal additional work beyond 1000.

:jwatt, is your motivating use-case one where you would like more than 1000 results? I know I personally do like to use ctrl-f after getting the file list results because the latency for changing the search result feels large enough that it's faster to control-f, and I wouldn't be surprised if others felt the same way!

Flags: needinfo?(jwatt)
Summary: ** in paths to not behaving as expected → When only file / path results are returned, the 1000 result limit isn't mentioned, which can be confusing.

(In reply to Andrew Sutherland [:asuth] (he/him) from comment #1)

Although I'm re-titling the subject here to be about the absence of context on result counts and limits (which I think we need to fix)

That seems to have been fixed BTW. The limit currently seems to be 4000.

:jwatt, is your motivating use-case one where you would like more than 1000 results? I know I personally do like to use ctrl-f after getting the file list results because the latency for changing the search result feels large enough that it's faster to control-f, and I wouldn't be surprised if others felt the same way!

Yes, I prefer that too. I also on occassion find that there is no good way to limit the search results returned, so prefer to get everything and filter things down a bit further using Firefox's Ctrl-f.

Flags: needinfo?(jwatt)

(In reply to Jonathan Watt [:jwatt] from comment #2)

(In reply to Andrew Sutherland [:asuth] (he/him) from comment #1)

Although I'm re-titling the subject here to be about the absence of context on result counts and limits (which I think we need to fix)

That seems to have been fixed BTW. The limit currently seems to be 4000.

Yeah, I fixed that in https://github.com/mozsearch/mozsearch/commit/64d88b7da25799c459ebacbfdfb43c95d9ec3294 as part of bug 1459188 last year. Resolving WFM.

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.