Skip to content

Commit

Permalink
Update movies-cold-start.json
Browse files Browse the repository at this point in the history
Updated exclude phase cypher
  • Loading branch information
snehalmaidneo authored Oct 22, 2024
1 parent c3126ea commit df54912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/engineImports/movies-cold-start.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"__typename":"Engine","id":"movies-cold-start","phases":[{"__typename":"CypherDiscoveryPhase","id":"d91117b7-ec96-48c4-baa7-7bca18584577","name":"Discover Movies with High IMDB Ratings","description":"This phase discovers movies with the highest imdb ratings.","phaseType":"CypherDiscoveryPhase","active":true,"showCypher":true,"cypherQuery":"MATCH (item:Movie)\nWHERE item.imdbRating IS NOT NULL\nRETURN item, item.imdbRating AS score , {} AS details\nORDER BY score DESC"},{"__typename":"CypherDiscoveryPhase","id":"09b06417-2817-4d68-9d90-9cc005ef2b8f","name":"Discover Movies Based On Actor Popularity","description":"This phase discovers movies with popular actors.","phaseType":"CypherDiscoveryPhase","active":true,"showCypher":true,"cypherQuery":"MATCH (p:Actor)-->(m:Movie) \nWHERE p.name <> \"N/A\" \nWITH p.name AS actor, count(m)*1.0/5 AS score, apoc.coll.randomItem(collect(m)) AS item\nRETURN item, score, {} AS details LIMIT 50"},{"__typename":"CypherBoostPhase","id":"f89eeffc-d392-4998-8375-84e4f2fd7015","name":"Boost On Release Year","description":"Boost on movies released more recently.","phaseType":"CypherBoostPhase","active":true,"showCypher":true,"cypherQuery":"MATCH (this)\nRETURN this as item, -(2024-toInteger(this.year)) AS score,{} as details"},{"__typename":"CypherExcludePhase","id":"9ec697ae-61d9-4c09-b60a-1c662f1f177a","name":"Exclude Movies Not Available in English Language","description":"This phase excludes movies that are not available in english language as these recommendations are geared towards a english speaking audience","phaseType":"CypherExcludePhase","active":true,"showCypher":true,"cypherQuery":"MATCH (this)\nWHERE \"English\" IN this.languages\nRETURN this","inverted":false},{"__typename":"CypherDiversityPhase","id":"c1a22d1d-cee6-485d-ab45-274f46b78fd5","name":"Diversify On Genre","description":"","phaseType":"CypherDiversityPhase","active":true,"showCypher":true,"cypherQuery":"OPTIONAL MATCH (this)-[:IN_GENRE]->(g)\nWITH this, CASE WHEN g.name IS NOT NULL THEN g.name ELSE \"\" END AS attribute\nRETURN attribute","maxAmount":5}]}
{"__typename":"Engine","id":"movies-cold-start","phases":[{"__typename":"CypherDiscoveryPhase","id":"d91117b7-ec96-48c4-baa7-7bca18584577","name":"Discover Movies with High IMDB Ratings","description":"This phase discovers movies with the highest imdb ratings.","phaseType":"CypherDiscoveryPhase","active":true,"showCypher":true,"cypherQuery":"MATCH (item:Movie)\nWHERE item.imdbRating IS NOT NULL\nRETURN item, item.imdbRating AS score , {} AS details\nORDER BY score DESC"},{"__typename":"CypherDiscoveryPhase","id":"09b06417-2817-4d68-9d90-9cc005ef2b8f","name":"Discover Movies Based On Actor Popularity","description":"This phase discovers movies with popular actors.","phaseType":"CypherDiscoveryPhase","active":true,"showCypher":true,"cypherQuery":"MATCH (p:Actor)-->(m:Movie) \nWHERE p.name <> \"N/A\" \nWITH p.name AS actor, count(m)*1.0/5 AS score, apoc.coll.randomItem(collect(m)) AS item\nRETURN item, score, {} AS details LIMIT 50"},{"__typename":"CypherBoostPhase","id":"f89eeffc-d392-4998-8375-84e4f2fd7015","name":"Boost On Release Year","description":"Boost on movies released more recently.","phaseType":"CypherBoostPhase","active":true,"showCypher":true,"cypherQuery":"MATCH (this)\nRETURN this as item, -(2024-toInteger(this.year)) AS score,{} as details"},{"__typename":"CypherExcludePhase","id":"9ec697ae-61d9-4c09-b60a-1c662f1f177a","name":"Exclude Movies Not Available in English Language","description":"This phase excludes movies that are not available in english language as these recommendations are geared towards a english speaking audience","phaseType":"CypherExcludePhase","active":true,"showCypher":true,"cypherQuery":"MATCH (this)\nWHERE \"English\" IN this.languages\nRETURN this as item","inverted":false},{"__typename":"CypherDiversityPhase","id":"c1a22d1d-cee6-485d-ab45-274f46b78fd5","name":"Diversify On Genre","description":"","phaseType":"CypherDiversityPhase","active":true,"showCypher":true,"cypherQuery":"OPTIONAL MATCH (this)-[:IN_GENRE]->(g)\nWITH this, CASE WHEN g.name IS NOT NULL THEN g.name ELSE \"\" END AS attribute\nRETURN attribute","maxAmount":5}]}

0 comments on commit df54912

Please sign in to comment.