Result mode – line #12
Labels
acceptance: go ahead
Reviewed, implementation can start
area: result
Improvements in query result reporting
help wanted
External contributions welcome
type: feature
New feature or request
Milestone
Is your feature request related to a problem? Please describe.
The current implementation focuses on quickly returning locations of matches. The output is not human-readable though – we either get an aggregate of the number of hits or byte values. A first attempt at getting something that could be used as a simple CLI query tool (without focusing on massive datasets, or considering sparse results) would be to output the line number and the line at which a match is made.
Describe the solution you'd like
The implementation should be completely outside of the engine itself – we don't want it to influence the throughput of the main solution in any way. This is already achieved with the
QueryResult
trait.As an example output, if I try to run the query
$.a..c
on the document:we expect to get an output resembling
Additional context
This obviously only makes sense for non-compressed JSON documents, but that's not something we can easily influence.
The text was updated successfully, but these errors were encountered: