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?
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.
© 2020. All Rights Reserved - Elasticsearch
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.