]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/api/search/query_analyzer_factory.py
do not run near queries on qualifier words
[nominatim.git] / nominatim / api / search / query_analyzer_factory.py
index 35649d0ffe4cb544daf5a07a0df17ebbfe159d81..bbc1eb6b1d787c483fc8086912279afda0a53b1a 100644 (file)
@@ -30,6 +30,15 @@ class AbstractQueryAnalyzer(ABC):
         """
 
 
+    @abstractmethod
+    def normalize_text(self, text: str) -> str:
+        """ Bring the given text into a normalized form. That is the
+            standardized form search will work with. All information removed
+            at this stage is inevitably lost.
+        """
+
+
+
 async def make_query_analyzer(conn: SearchConnection) -> AbstractQueryAnalyzer:
     """ Create a query analyzer for the tokenizer used by the database.
     """