Coder Social home page Coder Social logo

famous-director-search-engine's Introduction

FamousDirectorSearch

This repository includes configuring elasticsearch and query searches. Directory Structure

 ├── director-corpus : Modified data from the pre-processed data from actual (corpus) 
 ├── data_uplaod.py : Python file that converts JSON to a bulkdata and uploads to ElasticSearch Bulk API
 ├── query.py : ElasticSearch search queries
 ├── search.py : Search API call
 ├── analyzers : custom filters

Demo

  • Install ElasticSearch
  • Add 'analyze' folder in config of Elasticsaeach and add files from analyzers
  • Run ElasticSearch
  • Run 'data_upload.py' and add data
  • Search for famous directors - basic queries

SampleQueries

  • Can search for directors if you just know name/directed_movies/awards/DOB.

E.g.- "நோலன்"

{
    "query": {
        "query_string": {
            "query":"நோலன்"
        }
    }
}
  • Can search specifying the field when you just know director_name/directed_movies/awards/born_year/nominations.
{
     "query" : {
          "match" : {
             "name_ta" : "கிறிஸ்டோபர் நோலன்"
         }
     }
 }
  • Can search with WildCard queries

E.g.- "நோ*" for "நோலன்"

    "query" : {
         "match" : {
            "name_ta" : "நோ*"
        }
    }
}
  • Can search multi match queries

E.g.- "ஆஸ்கார்"

{
      "query" : {
         "multi_match" : {
             "query" : "ஆஸ்கார்",
             "fields": ["awards_ta","nominations_ta"]
         }
     }
}
  • Can search for Top-30 directors of particular order where Top is marked on their score

E.g. - மிகச்சிறந்த 30 இயக்குனர்கள்

   "size":30,
   "sort" : [
       { "score" : {"order" : "desc"}}
   ],
   "query": {
       "multi_match": {
           "fields": ["awards_ta", "awards_en"],
           "query" : "Oscar",
           "fuzziness": "AUTO"
       }
   }
}
  • Can do aggregated bucket querying with terms
 "aggs": {
   "ratings": {
     "terms": { "field": "category" }
   }
 }
}

famous-director-search-engine's People

Contributors

mdineskumar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.