Minor changes for testing.
This commit is contained in:
@@ -1598,7 +1598,7 @@ def get_account_id_w_for_type_id(
|
|||||||
def sql_fulltext_qry_part(
|
def sql_fulltext_qry_part(
|
||||||
fulltext_qry_dict: dict, # One or more key value pairs. key = field name; value = search string
|
fulltext_qry_dict: dict, # One or more key value pairs. key = field name; value = search string
|
||||||
) -> bool|dict:
|
) -> bool|dict:
|
||||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||||
log.debug(locals())
|
log.debug(locals())
|
||||||
|
|
||||||
# NOTE: Version 3 of the fulltext search
|
# NOTE: Version 3 of the fulltext search
|
||||||
@@ -1614,6 +1614,8 @@ def sql_fulltext_qry_part(
|
|||||||
for key, value in fulltext_qry_dict.items():
|
for key, value in fulltext_qry_dict.items():
|
||||||
log.debug(f'Key = {key}; Value = {value}')
|
log.debug(f'Key = {key}; Value = {value}')
|
||||||
fulltext_qry_dict_str.append(f'MATCH( {key} ) AGAINST( :ft_{key} IN BOOLEAN MODE )')
|
fulltext_qry_dict_str.append(f'MATCH( {key} ) AGAINST( :ft_{key} IN BOOLEAN MODE )')
|
||||||
|
# fulltext_qry_dict_str.append(f'MATCH( {key} ) AGAINST( :ft_{key} IN NATURAL LANGUAGE MODE )')
|
||||||
|
|
||||||
data[f'ft_{key}'] = value
|
data[f'ft_{key}'] = value
|
||||||
fulltext_qry_field_string = ' OR '.join(fulltext_qry_dict_str)
|
fulltext_qry_field_string = ' OR '.join(fulltext_qry_dict_str)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user