(self, query_obj)
| 67 | input_type_name = "exact" |
| 68 | |
| 69 | def prepare(self, query_obj): |
| 70 | query_string = super().prepare(query_obj) |
| 71 | |
| 72 | if self.kwargs.get("clean", False): |
| 73 | # We need to clean each part of the exact match. |
| 74 | exact_bits = [ |
| 75 | Clean(bit).prepare(query_obj) for bit in query_string.split(" ") if bit |
| 76 | ] |
| 77 | query_string = " ".join(exact_bits) |
| 78 | |
| 79 | return query_obj.build_exact_query(query_string) |
| 80 | |
| 81 | |
| 82 | class Not(Clean): |