Twitter Sample API


#1

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?


#2

Anyone?


(Mark Walkom) #3

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


#4

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


#5

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 { }
    }
}

(system) #6

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