Wait, on the page you referenced there's this which appears to be
exactly what you want:

<mergePolicyFactory class="org.apache.solr.index.SortingMergePolicyFactory">
  <str name="sort">timestamp desc</str>
  <str name="wrapped.prefix">inner</str>
  <str name="inner.class">org.apache.solr.index.TieredMergePolicyFactory</str>
  <int name="inner.maxMergeAtOnce">10</int>
  <int name="inner.segmentsPerTier">10</int>
</mergePolicyFactory>

And since this is in solrconfig.xml which is defined per core you can
specify whatever
you want for each core.

Also see SOLR-5730 and SOLR-8621

Best,
Erick

On Mon, Nov 28, 2016 at 1:47 PM, Dorian Hoxha <dorian.ho...@gmail.com> wrote:
> bump after 11 days
>
> On Thu, Nov 17, 2016 at 10:25 AM, Dorian Hoxha <dorian.ho...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I know this is done in lucene, but I don't see it in solr (by searching +
>> docs on collections).
>>
>> I see https://cwiki.apache.org/confluence/display/solr/
>> IndexConfig+in+SolrConfig but it's not mentioned for index-time-sorting.
>>
>> So, is it possible and definable for each index ? I want to have some
>> sorted by 'x' field, some by 'y' field, and some staying as default.
>>
>> Thank You
>>

Reply via email to