Commit b95b9ae7 authored by Francesco Poldi's avatar Francesco Poldi

Added analyzer for username, cashtag and mention

parent 27d5c9d0
VERSION = (2, 1, 4)
VERSION = (2, 1, 5)
__version__ = '.'.join(map(str, VERSION))
......@@ -65,9 +65,9 @@ def createIndex(config, instance, **scope):
"location": {"type": "keyword"},
"tweet": {"type": "text"},
"hashtags": {"type": "keyword", "normalizer": "hashtag_normalizer"},
"cashtags": {"type": "keyword"},
"cashtags": {"type": "keyword", "normalizer": "hashtag_normalizer"},
"user_id_str": {"type": "keyword"},
"username": {"type": "keyword"},
"username": {"type": "keyword", "normalizer": "hashtag_normalizer"},
"name": {"type": "text"},
"profile_image_url": {"type": "text"},
"day": {"type": "integer"},
......@@ -86,7 +86,7 @@ def createIndex(config, instance, **scope):
"geo_tweet": {"type": "geo_point"},
"photos": {"type": "text"},
"user_rt_id": {"type": "keyword"},
"mentions": {"type": "keyword"},
"mentions": {"type": "keyword", "normalizer": "hashtag_normalizer"},
"source": {"type": "keyword"},
"user_rt": {"type": "keyword"},
"retweet_id": {"type": "keyword"},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment