Hello Adam Serafini,

I found my problem disappeared by set only 1 SortExpressions to expressions
of SortOptions...

.....
expressions = [
search.SortExpression(expression='custom_sort_field',
default_value='',
direction=search.SortExpression.ASCENDING),
# search.SortExpression(expression='doc_id',
# default_value='',
# direction=search.SortExpression.ASCENDING),
]
sort_options = search.SortOptions(expressions=expressions,
limit=MAX_NUM_OF_SORTING_DOC)
.....

If you set multiple expressions, try to set single item to expressions.

Thank you!

Akitoshi Abe


2013/3/12 Adam Serafini <[email protected]>

> I've got exactly the same problem:
>
>
>    1.
>
>    Search failed!
>    Traceback (most recent call last):
>      File 
> "/base/data/home/apps/s~cbfwmentoring-auth-hrd/25-14.365629551018880596/cbfw/admin/search.py",
>  line 44, in search_users
>        return index.search(query)
>      File 
> "/base/python_runtime/python_lib/versions/1/google/appengine/api/search/search.py",
>  line 3095, in search
>        _CheckStatus(response.status())
>      File 
> "/base/python_runtime/python_lib/versions/1/google/appengine/api/search/search.py",
>  line 480, in _CheckStatus
>        raise _ERROR_MAP[status.code()](status.error_detail())
>    InvalidRequest: Failed to execute search request " NOT status:(applying OR 
> rejected OR "dropped out" OR alumni OR "alumni rejected")"
>
>    2. E2013-03-12 04:16:57.409
>
>    Traceback (most recent call last):
>      File 
> "/base/data/home/apps/s~cbfwmentoring-auth-hrd/25-14.365629551018880596/appogee/base.py",
>  line 92, in handle_request
>        getattr(self, method_name)() #gets the do_get or do_post, returns it 
> as an object and then executes it
>      File 
> "/base/data/home/apps/s~cbfwmentoring-auth-hrd/25-14.365629551018880596/cbfw/admin/search.py",
>  line 20, in do_get
>        matrix = self.get_results_matrix(results)
>      File 
> "/base/data/home/apps/s~cbfwmentoring-auth-hrd/25-14.365629551018880596/cbfw/admin/search.py",
>  line 51, in get_results_matrix
>        for document in results:
>    TypeError: 'NoneType' object is not iterable
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to