We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55525c4 commit 7ac4bf0Copy full SHA for 7ac4bf0
1 file changed
services/thing_helper.py
@@ -159,7 +159,9 @@ def get_db_things(
159
type_sim = func.coalesce(func.similarity(Thing.thing_type, clean_query), 0)
160
161
name_word_sim = func.coalesce(func.word_similarity(Thing.name, clean_query), 0)
162
- type_word_sim = func.coalesce(func.word_similarity(Thing.thing_type, clean_query), 0)
+ type_word_sim = func.coalesce(
163
+ func.word_similarity(Thing.thing_type, clean_query), 0
164
+ )
165
166
search_conditions = [
167
Thing.search_vector.op("@@")(
@@ -200,7 +202,7 @@ def get_db_things(
200
202
Contact.name.ilike(partial_query),
201
203
]
204
)
-
205
+
206
rank_expressions.extend(
207
[
208
contact_sim,
0 commit comments