@@ -38,6 +38,7 @@ class LuceneTokenizer(QueryTokenizer, ANDLogicOperatorMixin):
3838":>" :OperatorType .GT ,
3939":<" :OperatorType .LT ,
4040":" :OperatorType .EQ ,
41+ "==" :OperatorType .EQ ,
4142 }
4243multi_value_operators_map :ClassVar [dict [str ,str ]]= {":" :OperatorType .EQ }
4344
@@ -61,7 +62,7 @@ class LuceneTokenizer(QueryTokenizer, ANDLogicOperatorMixin):
6162
6263multi_value_pattern = rf"""\((?P<{ ValueType .multi_value } >[:a-zA-Z\"\*0-9=+%#№;\-_\/\\'\,.$&^@!\(\[\]\s|]+)\)"""
6364multi_value_check_pattern = r"___field___\s*___operator___\s*\("
64- multi_value_delimiter_pattern = r"\s+OR\s+"
65+ multi_value_delimiter_pattern = r"\s+OR|or \s+"
6566
6667escape_manager = lucene_escape_manager
6768
@@ -77,7 +78,9 @@ def create_field_value(field_name: str, operator: Identifier, value: Union[str,
7778
7879@staticmethod
7980def clean_multi_value (value :str )-> str :
80- return value .strip ('"' )if value .startswith ('"' )and value .endswith ('"' )else value
81+ value = value .strip ('"' )if value .startswith ('"' )and value .endswith ('"' )else value
82+ value = value .replace ("\n " ,"" ).replace (" " ,"" )
83+ return value .strip ()
8184
8285def get_operator_and_value (# noqa: PLR0911
8386self ,match :re .Match ,mapped_operator :str = OperatorType .EQ ,operator :Optional [str ]= None