lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: Order by field's values custom list
Date Fri, 21 Nov 2014 11:28:49 GMT
see if() function example at
https://cwiki.apache.org/confluence/display/solr/Function+Queries

On Fri, Nov 21, 2014 at 2:17 PM, shacky <shacky83@gmail.com> wrote:

> Hi.
> I'm using Solr 1.4.1 (I know it's an old version) and I'm trying to
> find a way to sort found record using a custom list of field values.
>
> The same as MySQL's "ORDER BY FIELD()" function:
>
> SELECT * FROM fruit ORDER BY FIELD(name, 'Banana', 'Apple', 'Pear',
> 'Orange'), variety;
>
> Could you help me please?
>
> Thank you very much!
> Bye
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhludnev@griddynamics.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message