Open Bug 1414954 Opened 7 years ago Updated 2 years ago

Add query operator for getting certain lines of context

Categories

(Webtools :: Searchfox, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

People

(Reporter: billm, Unassigned)

References

Details

Attachments

(1 file)

It would be great to be able to have something like grep's -C, -A, and -B options. It could be in the query syntax.
See bug 771000 for rationale.
See Also: → 771000
Flags: needinfo?(bugmail)

(In reply to Mathew Hodson from comment #3)

Is this fixed? The pull request was merged in https://github.com/mozsearch/mozsearch/commit/25db07bd556daa7b0b44b5e8617e48dcd14c343b

No, the PR was mainly for a proof-of-concept. It implemented support for fulltext search, but not any of the semantic analysis results. A real fix will likely want to build on bug 1707282 and migration from router.py to rust. The searchfox-tool mechanism has a(n imperfect) mechanism for excerpting HTML which could be used, etc.

(That said, I would have closed the bug and followed a file-up if there had been a Phabricator review, as it does get messy for m-c otherwise.)

Flags: needinfo?(bugmail)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: