You are going to have lots of trouble with any index that contains the
same property more than once. Based on your index I am guessing you
are implementing search with a list property called
__searchable_text_index that contains a bunch of search terms are you
are doing an equality filter against that property. If I am wrong just
feel free to ignore the rest of this post.

On the dev server this will work fine no matter how many equality
filters you use in a single query however on the production server it
will require an index for each number of equality filters and the
production server will fail to create those indexes because it does
not seem to support an index with more than one entry for the same
property.

This is a little tricky. If you want to filter with multiple equality
filters on the same property like that you are not able to filter on
any other property or sort on any other property in the same query.

Multiple solutions for this have been found but none are perfect. The
search solution that I use is gae-search by Bill Katz:
http://www.billkatz.com/2009/6/Simple-Full-Text-Search-for-App-Engine

You still won't be able to have the sort inside the same query as the
filter, you will need to sort after you have fetched the results.

I hope that helps. Good luck.

- Bryce


On Apr 1, 9:55 am, hotwater <[email protected]> wrote:
> I have this error message :
>
> NeedIndexError: The index for this query is not ready to serve. See
> the Datastore Indexes page in the Admin Console.
>
> This query needs this index:
> - kind: POI
>   properties:
>   - name: __searchable_text_index
>   - name: __searchable_text_index
>   - name: date
>     direction: desc
> In the app engine admin page, Datastore Indexes showing
>
> __searchable_text_index , __searchable_text_index , date Error
>
> What is actually happpening and how do I solve the problem?
>
> Please help, if you would like to check on the live error please 
> visithttp://8.scoutearth.appspot.com/search?x=20&y=15&phrase=cafe+in+the+park

-- 
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.

Reply via email to