diff --git a/jamesql/index.py b/jamesql/index.py index 1040537..a7bf731 100644 --- a/jamesql/index.py +++ b/jamesql/index.py @@ -927,6 +927,7 @@ def search(self, query: dict) -> List[str]: total = total.union(positions) if first_word_pos: + print(doc["title"]) doc["_score"] += (len(first_word_pos) + 1) * len(total) if field != "title_lower": @@ -1256,6 +1257,8 @@ def _run(self, query: dict, query_field: str) -> List[str]: .get("uuid", {}) ) + print(all_matches) + for word_index in range(0, len(words)): current_word = words[word_index] if word_index + 1 == len(words): @@ -1304,6 +1307,8 @@ def _run(self, query: dict, query_field: str) -> List[str]: current_word + " " + next_word ] = match_positions + print(all_match_positions) + if all_matches: matching_documents.extend( set.intersection(