Hi bernd,
You are correct, matching on two members of a list (which is how
Searchable works) requires the list property to be listed twice in the
index. One thing to watch out for, is that there is currently a limit
of 5000 index rows per entity (index row counts are described here:
http://code.google.com/appengine/docs/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes
) so if you have the same list property mutiple times in your index
your indexes may begin to explode.
Happy coding,
Jeff
On Nov 6, 2:30 am, dobee <[EMAIL PROTECTED]> wrote:
> if i do this to find any entities that match house and dog i do
>
> Searchable.all().filter('content_type =', 'something').filter('words
> =', 'house').filter('words =', 'dog'). order('c_time')
>
> is it right that i need an index for every number of words? so if i
> want to support searches for "cats dogs pets" i need an additional
> index?
>
> get_data failed no matching index found.
> This query needs this index:
> - kind: Searchable
> properties:
> - name: content_type
> - name: words
> - name: words
> - name: c_time
> direction: desc
>
> thx, in advance, bernd
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---