rocketphp/tweetnest

Search JSON tweet files by text and location - Elasticsearch.

dev-develop / 1.1.x-dev 2015-09-06 22:39 UTC

This package is not auto-updated.

Last update: 2024-04-17 08:24:51 UTC


README

RocketPHP\TweetNest uses Elasticsearch to search JSON tweet files by text and location.

To search tweets – start with an instance of TweetNest and search using arrays.

use RocketPHP\TweetNest\TweetNest;

$nest = new TweetNest('127.0.0.1:9200', 'tweet_files');
$result = $nest->search(
    ['text' => 'Arnold',
    'location' => 'USA']
);
var_dump($result);