I'm trying to fetch data from elasticsaerch using rest api, i'm able to get all the documents by running the below query
GET perfchk/_search?size=1000
I have created few scripted fields in this index, those scripted field datas are not showing up in the rest output, Is this a normal behaviour of elasticsearch or i'm missing something in the query.
Normal behavior. Use Discover if you want to see the output of scripted fields.
Scripted fields compute data on the fly from the data in your Elasticsearch indices. The data is shown on the Discover tab as part of the document data, and you can use scripted fields in your visualizations.
I'm able to view the field in discover tab and am able to create visualizations also thanks for that.
Actually i was trying to use rest api of elasticsearch to expose the data to another 3rd part tool, so was checking if the scripted field will be available using rest api?
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.