lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Hill <>
Subject Re: Sort fields all look Strings in field cache, no matter schema type
Date Sat, 19 Dec 2009 20:21:30 GMT
This field is of class type solr.SortableDoubleField.

I'm actually migrating a project from Solr 1.1 to 1.4, and am in the process
of trying to update the schema and solrconfig in stages. Updating the field
to TrieDoubleField w/ precisionStep=0 definitely helped.

Thanks Yonik!

On Sat, Dec 19, 2009 at 11:37 AM, Yonik Seeley

> On Sat, Dec 19, 2009 at 2:25 PM, Jay Hill <> wrote:
> > One thing that struck me as odd in the output of the stats.jsp page is
> that
> > the field cache always shows a String type for a field, even if it is not
> a
> > String. For example, the output below is for a field "cscore" that is a
> > double:
> What's the class type of the double?  Older style SortableDouble had
> to use the string index.  Newer style trie-double based should use a
> double[].
> It also matters what the FieldCache entry is being used for... certain
> things like faceting on single valued fields still use the
> StringIndex.  I believe the stats component does too.  Sorting and
> function queries should work as expected.
> -Yonik

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message