Skip to content

Twitter River Plugin: A river that index twitter sample stream #378

@kimchy

Description

@kimchy

A twitter river plugin that index twitter same stream. Here is how it gets created:

curl -XPUT 'localhost:9200/_river/my_river/_meta' -d '{
    "type" : "twitter",
    "twitter" : {
        "user" : "twitter_user",
        "password" : "twitter_password"
    }
}'

The index it indexes data into is called by default the same as the river name, and the _type is status. Controlling it using:

curl -XPUT 'localhost:9200/_river/my_river/_meta' -d '{
    "type" : "twitter",
    "twitter" : {
        "user" : "twitter_user",
        "password" : "twitter_password"
    },
    "index" : {
        "index" : "my_index_1",
        "type" : "timeline"
    }
}'

The indexing is done in bulking of 100 bulk items. Control it the bulk_size setting within index.

The twitter river is provided as a plugin, and will be installed using plugin -install river-twitter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions