dan
unread,Jul 25, 2010, 3:13:24 PM7/25/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gae-search
I need a DateProperty to be searchable. The following change seems to
work for me. Will this change hurt me in some way I don't understand?
Dan
P.S. Yes, I know, you encourage django-nonrel instead. However, it
might take me hours to convert over. I'd have to change my models,
queries, then perhaps even convert data of an existing app. I want to
limp along with gae-search as long as I can.
$ svn diff src/search/core.py
Index: src/search/core.py
===================================================================
--- src/search/core.py (revision 203)
+++ src/search/core.py (working copy)
@@ -451,7 +451,7 @@
elif not isinstance(values, (list, tuple)):
values = (values,)
for value in values:
- index.extend(self.splitter(value, indexing=True,
language=language))
+ index.extend(self.splitter("%s" % value,
indexing=True, language=language))
if self.indexer:
index = self.indexer(index, indexing=True,
language=language)
# Sort index to make debugging easier