Skip to content

Created for Elasticsearch X Code for Cause Hackathon. This is the backend for my MemeTastic Application. (Winner for the hackathon)

Notifications You must be signed in to change notification settings

Saransh-cpp/MemeTastic-backend

Repository files navigation

MemeTastic-backend

Created for Elasticsearch X Code for Cause Hackathon. (Winner for the hackthon - devpost project)

This is the backend for my MemeTastic Application.

How it works

  • Scrapes top 100 memes from subreddit memes using reddit's public API.

  • Adds the link and the title of those 100 memes in elasticsearch which can then be visualised using kibana.

  • Elasticsearch has been hosted on Google Cloud.

  • The first two steps are repeated after every 30 minutes using a CI/CD pipeline created using GitHub Actions to make sure that the Application stays up-to-date.

Ngrams

  • This also uses ngrams, implemetation is given below (implemeted using kibana)
PUT dankmemes
{
  "settings": {
    "analysis": {
      "analyzer": {
        "autocomplete": {
          "tokenizer": "autocomplete",
          "filter": [
            "lowercase"
          ]
        },
        "autocomplete_search": {
          "tokenizer": "lowercase"
        }
      },
      "tokenizer": {
        "autocomplete": {
          "type": "edge_ngram",
          "min_gram": 1,
          "max_gram": 10,
          "token_chars": [
            "letter"
          ]
        }
      }
    }
  },
  "mappings": {
    "properties": {
      "title": {
        "type": "text",
        "analyzer": "autocomplete",
        "search_analyzer": "autocomplete_search"
      }
    }
  }
}

About

Created for Elasticsearch X Code for Cause Hackathon. This is the backend for my MemeTastic Application. (Winner for the hackathon)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published