[google-appengine] Re: Using expressions/fields for Search API SortExpression default_value

2016-11-21 Thread 'George (Cloud Platform Support)' via Google App Engine
A field name is a string, so the default_value works as defined in the 
indicated 
document 
.
 
If you would like to propose a new feature, in this case related to the 
behavior of the SortExpression class, opening a separate thread is more 
effective. Your posting should provide structured proposals, covering all 
aspects of the envisaged feature, including for instance the desired 
treatment of the field value, and all important detail. 

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/99a59d5d-a20e-4119-9c1a-35a5c812dd33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Using expressions/fields for Search API SortExpression default_value

2016-11-16 Thread Bradley Mclain
>From my testing it only appears to accept text/numeric values and passing
it a field name will be interpreted as a string as opposed to the field
value.

On Wed, Nov 16, 2016 at 9:49 PM, Mihail Russu  wrote:

> Isn't that already the default behavior per docs
> 
> ?
>
> On Wednesday, November 16, 2016 at 5:17:31 AM UTC+2, Bradley Mclain wrote:
>>
>> search.SortExpression(
>>   expression="sort_field",
>>   direction=search.SortExpression.DESCENDING,
>>   default_value="default_field"
>> )
>>
>> In the event that sort_field is missing I would like it to use the value
>> from default_field instead.
>>
>> Is something like this possible?
>>
>>
>> --
> 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 google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/9d54bd3b-2bda-4d4c-a54d-
> 4895e9f1cc4c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAFzT3uEbLeNmSqB_%3DbYTV3cDp-YMu6NaWjCuW%3DyJtfiTSN-aBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Using expressions/fields for Search API SortExpression default_value

2016-11-16 Thread Mihail Russu
Isn't that already the default behavior per docs 

?

On Wednesday, November 16, 2016 at 5:17:31 AM UTC+2, Bradley Mclain wrote:
>
> search.SortExpression(
>   expression="sort_field",
>   direction=search.SortExpression.DESCENDING,
>   default_value="default_field"
> )
>
> In the event that sort_field is missing I would like it to use the value 
> from default_field instead.
>
> Is something like this possible?
>
>
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9d54bd3b-2bda-4d4c-a54d-4895e9f1cc4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.