You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds support for `-json` to streaming search.
Events are split into individual results and written as JSON to stdout.
Each line contains 1 result with possibly many matches.
Copy file name to clipboardExpand all lines: cmd/src/search.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ Other tips:
55
55
explainJSONFlag=flagSet.Bool("explain-json", false, "Explain the JSON output schema and exit.")
56
56
apiFlags=api.NewFlags(flagSet)
57
57
lessFlag=flagSet.Bool("less", true, "Pipe output to 'less -R' (only if stdout is terminal, and not json flag).")
58
-
streamFlag=flagSet.Bool("stream", false, "Consume results as stream. Streaming search only supports a subset of flags and parameters: trace, insecure-skip-verify, display.")
58
+
streamFlag=flagSet.Bool("stream", false, "Consume results as stream. Streaming search only supports a subset of flags and parameters: trace, insecure-skip-verify, display, json.")
59
59
display=flagSet.Int("display", -1, "Limit the number of results that are displayed. Only supported together with stream flag. Statistics continue to report all results.")
0 commit comments