Thanks.

On Tuesday, 6 May 2014 12:09:10 UTC+1, David Pilato wrote:
>
> I meant sort script: 
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#_script_based_sorting
>
> although score script should help as well.
>
> -- 
> *David Pilato* | *Technical Advocate* | *Elasticsearch.com*
> @dadoonet <https://twitter.com/dadoonet> | 
> @elasticsearchfr<https://twitter.com/elasticsearchfr>
>
>
> Le 6 mai 2014 à 13:08:05, David Pilato ([email protected] <javascript:>) a 
> écrit:
>
>  may be using a script score function? 
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_script_score
>
>       -- 
> *David Pilato* | *Technical Advocate* | *Elasticsearch.com* 
> @dadoonet <https://twitter.com/dadoonet> | 
> @elasticsearchfr<https://twitter.com/elasticsearchfr>
>  
>        
> Le 6 mai 2014 à 11:46:51, mooky ([email protected] <javascript:>) a 
> écrit:
>
>  I have a reference field that is pseudo numeric. Sorting alphabetically 
> produces the wrong results. 
>
> e.g. the following values should be sorted like this:
> 3045.5.2
> 3045.5.12
> 3045.15.2
>
> I can't change the reference format - to pad it with zeros.
> But I did think I could create a field that was padded with zeros - and 
> sort using that.
> I was hoping I could keep it out of the source document - but I haven't 
> figured out how I can do some scripted formatting yet - using perhaps a 
> multi-field.
>
> I would greatly appreciate any cunning tricks that could be used to get 
> this done.
>
>
>  --
> You received this message because you are subscribed to the Google Groups 
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/34123a15-e8d3-4191-b866-671064420f44%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/34123a15-e8d3-4191-b866-671064420f44%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/ec333800-e092-4e8a-b9d1-5ea3492f4459%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to