Skip to content

search: add alias annotation to fields in query terms

Administrator requested to merge rvt/transformer-alias into main

Created by: rvantonder

Stacked on https://github.com/sourcegraph/sourcegraph/pull/26463.

This adds a label that annotates whether a query term is qualified by an aliased field (content for patterns, r for repo, etc). This is useful in a context where I'd like to do certain things when patterns are qualified by content:... on the compute endpoint (e.g., detect a predicate like content:replace(...)) and until now that sort of information hasn't been relevant for search.

Merge request reports

Loading