Hello,
I am using the JSON Query API, and the 'fields' key does not work as expected.
Using the following query with the `post` tool:
$> echo '{"query":"*:*", "fields": ["id"]}' | ./post -url
http://localhost:8983/solr/mycore/select -type application/json -out yes -d
I get the full document back, not just the ID field. If, however, I use:
$> echo '{"query":"*:*", "params": {"fl": ["id"]}}' | ./post -url
http://localhost:8983/solr/mycore/select -type application/json -out yes -d
Then the query works as expected.
Can anyone confirm this is an issue?
If it cannot be reproduced, I can dig deeper into my setup. I am using some
default `appends` for `fl` in the request handler for some custom field
processing for JSON fields, so it may be an issue with merging the `fields` and
the `fl` arrays? Not sure.
Thanks,
-Andrew