Check if the query contains an FTS (full-text search) condition. Returns: bool: True if `fts` is set with a query_string or match_string.
(self)
| 105 | return self.vector is not None and len(self.vector) > 0 |
| 106 | |
| 107 | def has_fts(self) -> bool: |
| 108 | """Check if the query contains an FTS (full-text search) condition. |
| 109 | |
| 110 | Returns: |
| 111 | bool: True if `fts` is set with a query_string or match_string. |
| 112 | """ |
| 113 | if self.fts is not None: |
| 114 | return bool(self.fts.query_string) or bool(self.fts.match_string) |
| 115 | return False |
| 116 | |
| 117 | def _validate(self) -> None: |
| 118 | if self.field_name is None: |
no outgoing calls