Hello,
being new to elasticsearch and trying to get Twitter documents indexed, I
tried a few things, which again caused some questions. Let me explain:
First I used Stream2es, which pulled me Twitter documents in quickly, but I
didn´t saw any way to filter the tweets as it can be done with the Twitter
River.
Then I used the Twitter River, its filtering works as described. But when
checking the tweets content, I saw, there are less fields being indexed
than in Stream2es, for example user data such as followers_count
or friends_count.
So I wondered:
1.) Is there a way to do filtering with Stream2es?
2.) Is there a way to change the mapping of Twitter River? Well, I tried to
change the Twitter River mapping, just without success (I didn´t started to
index anything) the following way:
Creating a new index:
curl -XPUT 'http://localhost:9200/twitter_socialmedia_river/' -d '
index :
type : mynewmapping
bulk_size : 10
'
Applying a desired mapping to the index:
curl -XPUT
'http://localhost:9200/twitter_socialmedia_river/mynewmapping/_mapping' -d '
{
"mynewmapping" : {
"properties" : {
"user": {
"properties": {
"location": {"type": "string"},
"default_profile": {"type": "boolean"},
"statuses_count": {"type": "long"},
"lang": {"type": "string"},
"id": {"type": "long"},
"favourites_count": {"type": "long"},
and some other properties hereafter...
}
}
}
}
}
'
Starting the Twitter River:
curl -XPUT localhost:9200/_river/twitter_socialmedia_river/_meta -d '
{
"type" : "mynewmapping",
"twitter" : {
"oauth" : {
"consumer_key" : "myValues",
"consumer_secret" : "myValues",
"access_token" : "myValues",
"access_token_secret" : "myValues"
},
"filter" : {
"tracks" : ["socialmedia", "social media"]
}
}
}
'
Any help is very appreciated, thanks in advance!
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0f7579ff-cd63-403c-a731-36902eb8c99d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.