(
field: Term, value: Term | str, field_is_vector: bool = False
)
| 46 | |
| 47 | |
| 48 | def postgres_search( |
| 49 | field: Term, value: Term | str, field_is_vector: bool = False |
| 50 | ) -> SearchCriterion: |
| 51 | query = value if isinstance(value, Term) else PlainToTsQuery(ValueWrapper(value)) |
| 52 | return SearchCriterion(field, expr=query, vectorize=not field_is_vector) |
| 53 | |
| 54 | |
| 55 | class BasePostgresExecutor(BaseExecutor): |
nothing calls this directly
no test coverage detected
searching dependent graphs…