biliboc
biliboc

Reputation: 737

Solr 4.10 returning SolrDocument instances with empty map when dynamic fields are requested

I recently upgraded from Solr 4.9 to 4.10. At some point in the code I want to return the values for some dynamic fields. If I do this:

    SolrQuery query = new SolrQuery();
    query.addField("code");
    query.addField("name");

it returns the right values in the fields ('code' and 'name').

If I do this:

    SolrQuery query = new SolrQuery();
    query.addField("code");
    query.addField("name");
    query.addField("*_prop");

all the fields ,including code and name, are null.

Is there any trick that I missed when moving to 4.10?

Upvotes: 0

Views: 133

Answers (1)

biliboc
biliboc

Reputation: 737

It was a bug in solr 4.10.0. It was fixed as per https://issues.apache.org/jira/browse/SOLR-6501

Upvotes: 2

Related Questions