search: make sure we don't have indexes that are too long

This commit is contained in:
tleb
2021-09-28 01:44:15 +02:00
committed by Skia
parent a38ab57ddf
commit 12493cffca
+1 -1
View File
@@ -47,7 +47,7 @@ class UserIndex(indexes.SearchIndex, indexes.Indexable):
return "last_update"
def prepare_auto(self, obj):
return self.prepared_data["auto"].strip()
return self.prepared_data["auto"].strip()[:245]
class IndexSignalProcessor(signals.BaseSignalProcessor):