lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dotan Cohen <>
Subject Re: After adding field to schema, the field is not being returned in results.
Date Thu, 01 Nov 2012 15:55:50 GMT
On Thu, Nov 1, 2012 at 3:00 PM, Erick Erickson <> wrote:
> I'd try several things....
> 1> just because you an sort has nothing to do with whether the field is
> returned. Sorting uses the indexed data, returning it is the stored data.
> So it's a bit of a red herring when you can sort on a field but not see it,
> although it is a good test that your schema knows about the field.

Right, the only thing that I was testing for is that the field is
recognised by Solr. If I had a typo in the field name in the query or
in the schema, Solr would have complained.

> 2> Try fl=* just for yucks.

yuck, yuck, but didn't work!

> 3> Check your schema.xml for typos. stroed="true" for instance?

No, tried that. Good thinking, though.

> 4> Why are you restricting your returns to 1 and only one document? Are you
> absolutely sure that that document has the new field? Solr happily sorts
> documents that do not have a value for a field, that's the purpose of
> sortMissingFirst/Last.

All the newest documents have the field, and I'm sorting by time
descending. In fact, I did test with more rows, but for the mailing
list I wanted the output to be concise.


Dotan Cohen

View raw message