Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

tsquery_from_terms

codeintel.text.tsquery_from_terms

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Called by (1)
SymbolFileResolved by
_keywordretrieval.pythrough an import
Inside (1)
SymbolFileResolved by
texttext.pysame file
codeintel.text.tsquery_from_termsbackend/app/codeintel/text.py, lines 176–179Open source
def tsquery_from_terms(terms: list[str]) -> str:    """OR-query for to_tsquery('simple', …). Terms are already sanitised."""    safe = [t for t in terms if re.fullmatch(r"[a-z0-9]+", t)]    return " | ".join(safe)

What the index recorded

Signature
def tsquery_from_terms(terms: list[str]) -> str:
File
backend/app/codeintel/text.py
Lines
176–179
Parser
python-ast
Git blob
74781c9c047d5953611fd7634b2cf29e7661b895
Call sites
2 named, 0 resolved, 2 left unlinked
Outside this subset
1 more edges reach code outside the graph shown here

Read it on GitHub at this commit