Hi,

I tested this config on Solr 4.2 this morning and it worked:
<fieldType name="long" class="solr.TrieLongField" precisionStep="0"
docValuesFormat="Disk" positionIncrementGap="0"/>

<field name="YYYYMMDDhh" type="long" indexed="true" stored="true"
required="true" docValues="true" multiValued="false" />

I also loaded data and ran a sort  and looked at the heap with jvisualvm
and the longs were not loaded into the jvm's heap. The sort was also very
fast, although only on 600,000 records.

Possibly you are not on Solr 4.2? Can you post both your filedType
definition and your field definition?

Joel





On Thu, Mar 28, 2013 at 12:57 AM, adityab <aditya_ba...@yahoo.com> wrote:

> Hi Joel,
> you are correct, boost function populates the field cache. Well i am not
> aware of docValue, so while trying the example you provided i see the error
> when i define the field type
>
> Caused by: org.apache.solr.common.SolrException: FieldType 'dvLong' is
> configured with a docValues format, but the codec does not support it:
> class
> org.apache.solr.core.SolrCore$3
>         at org.apache.solr.core.SolrCore.initCodec(SolrCore.java:854)
>         at org.apache.solr.core.SolrCore.<init>(SolrCore.java:719)
>         ... 13 more
>
> My field defination:
> <fieldType name="dvLong" class="solr.TrieLongField" precisionStep="0"
> positionIncrementGap="0" docValuesFormat="Disk"/>
>
> what am i missing here?
>
> thanks
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Too-many-fields-to-Sort-in-Solr-tp4049139p4051960.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Joel Bernstein
Professional Services LucidWorks

Reply via email to