Hi Ahmet

The sortMissingLast and sortMissingFirst attributes are defined at the field or fieldType level?

<field name="P_TSRank" type="int" indexed="true" stored="true" multiValued="false"/>

<fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/>

On 5/27/2015 4:43 PM, Ahmet Arslan wrote:
Hi,
I think you are looking for sortMissing* attributes:

sortMissingLast and sortMissingFirst attributes are optional attributes are
currently supported on types that are sorted internally as strings
and on numeric types.

Ahmet

On Wednesday, May 27, 2015 11:36 AM, Derek Poh <d...@globalsources.com> wrote:
Hi

I am trying to sort on multiple fields. These fields donot necessary
exist in every document.
sort=sppddrank asc, ddrank asc

>From the sorted result, it seems that documents which donot have
sppddrank field is at the top.

How can I make the documents that have the sppddrank field to be on top
and sortedby it and those documents which do not have the field below?

-Derek



Reply via email to