Hi Chris, Try wrapping the field name in a field() function in your fl parameter list, like so: fl=field(eff_field_name)
Alan Woodward www.flax.co.uk On 14 Jul 2013, at 18:41, Chris Collins wrote: > Why would I be re-indexing an external file field? The whole purpose is that > its brought in at runtime and not part of the index? > > C > On Jul 14, 2013, at 10:13 AM, Shawn Heisey <s...@elyograg.org> wrote: > >> On 7/14/2013 7:05 AM, Chris Collins wrote: >>> Yep I did switch on stored=true in the field type. I was able to confirm a >>> few ways that there are values for the eff by two methods: >>> >>> 1) changing desc to asc produced drastically different results. >>> >>> 2) debugging FileFloatSource the following was getting triggered filling >>> the vals array: >>> while ((doc = docsEnum.nextDoc()) != >>> DocIdSetIterator.NO_MORE_DOCS) >>> { >>> vals[doc] = fval; >>> } >>> >>> At least by you asking these questions I guess it should work. I will >>> continue dissecting. >> >> Did you reindex when you changed the schema? Sorting uses indexed >> values, not stored values. The fl parameter requires the stored values. >> These are separate within the index, and one cannot substitute for the >> other. If you didn't reindex, then you won't have the stored values for >> existing documents. >> >> http://wiki.apache.org/solr/HowToReindex >> >> Thanks, >> Shawn >> >> >