Twitter Sample API

Hi,

I was wondering is it possible to filter and send only the tweets in English to Elasticsearch while getting the data with Sample API?

Anyone?

Is there a field that defines the language of the tweet?

Yes there is actually. But I am not sure how to use it for my purpose.

After spending the whole day I think I have found the solution. It seems to work with this filtering option.

filter {
    if [lang] != "en" or [user][lang] != "en" {
        drop { }
    }
}

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