hi,

How about adding a query filter on that field?  E.g., say this numeric
field is called 'ranking'.  Your query could include:
 ranking > 0
along with any other search terms. E.g. if you also want to look for the
word 'books', your query would look like:
 books ranking > 0

Then, define the sort expression to order on that field in ascending order.

On 12 September 2012 02:54, Jordi P.S. <[email protected]> wrote:

> Hello,
>
> I have a question concerning the SortExpression:
> I'd like to sort a list of documents in Ascending order. I'd like to avoid
> the 0 or negative values, which I'd put them at the end of the list. Is
> there a way to do it with a sort expression?
>
> Example list:  1 0 4 5 2
> Sorted list: 1 2 4 5 0
>
> Any idea?
>
> I'm thinking in something like: sortexpression="MAX_DOUBLE+field_name"
>
> Jordi.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/AlCFVki-VKsJ.
> 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.
>

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