with Movie Recommendation System demo
Search Engine Architecture
NYU
Amanpreet Singh
Karthik Venkatesan
Simranjyot Singh Gill
{
"movie": {
"properties": {
"director_name": {
"type": "text",
"analyzer": "n_gram",
"search_analyzer": "standard"
},
"actor_names": {
"type": "text",
"analyzer": "n_gram",
"search_analyzer": "standard"
},
"genres": {
"type": "text"
},
"movie_title": {
"type": "text",
"analyzer": "n_gram",
"search_analyzer": "standard"
},
"plot_keywords": {
"type": "text"
},
"movie_imdb_link": {
"type": "keyword",
"index": false
},
"imdb_score": {
"type": "float"
}
}
}
}
{"query":
{"bool":
{"should":
[{"match": {"director_name": "Shane Black"}},
{"match": {"plot_keywords": {"query": "human bomb", "boost": 2.0}}},
{"match": {"actor_names": "Robert Downey Jr."}},
{"term": {"actor_names": "Cheadle"}},
{"match": {"genres": {"query": "Action", "boost": 2.0}}},
{"match": {"genres": {"query": "Sci-Fi", "boost": 2.0}}}],
"filter":
[{"range": {"imdb_score": {"gte": 6.0}}}]
}
}
}