@manideep (Manideep) posted a new topic, subject "Search on Scripted field in kibana". It read:

   Hi All,
    
    I have created a scripted field in Kibana using painless language. I can see the field in dashboard and discover tab. However, I cannot use that field to search in elasticsearch.
    
    Is it possible to search on the scripted field in kibana?
    
    Thanks,  
    Manideep

So @LizaD (Liza Dayoub) replied

    Hi @manideep!
    
    What version of Kibana are you using? We added support for searching scripted fields using Kibana Query Language: https://www.elastic.co/guide/en/kibana/master/kuery-query.html in 6.3
    
    Thanks,  
    Liza

Then @manideep (Manideep) said

    Hi @LizaD
    
    Thank you for the response
    
    I am using Kibana 7.2. So, the Idea is to use this scripted filed outside kibana meaning, I have my own UI in angular 7 and wanted to use this field as filter.
    
    Can I also use the scripted field in search query like any other field?
    
    Thanks,  
    Manideep

To which @cheiligers replied

    Elasticsearch supports querying scripted fields, this link might help you: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-script-fields.html. I hope that helps!

So @system (system) replied

    This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.


{'source': 'discourse', 'url': 'https://discuss.elastic.co/t/search-on-scripted-field-in-kibana/191643', 'title': 'Search on Scripted field in kibana', 'views': 219, 'has_accepted_answer': False, 'word_count': 184, 'like_count': 0, 'reply_count': 2, 'participant_count': 3, 'posts': 5, 'tags': '', 'author': '@manideep (Manideep)', 'participants': '@manideep (Manideep), @LizaD (Liza Dayoub), @cheiligers, @system (system)', 'image_url': [None], 'created_at': '2019-07-22T13:07:51.118Z', 'last_posted_at': '2019-08-19T19:09:17.500Z'}