Re: Sorting on different language fields

2016-08-31 Thread Emir Arnautovic
Ugh... Never used this approach and was thinking that sort can take a function that returns string, but it requires function that returns double so you would need to provide function that returns double representation of string. With such function you could do: sort=if(exists(object_name_fr),

Re: Sorting on different language fields

2016-08-31 Thread Vasu Y
Thank you Emir. That was helpful. I understand that we can make sure all doc have values in all fields at indexing time. But if that's not possible, how can we make sure all docs have values in all fields query time? If we missed to provide value for certain fields at index time, how can we ensure

Re: Sorting on different language fields

2016-08-31 Thread Emir Arnautovic
Hi Vasu, It is expected behavior, and you can control it with sortMissingLast and sortMissingFirst. Here is comment from schema: In any case it does not seem right to me to have results first just because it is declared as French - in some cases it will be same as English version and will

Sorting on different language fields

2016-08-30 Thread Vasu Y
Hi, We are indexing a set objects with fields like objectName, objectDescription etc. All the objects have objectName specified in English language; some objects also have their name specified in an additional language like French and indexed to objectName_fr field. When we query from SOLR, we wa