finally got it to really work by removing the - name
__searchable_text_index line from index.yaml

there sure seem to be a lot of "undocumented features" in this process

On Jan 22, 7:33 am, jones34 <ljw1...@gmail.com> wrote:
> Argh.  Spoke too soon.
>
> The deploy now _seems_ to work, but I still get the index not found
> error when I try to run the app on the server.
>
> ************** Here's the index.yaml:   ********************
> indexes:
> - kind: Note
>   properties:
>   - name: create_date_time
>     direction: desc
>   - name: __searchable_text_index
>
> ************** Here's the transcript from the upload:
> *******************
>
> *** Running appfg.py with the following flags:
>     --no_cookies --email=lawrence.wh...@deathrayresearch.com --passin
> update
> Scanning files on local disk.
> Initiating update.
> Password for lawrence.wh...@deathrayresearch.com: Cloning 4 static
> files.
> Cloning 3 application files.
> Closing update.
> Uploading index definitions.
> If deploy fails you might need to 'rollback' manually.
> The "Make Symlinks..." menu option can help with command-line work.
> *** appcfg.py has finished with exit code 0 ***
>
> *************** Here's the traceback I get: *******************
>
> Traceback (most recent call last):
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 498, in __call__
>     handler.get(*groups)
>   File "/base/data/home/apps/3323808/1.330880695773925261/main.py",
> line 46, in get
>     notes = notes_query.fetch(20)
>   File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 1378, in fetch
>     raw = self._get_query().Get(limit, offset)
>   File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 938, in Get
>     return self._Run(limit, offset)._Next(limit)
>   File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 887, in _Run
>     str(exc) + '\nThis query needs this index:\n' + yaml)
> NeedIndexError: no matching index found.
> This query needs this index:
> - kind: Note
>   properties:
>   - name: create_date_time
>     direction: desc
>
> ************ What's weird ************
> In the console I see two versions of each index........
>
> Entity and Indexes      Status
> Note
> __searchable_text_index ▲ , create_date_time ▼      Serving
> create_date_time ▼ , __searchable_text_index ▲      Serving
>
> I believe this is because I reversed the order they're listed in the
> index.yaml, but if they're there why aren't they being found?  Can I
> delete one of them somehow?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to