lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wojtekpia <>
Subject Different sort behavior on same code
Date Tue, 06 Oct 2009 19:04:56 GMT


I'm running Solr version in 2 environments. I have
a field defined as:

<field name="myDate" type="date" indexed="true" stored="true"

The two environments have different data, but both have single and multi
valued entries for myDate.

On one environment sorting by myDate works (sort seems to be by the 'last'
value if multi valued).

On the other environment I get: 
HTTP Status 500 - there are more terms than documents in field "myDate", but
it's impossible to sort on tokenized fields java.lang.RuntimeException:
there are more terms than documents in field 

I've read that I shouldn't sort by multi-valued fields, so my solution will
be to add a single-valued date field for sorting. But I don't understand why
my two environments behave differently, and it doesn't seem like the error
message makes sense (are date fields tokenized?). Any thoughts?


View this message in context:
Sent from the Solr - User mailing list archive at

View raw message