Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Added analyzer for username, cashtag and mention
Browse files Browse the repository at this point in the history
  • Loading branch information
pielco11 committed Oct 19, 2019
1 parent 27d5c9d commit b95b9ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion twint/__version__.py
@@ -1,3 +1,3 @@
VERSION = (2, 1, 4)
VERSION = (2, 1, 5)

__version__ = '.'.join(map(str, VERSION))
6 changes: 3 additions & 3 deletions twint/storage/elasticsearch.py
Expand Up @@ -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"},
Expand All @@ -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"},
Expand Down

0 comments on commit b95b9ae

Please sign in to comment.