You can't do multiple prefix searches in a single query. The simplest
solution is to disable the relation index and create multiple search
indexes (one for every searchable property: "name", "date_of_birth",
etc.). Then, you can filter with "=" on those properties as if they
were StringListProperties. Since you only want prefix search that's
probably good enough. You should also split() the search strings, so
you can match multiple words via "startswith" ("d frank" would match
"Dan Frankowski").
Bye,
Waldemar Kornewald
--
Django on App Engine, MongoDB, ...? Browser-side Python? It's open-source:
http://www.allbuttonspressed.com/blog/django
--
You received this message because you are subscribed to the Google Groups "gae-search" group.
To post to this group, send email to gae-s...@googlegroups.com.
To unsubscribe from this group, send email to gae-search+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gae-search?hl=en.
Yes.
> Will a single call to
> show_search_results() search multiple such properties?
No it won't (there's no way to specify which GET key is associated
with which index). You'll have to define your own view (or extend the
existing one). There's also no way to call search() on an existing
query. That would have to be added to SearchIndexProperty.search() as
an optional keyword argument (so that is used instead of
self.model.all()).
Bye,
Waldemar