Re: Order by field's values custom list

2014-11-21 Thread Mikhail Khludnev
see if() function example at https://cwiki.apache.org/confluence/display/solr/Function+Queries On Fri, Nov 21, 2014 at 2:17 PM, shacky 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

Order by field's values custom list

2014-11-21 Thread shacky
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