Sorry, I wasn't clear. Starting from 7.13 not showing _source in a CSV export is expected.
Do you have fieldsFromSource enabled in the Advanced settings? keyword fields won't have a value with fieldsFromSource enabled. If you have a saved search that is referencing those fields, it is expected that they would show up with empty values. Can you please recheck those two things?
You're spot on fieldsFromSource enabled in Advanced Settings as the team wanted to view the documents in json.
And you're right again, the fields I added in the Saved Search were keyword fields.
Looks like if I want CSV exports I have to disable fieldsFromSource.
Is there any workaround to show the document response in raw json?
We have a JSON view for each document, but I don't think you will ever be able to see the raw json in a CSV file. If you disable fieldsFromSource, you should be able to view all fields (with values ) in a CSV file.
Now the problem is if we disable fieldsFromSource the JSON reads with each field in a separate line.
However if we do enable it then we are able to read json in the "Expanded document" view in the correct data structure.
So as you were saying in the previous post if we disable fieldsFromSource we'll be able to export CSVs however if we enable it we lose the raw Json view in Discover's "Expanded document" view.
If there is a workaround to view raw json in Discover with fieldsFromSource disabled that would be the ideal solution, otherwise I'll have to ask my team to prioritise one or the other.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.