Faceted Search ticket problem

Hi all,
this is regarding “Faceted Search” - I thought this is an easy task - that only order of stages should be my concern. But it seems I am doing something wrong since test:

  • testRatingRuntimeBuckets - fails with “Check your $bucket runtime …” (expected 3 got 2)
  • testFacetedSearchPaging - fails with “Check your $bucket rating…” (expected 3 got 2)

Is this a problem of invalid stages order?

You might want to proceed to the next section, watch that video and come back to this ticket. Or you can search through MongoDB documentation to understand the other stages: limit, skip and sort, and come up with the correct order.

Bee,

Order is indeed important in pipelines, as well as having the $match at the beginning and adding the facetstage at the end (see below) :

pipeline.add(matchStage);
pipeline.add(...);
pipeline.add(...);
pipeline.add(...);
pipeline.add(facetStage);

Thank you for the replies - I am sure that the order is correct

  • match
  • sort
  • skip
  • limit
  • facet

but I am still getting wrong results in 2 tests - integration test it showing “Faceted Search: Did not receive the proper response when performing a faceted search with paging”.

Where to look for root cause - any hints ?

BTW: pagination ticket - no issues.

Hi @bee_man,

You do appear to be on the right path. Can you provide the console output from the tests to help highlight what response is being returned ?

Kindest regards,
Eoin

Hi @brazileoin,

  • testRatingRuntimeBuckets returns
    [Document{{runtime=[Document{{_id=90, count=18}}, Document{{_id=120, count=2}}], rating=[Document{{_id=0, count=5}}, Document{{_id=50, count=6}}, Document{{_id=other, count=9}}], movies=[Document{{_id=573a13b3f29313caabd3c2c0, title=Lonely Hearts, year=2006, runtime=108, released=Sat Oct 21 02:00:00 CEST 2006, cast=[John Travolta, James Gandolfini, Jared Leto, Salma Hayek], metacritic=60, poster=http://ia.media-imdb.com/images/M/MV5BMTg4NDczMjU3N15BMl5BanBnXkFtZTcwMzIxOTkzMQ@@._V1_SX300.jpg, plot=Based on the true story, two homicide detectives track Martha Beck and Raymond Martinez Fernandez, a murderous pair known as the “Lonely Hearts Killers” who lured their victims through the personals., fullplot=In the late 1940’s, Martha Beck and Raymond Fernandez were America’s notorious “Lonely Hearts Killers”. Their lethal scam was simple; they would swindle and then viciously murder lovelorn war widows who would answer their personal ads in which Ray would describe himself as a sexy Latin Lover. Ironically, Ray’s initial introduction to Martha was as a prospective mark. But when they met, it was love at first sight, perhaps as a result of their penchant for kinky sex and their mutual love for duplicity and easy money. With Martha posing as Ray’s sister, they bilked elderly spinsters and widows of their savings and then viciously murdered them in a bloodbath of sexual frenzy. When they were arrested, Martha and Ray confessed to 12 killings, although it is believed the actual number is closer to 20. At their sensational trial, Martha and Ray cooed, held hands and seemed as though they could not get enough of each other. Their plea of not guilty by reason of insanity was rejected, and on August 22, 1949, the homicidal lovers were sentenced to death. After numerous appeals, they were electrocuted on March 8, 1951, side-by-side in Sing Sing prison., awards=1 nomination., lastupdated=2015-08-28 00:31:01.910000000, type=movie, languages=[English], directors=[Todd Robinson], writers=[Todd Robinson], imdb=Document{{rating=6.5, votes=16744, id=441774}}, countries=[Germany, USA], rated=R, genres=[Crime, Drama, Romance], tomatoes=Document{{website=http://www.cstar.com/lonelyhearts/, viewer=Document{{rating=3.2, numReviews=9726, meter=49}}, dvd=Tue Jul 31 02:00:00 CEST 2007, rotten=22, boxOffice=$0.1M, consensus=Several genres and plotlines intertwine in Lonely Hearts but don’t connect, creating an uneven and unsatisfying film., critic=Document{{rating=5.6, numReviews=42, meter=48}}, production=Samuel Goldwyn/Roadside, lastUpdated=Wed Aug 19 21:12:53 CEST 2015, fresh=20}}}}, Document{{_id=573a139bf29313caabcf3c57, title=No One Writes to the Colonel, year=1999, runtime=118, released=Wed Jun 02 02:00:00 CEST 1999, cast=[Fernando Lujèn, Marisa Paredes, Salma Hayek, Rafael Inclèn], poster=http://ia.media-imdb.com/images/M/MV5BMTQxNjc2Njk1NV5BMl5BanBnXkFtZTcwOTY2MTU1MQ@@._V1_SX300.jpg, plot=Every Friday, the Colonel puts on his only suit and goes to the dock to await a letter announcing the arrival of his pension. But the townsfolk all know that this pension will never come. …, fullplot=Every Friday, the Colonel puts on his only suit and goes to the dock to await a letter announcing the arrival of his pension. But the townsfolk all know that this pension will never come. His wife also knows it, and even he knows it. But he is still waiting, living with the pain of the death of his son., awards=1 win & 2 nominations., lastupdated=2015-07-30 00:34:51.927000000, type=movie, languages=[Spanish], directors=[Arturo Ripstein], writers=[Paz Alicia Garciadiego, Gabriel Garcèa Mèrquez (novel)], imdb=Document{{rating=6.9, votes=821, id=132905}}, countries=[Mexico, France, Spain], genres=[Drama], tomatoes=Document{{viewer=Document{{rating=3.3, numReviews=1004, meter=62}}, dvd=Tue Jun 10 02:00:00 CEST 2003, production=Latin Crush, lastUpdated=Sat Sep 12 21:21:42 CEST 2015}}}}, Document{{_id=573a139af29313caabcf092d, title=Fools Rush In, year=1997, runtime=109, released=Fri Feb 14 01:00:00 CET 1997, cast=[Matthew Perry, Salma Hayek, Jon Tenney, Carlos Gèmez], metacritic=37, poster=http://ia.media-imdb.com/images/M/MV5BMTk0NDQyODM3MF5BMl5BanBnXkFtZTcwMjc1NTkxMQ@@._V1_SX300.jpg, plot=After a one night stand with Isabel, Alex realizes that she is pregnant and they decide to get married. However, along with the marriage comes compromise of one’s own cultural traditions., fullplot=Sparks fly and cultures collide in this romantic comedy about a casual night of passion that turns into the love of a lifetime. Alex Whitman is a New Yorker sent to Las Vegas to oversee a construction project. There he meets Isabel Fuentes, and some serious chemistry brings them together for one night. But Alex doesn’t see Isabel again until three months later, when he learns she is pregnant. On a whim and prayer, he proposes. However, there’s more to marriage than a Vegas chapel and an Elvis impersonator, as Alex and Isabel soon learn., awards=2 nominations., lastupdated=2015-09-07 00:52:44.310000000, type=movie, languages=[English, Spanish], directors=[Andy Tennant], writers=[Joan Taylor (story), Katherine Reback (story), Katherine Reback (screenplay)], imdb=Document{{rating=6.0, votes=26104, id=119141}}, countries=[USA], rated=PG-13, genres=[Comedy, Drama, Romance], tomatoes=Document{{viewer=Document{{rating=3.0, numReviews=62870, meter=64}}, dvd=Tue Feb 10 01:00:00 CET 1998, rotten=18, lastUpdated=Tue Aug 18 20:51:54 CEST 2015, critic=Document{{rating=4.8, numReviews=27, meter=33}}, production=Sony Pictures Home Entertainment, fresh=9}}}}, Document{{_id=573a13aff29313caabd2f0a5, title=Ask the Dust, year=2006, runtime=117, released=Thu Apr 13 02:00:00 CEST 2006, cast=[Colin Farrell, Salma Hayek, Donald Sutherland, Eileen Atkins], metacritic=58, poster=http://ia.media-imdb.com/images/M/MV5BMTgzMDE3NzM5NF5BMl5BanBnXkFtZTcwNDY2OTIzMQ@@._V1_SX300.jpg, plot=Mexican beauty Camilla hopes to rise above her station by marrying a wealthy American. That is complicated by meeting Arturo Bandini, a first-generation Italian hoping to land a writing career and a blue-eyed blonde on his arm., fullplot=L.A. in the early 1930’s: racism, poverty, and disease color the Bunker Hill neighborhood where Arturo Bandini, a lover of men and beasts alike, has arrived from Colorado to write the great Los Angeles novel. After six months and down to his last nickel, he orders a cup of coffee, served by Camilla Lopez, beautiful, self-possessed, and Mexican. Arturo gets advice, encouragement, and an occasional check from H.L. Mencken, so he keeps writing and he keeps seeing Camilla. But, he’s mean to her for no apparent reason, so the relationship sputters. A housekeeper from back East suggests a way out of his jealously and fears. “Camilla Bandini”: is it in the cards?, awards=1 nomination., lastupdated=2015-08-14 01:31:42.053000000, type=movie, languages=[English, Spanish], directors=[Robert Towne], writers=[Robert Towne (screenplay), John Fante (novel)], imdb=Document{{rating=5.8, votes=7690, id=384814}}, countries=[USA, Germany], rated=R, genres=[Drama, Romance]}}, Document{{_id=573a139ff29313caabd02370, title=Chain of Fools, year=2000, runtime=98, released=Fri Sep 22 02:00:00 CEST 2000, cast=[Steve Zahn, Salma Hayek, Jeff Goldblum, Elijah Wood], poster=http://ia.media-imdb.com/images/M/MV5BMTQzMjAxNDUzNV5BMl5BanBnXkFtZTcwNjM0NDcyMQ@@._V1_SX300.jpg, plot=Salma Hayek plays an avid detective assigned to the heist of a batch of precious coins that end up in the hands of a suicidal barber., fullplot=“Chain of Fools” is a heist comedy-romance about a hapless barber whose life takes a turn for the worse when he ends up in possession of a stolen treasure of ancient coins (the “Shiny New Enemies”) and simultaneously falls on the wrong side of the law and in love with the detective investigating the crime., lastupdated=2015-08-20 00:18:16.627000000, type=movie, languages=[English], directors=[Pontus Lèwenhielm, Patrick von Krusenstjerna], writers=[Bix Skahill], imdb=Document{{rating=6.2, votes=3346, id=194368}}, countries=[USA], rated=R, genres=[Comedy, Crime], tomatoes=Document{{viewer=Document{{rating=3.1, numReviews=2110, meter=42}}, dvd=Tue Feb 15 01:00:00 CET 2005, website=http://www.chainoffools.com, production=WARNER BROTHERS PICTURES, lastUpdated=Tue Aug 18 20:04:31 CEST 2015}}, num_mflix_comments=2}}, Document{{_id=573a139af29313caabcf0f3b, title=The Velocity of Gary, year=1998, runtime=100, released=Fri Jul 16 02:00:00 CEST 1999, cast=[Vincent D’Onofrio, Salma Hayek, Thomas Jane, Olivia d’Abo], poster=http://ia.media-imdb.com/images/M/MV5BMTc4MDIzNjY2MF5BMl5BanBnXkFtZTcwNzY0MTUyMQ@@._V1_SX300.jpg, plot=Valentino is an Ex Adult film star very much in love with his girlfriend Mary Carmen…and boyfriend Gary. Things take a tragic turn when Valentino is rushed to the hospital after …, fullplot=Valentino is an Ex Adult film star very much in love with his girlfriend Mary Carmen…and boyfriend Gary. Things take a tragic turn when Valentino is rushed to the hospital after collapsing on a city street and is diagnosed with HIV/AIDS…Forcing Mary Carmen and Gary to push aside their jealousy & differences to take care of the man they both love while he is dying. Ultimately finding comfort, understanding, and strength in the other. A beautiful modern love story with a fantastic cast. Vincent D’Onofrio is very charismatic, charming, and intense as Valentino…, lastupdated=2015-08-27 00:43:28.993000000, type=movie, languages=[English], directors=[Dan Ireland], writers=[James Still], imdb=Document{{rating=5.0, votes=1530, id=120878}}, countries=[USA], rated=R, genres=[Comedy, Drama, Romance], tomatoes=Document{{viewer=Document{{rating=3.1, numReviews=1556, meter=53}}, dvd=Tue Apr 13 02:00:00 CEST 2004, rotten=14, lastUpdated=Thu Sep 10 19:31:50 CEST 2015, critic=Document{{rating=4.0, numReviews=18, meter=22}}, production=Sony Pictures Home Entertainment, fresh=4}}}}, Document{{_id=573a13b3f29313caabd3dccc, title=Puss in Boots, year=2011, runtime=90, released=Fri Oct 28 02:00:00 CEST 2011, cast=[Antonio Banderas, Salma Hayek, Zach Galifianakis, Billy Bob Thornton], metacritic=65, poster=http://ia.media-imdb.com/images/M/MV5BMTMxMTU5MTY4MV5BMl5BanBnXkFtZTcwNzgyNjg2NQ@@._V1_SX300.jpg, plot=The events leading up to the sword fighting cat’s meeting with Shrek and his friends., fullplot=Years before meeting Shrek and Donkey, the adorable but tricky Puss in Boots must clear his name from all charges making him a wanted fugitive. While trying to steal magic beans from the infamous criminals Jack and Jill, the hero crosses paths with his female match, Kitty Softpaws, who leads Puss to his old friend, but now enemy, Humpty Dumpty. Memories of friendship and betrayal enlarges Puss’ doubt, but he eventually agrees to help the egg get the magic beans. Together, the three plan to steal the beans, get to the Giant’s castle, nab the golden goose, and clear Puss’ name., awards=Nominated for 1 Oscar. Another 6 wins & 41 nominations., lastupdated=2015-08-23 00:38:10.813000000, type=movie, languages=[English, Spanish], directors=[Chris Miller], writers=[Charles Perrault (character), Tom Wheeler (screenplay), Brian Lynch (story), William Davies (story), Tom Wheeler (story)], imdb=Document{{rating=6.7, votes=104860, id=448694}}, countries=[USA], rated=PG, genres=[Animation, Adventure, Comedy], tomatoes=Document{{website=http://www.pussinbootsthemovie.com/, viewer=Document{{rating=3.6, numReviews=77938, meter=68}}, dvd=Fri Feb 24 01:00:00 CET 2012, rotten=23, boxOffice=$149.2M, consensus=It isn’t deep or groundbreaking, but what it lacks in profundity, Puss in Boots more than makes up for with an abundance of wit, visual sparkle, and effervescent charm., critic=Document{{rating=6.8, numReviews=142, meter=84}}, production=Paramount/Dreamworks, lastUpdated=Sat Sep 12 20:19:37 CEST 2015, fresh=119}}}}, Document{{_id=573a139af29313caabcef0b6, title=Midaq Alley, year=1995, runtime=140, released=Fri Mar 06 01:00:00 CET 1998, cast=[Ernesto Gèmez Cruz, Marèa Rojo, Salma Hayek, Bruno Bichir], poster=http://ia.media-imdb.com/images/M/MV5BMTEwMDQ1OTk4OTleQTJeQWpwZ15BbWU3MDM3MzI3MTE@._V1_SX300.jpg, plot=Based on the Nobel Prize Winner’s novel, the Egyptian Naguib Mahfouz. The story, translated from El Cairo to Mexico City’s downtown, narrates the life of the members of the neighbourhood …, fullplot=Based on the Nobel Prize Winner’s novel, the Egyptian Naguib Mahfouz. The story, translated from El Cairo to Mexico City’s downtown, narrates the life of the members of the neighbourhood and the connection between them Don Ru, the owner of the local pub; Eusebia, his wife; Chava, his son and Abel his friend, who emigrate to USA in search of fortune; Susanita, the single landtender always dreaming to marry a good man; Guicho, the pub’s employee, who extracts the money when Don Ru is not there and finally marries Susanita; Alma, the very good looking girl, the Abel’s dream, who becomes a luxury prostitute while he’s away; Jimmy, the handsome young man Don Ru becomes infatuated with, etc. This movie won the Ariel (the Mexican Oscar) as best movie in 1995., awards=27 wins & 14 nominations., lastupdated=2015-09-01 01:14:01.613000000, type=movie, languages=[Spanish], directors=[Jorge Fons], writers=[Vicente Leèero (screenplay), Naguib Mahfouz (novel)], imdb=Document{{rating=7.6, votes=2013, id=112619}}, countries=[Mexico], rated=UNRATED, genres=[Drama], tomatoes=Document{{viewer=Document{{rating=3.5, numReviews=721, meter=79}}, dvd=Tue Feb 13 01:00:00 CET 2001, lastUpdated=Sat Jun 27 20:41:32 CEST 2015}}, num_mflix_comments=1}}, Document{{_id=573a139ef29313caabcfba16, title=54, year=1998, runtime=93, released=Fri Aug 28 02:00:00 CEST 1998, cast=[Ryan Phillippe, Salma Hayek, Neve Campbell, Mike Myers], metacritic=33, poster=http://ia.media-imdb.com/images/M/MV5BMTY3NDI0NjUyOF5BMl5BanBnXkFtZTcwMzM0NDMzMQ@@._V1_SX300.jpg, plot=Famous 70s NYC nightclub seen and told through the eyes of a young employee., fullplot=An anthology film retelling the story of the famous Studio 54, a hot disco hangout for the social elite of New York. The movie follows several characters at once, some of whom are in desperate straits and on the verge of crashing., awards=7 nominations., lastupdated=2015-08-30 02:17:08.113000000, type=movie, languages=[English], directors=[Mark Christopher], writers=[Mark Christopher], imdb=Document{{rating=5.8, votes=26552, id=120577}}, countries=[USA], rated=R, genres=[Drama, Music], tomatoes=Document{{website=http://www.miramax.com/movie/54, viewer=Document{{rating=2.8, numReviews=31237, meter=44}}, dvd=Tue Apr 03 02:00:00 CEST 2001, rotten=56, lastUpdated=Sat Aug 22 21:09:51 CEST 2015, consensus=Poor plot development and slow pacing keep 54 from capturing the energy of it’s legendary namesake., critic=Document{{rating=4.2, numReviews=66, meter=15}}, production=Miramax Films, fresh=10}}, num_mflix_comments=1}}, Document{{_id=573a139af29313caabcf09f1, title=The Hunchback, year=1997, runtime=98, released=Sun Mar 16 01:00:00 CET 1997, cast=[Mandy Patinkin, Richard Harris, Salma Hayek, Edward Atterton], poster=http://ia.media-imdb.com/images/M/MV5BMTMxNTk1MTEyNV5BMl5BanBnXkFtZTcwMDk3MjYyMQ@@._V1_SX300.jpg, plot=Based on the novel, a young gypsy becomes a Minister’s obsession in 1483. Only the bell ringer and her husband and the court of miracles can save her., fullplot=Based on the novel, a young gypsy becomes a Minister’s obsession in 1483. Only the bell ringer and her husband and the court of miracles can save her., awards=Nominated for 4 Primetime Emmys. Another 8 nominations., lastupdated=2015-08-12 00:16:56.157000000, type=movie, languages=[English], directors=[Peter Medak], writers=[Victor Hugo (novel), John Fasano (teleplay)], imdb=Document{{rating=6.2, votes=1129, id=119329}}, countries=[USA, Hungary, Canada, Czech Republic], genres=[Drama, Horror, Romance], tomatoes=Document{{viewer=Document{{rating=2.9, numReviews=50, meter=39}}, dvd=Tue May 19 02:00:00 CEST 1998, lastUpdated=Fri Jul 31 20:05:19 CEST 2015}}}}, Document{{_id=573a13adf29313caabd2af88, title=After the Sunset, year=2004, runtime=97, released=Fri Nov 12 01:00:00 CET 2004, cast=[Pierce Brosnan, Salma Hayek, Woody Harrelson, Don Cheadle], metacritic=38, poster=http://ia.media-imdb.com/images/M/MV5BMTU1ODkyNDkwOV5BMl5BanBnXkFtZTcwNzI2MTcyMQ@@._V1_SX300.jpg, plot=The story of what happens after a master thief achieves his last big score, when the FBI agent who promised he’d capture him is about to do just that., fullplot=After a successful last score, a master thief retires to an island paradise. His lifelong nemesis, a crafty FBI agent, washes ashore to ensure he’s making good on his promise. The pair soon enters into a new game of cat-and-mouse., awards=1 nomination., lastupdated=2015-08-21 00:50:02.187000000, type=movie, languages=[English], directors=[Brett Ratner], writers=[Paul Zbyszewski (story), Paul Zbyszewski (screenplay), Craig Rosenberg (screenplay)], imdb=Document{{rating=6.3, votes=36636, id=367479}}, countries=[USA], rated=PG-13, genres=[Action, Comedy, Crime]}}, Document{{_id=573a13a4f29313caabd1276d, title=In the Time of the Butterflies, year=2001, runtime=95, released=Thu Aug 19 02:00:00 CEST 2004, cast=[Salma Hayek, Edward James Olmos, Mèa Maestro, Demian Bichir], poster=http://ia.media-imdb.com/images/M/MV5BMTQyNzc0NDExN15BMl5BanBnXkFtZTcwOTYwOTAyMQ@@._V1_SX300.jpg, plot=In the Time of the Butterflies is inspired by the true story of the three Mirabal sisters who, in 1960, were murdered for their part in an underground plot to overthrow the government., fullplot=On November 25, 1960, the bodies of three sisters were found near the bottom of a cliff on the north coast of the Dominican Republic. The official daily ‘El Caribe’ reports that it had been an accident, but it does not mention that a fourth sister lives. Nor does it mention the sisters’ fierce opposition to the General Trujillo’s dictatorship. This is their story: how Minerva started the tragedy by refusing Trujillo; how Patria became an opponent from the church itself; how Maria Teresa joined the revolution through the love. And how they lost their wings, but not their courage. They were Las Mariposas - “The Butterflies”., awards=2 wins & 2 nominations., lastupdated=2015-08-28 00:32:45.503000000, type=movie, languages=[English], directors=[Mariano Barroso], writers=[Julia èlvarez (novel), Judy Klass (teleplay), David Klass (teleplay)], imdb=Document{{rating=6.8, votes=1648, id=263467}}, countries=[USA, Mexico], rated=PG-13, genres=[Crime, Drama, History], tomatoes=Document{{viewer=Document{{rating=3.8, numReviews=3826, meter=78}}, dvd=Tue May 07 02:00:00 CEST 2002, production=MGM, lastUpdated=Tue Jul 21 20:53:16 CEST 2015}}, num_mflix_comments=1}}, Document{{_id=573a139af29313caabcf0ea6, title=Frida, year=2002, runtime=123, released=Fri Nov 22 01:00:00 CET 2002, cast=[Salma Hayek, Mèa Maestro, Alfred Molina, Antonio Banderas], metacritic=61, poster=http://ia.media-imdb.com/images/M/MV5BMTMyODUyMDY1OV5BMl5BanBnXkFtZTYwMDA2OTU3._V1_SX300.jpg, plot=A biography of artist Frida Kahlo, who channeled the pain of a crippling injury and her tempestuous marriage into her work., fullplot=“Frida” chronicles the life Frida Kahlo shared unflinchingly and openly with Diego Rivera, as the young couple took the art world by storm. From her complex and enduring relationship with her mentor and husband to her illicit and controversial affair with Leon Trotsky, to her provocative and romantic entanglements with women, Frida Kahlo lived a bold and uncompromising life as a political, artistic, and sexual revolutionary., awards=Won 2 Oscars. Another 17 wins & 33 nominations., lastupdated=2015-09-12 00:33:36.510000000, type=movie, languages=[English, French, Russian], directors=[Julie Taymor], writers=[Hayden Herrera (book), Clancy Sigal (screenplay), Diane Lake (screenplay), Gregory Nava (screenplay), Anna Thomas (screenplay)], imdb=Document{{rating=7.4, votes=57256, id=120679}}, countries=[USA, Canada, Mexico], rated=R, genres=[Biography, Drama, Romance], tomatoes=Document{{website=http://www.miramax.com/frida/, viewer=Document{{rating=3.7, numReviews=53261, meter=86}}, dvd=Tue Jun 10 02:00:00 CEST 2003, rotten=36, boxOffice=$25.7M, consensus=Frida is a passionate, visually striking biopic about the larger-than-life artist., critic=Document{{rating=6.9, numReviews=151, meter=76}}, production=Miramax Films, lastUpdated=Sun Sep 13 20:08:34 CEST 2015, fresh=115}}, num_mflix_comments=2}}, Document{{_id=573a13b1f29313caabd3635a, title=Bandidas, year=2006, runtime=93, released=Wed Jan 18 01:00:00 CET 2006, cast=[Penèlope Cruz, Salma Hayek, Steve Zahn, Dwight Yoakam], poster=http://ia.media-imdb.com/images/M/MV5BNDI1MDEwNjM2OF5BMl5BanBnXkFtZTcwNzE2NTA0MQ@@._V1_SX300.jpg, plot=In turn-of-the-century Mexico, two very different women become a bank-robbing duo in an effort to combat a ruthless enforcer terrorizing their town., fullplot=In 1848, a New York bank wants to put a railroad across Mexico, so it buys up small banks around Santa Rita, Durango, and evicts farmers on the proposed rail line who owe money. The bank’s henchman is the murderous Jackson. He runs afoul of two women, Marèa, the tough but uneducated daughter of a farmer, and Sara, the European-educated daughter of the owner of one of these banks. To feed the now landless people and to seek revenge, Marèa and Sara become bank robbers, veritable Robin Hoods. But Jackson and his hired guns are after them. What are the women’s options?, lastupdated=2015-09-06 00:46:01.993000000, type=movie, languages=[English, Spanish], directors=[Joachim Rènning, Espen Sandberg], writers=[Luc Besson, Robert Mark Kamen], imdb=Document{{rating=5.7, votes=27216, id=416496}}, countries=[France, Mexico, USA], rated=PG-13, genres=[Action, Comedy, Crime], tomatoes=Document{{website=http://www.bandidas-lefilm.com, viewer=Document{{rating=3.0, numReviews=24845, meter=43}}, dvd=Tue Jan 09 01:00:00 CET 2007, rotten=5, lastUpdated=Sun Sep 13 20:07:36 CEST 2015, critic=Document{{rating=5.4, numReviews=13, meter=62}}, production=20th Century Fox, fresh=8}}}}, Document{{_id=573a139af29313caabcf07cf, title=Breaking Up, year=1997, runtime=90, released=Fri Oct 17 02:00:00 CEST 1997, cast=[Russell Crowe, Salma Hayek, Abraham Alvarez], poster=http://ia.media-imdb.com/images/M/MV5BMzY5NzMxOTY1MF5BMl5BanBnXkFtZTcwMjY5MzgxMQ@@._V1_SX300.jpg, plot=Monica teaches, Steve’s a photographer. They’ve dated more than two years. They’re arguing, and she leaves for her apartment, only to return in a few minutes to say they should stop seeing …, fullplot=Monica teaches, Steve’s a photographer. They’ve dated more than two years. They’re arguing, and she leaves for her apartment, only to return in a few minutes to say they should stop seeing each other. A few days later, they’re back together, but within two hours, he takes offense at an off-hand remark, and the separation starts in earnest. They see other people, then, out of the blue, Steve asks Monica to marry him. She says yes, and a time of ecstasy begins: they interview strangers, asking them what makes a marriage work, and she moves in with him. Then comes the wedding, and when Steve freezes, anger rends the relationship again. Can harmony return?, lastupdated=2015-08-24 00:35:45.023000000, type=movie, languages=[English], directors=[Robert Greenwald], writers=[Michael Cristofer (play), Michael Cristofer (screenplay)], imdb=Document{{rating=4.9, votes=2199, id=118772}}, countries=[USA], rated=R, genres=[Comedy, Drama, Romance], tomatoes=Document{{viewer=Document{{rating=2.8, numReviews=3840, meter=40}}, dvd=Tue Jun 01 02:00:00 CEST 2004, production=WARNER BROTHERS PICTURES, lastUpdated=Sat Aug 22 20:56:39 CEST 2015}}, num_mflix_comments=2}}, Document{{_id=573a139af29313caabcf0f48, title=Wild Wild West, year=1999, runtime=106, released=Wed Jun 30 02:00:00 CEST 1999, cast=[Will Smith, Kevin Kline, Kenneth Branagh, Salma Hayek], metacritic=38, poster=http://ia.media-imdb.com/images/M/MV5BNDI5NDk5MjgxMl5BMl5BanBnXkFtZTcwNjI1MTUyMQ@@._V1_SX300.jpg, plot=The two best hired guns in the West must save President Grant from the clutches of a nineteenth-century inventor-villain., fullplot=Jim West is a guns-a-blazing former Civil War hero. Artemus Gordon is an inventive U.S. Marshal who excels in disguise. When the United States is threatened by psychotic Confederate Arliss Loveless, President Ulysses Grant teams the duo up to bring him to justice. On a hazard-packed train journey from Washington D.C. to Utah, West and Gordon must combine their skills to best Loveless and his diabolical machines., awards=10 wins & 11 nominations., lastupdated=2015-09-10 17:48:40.287000000, type=movie, languages=[English], directors=[Barry Sonnenfeld], writers=[Jim Thomas (story), John Thomas (story), S.S. Wilson (screenplay), Brent Maddock (screenplay), Jeffrey Price (screenplay), Peter S. Seaman (screenplay)], imdb=Document{{rating=4.8, votes=122655, id=120891}}, countries=[USA], rated=PG-13, genres=[Action, Western, Comedy], tomatoes=Document{{website=http://wildwildwest.warnerbros.com, viewer=Document{{rating=2.7, numReviews=463636, meter=28}}, dvd=Tue Nov 30 01:00:00 CET 1999, rotten=108, lastUpdated=Sat Sep 12 20:14:42 CEST 2015, consensus=Bombastic, manic, and largely laugh-free, Wild Wild West is a bizarre misfire in which greater care was lavished upon the special effects than on the script., critic=Document{{rating=4.1, numReviews=130, meter=17}}, production=Warner Bros. Pictures, fresh=22}}, num_mflix_comments=2}}, Document{{_id=573a1399f29313caabceea6d, title=Roadracers, year=1994, runtime=95, released=Fri Jul 22 02:00:00 CEST 1994, cast=[David Arquette, John Hawkes, Salma Hayek, Jason Wiles], poster=http://ia.media-imdb.com/images/M/MV5BMTgwMzU3MDI1NF5BMl5BanBnXkFtZTcwMDUwMTIyMQ@@._V1_SX300.jpg, plot=Cynical look at a 50’s rebellious Rocker who has to confront his future, thugs with knives, and the crooked town sheriff., fullplot=Cynical look at a 50’s rebellious Rocker who has to confront his future, thugs with knives, and the crooked town sheriff., awards=1 nomination., lastupdated=2015-09-01 00:53:54.567000000, type=movie, languages=[English], directors=[Robert Rodriguez], writers=[Robert Rodriguez, Tommy Nix], imdb=Document{{rating=6.7, votes=2036, id=111002}}, countries=[USA], rated=R, genres=[Action, Drama], tomatoes=Document{{viewer=Document{{rating=2.8, numReviews=7487, meter=31}}, dvd=Tue Sep 03 02:00:00 CEST 2002, rotten=17, lastUpdated=Fri Sep 11 20:00:30 CEST 2015, critic=Document{{rating=4.9, numReviews=23, meter=26}}, production=Hollywood Pictures, fresh=6}}, num_mflix_comments=1}}, Document{{_id=573a139af29313caabcef179, title=Desperado, year=1995, runtime=104, released=Fri Aug 25 02:00:00 CEST 1995, cast=[Antonio Banderas, Salma Hayek, Joaquim de Almeida, Cheech Marin], metacritic=55, poster=http://ia.media-imdb.com/images/M/MV5BMjM0MDQ5NTc3N15BMl5BanBnXkFtZTgwMzQxNzQxMTE@._V1_SX300.jpg, plot=A gunslinger is embroiled in a war with a local drug runner., fullplot=With this sequel to his prize-winning independent previous film, “El Mariachi,” director Robert Rodriquez joins the ranks of Sam Peckinpah and John Woo as a master of slick, glamorized ultra-violence. We pick up the story as a continuation of “El Mariachi,” where an itinerant musician, looking for work, gets mistaken for a hitman and thereby entangled in a web of love, corruption, and death. This time, he is out to avenge the murder of his lover and the maiming of his fretting hand, which occurred at the end of the earlier movie. However, the plot is recapitulated, and again, a case of mistaken identity leads to a very high body count, involvement with a beautiful woman who works for the local drug lord, and finally, the inevitable face-to-face confrontation and bloody showdown., awards=4 nominations., lastupdated=2015-08-29 00:25:05.467000000, type=movie, languages=[English], directors=[Robert Rodriguez], writers=[Robert Rodriguez], imdb=Document{{rating=7.2, votes=127966, id=112851}}, countries=[USA], rated=R, genres=[Action, Crime, Thriller], tomatoes=Document{{viewer=Document{{rating=3.5, numReviews=187644, meter=80}}, dvd=Wed Jun 25 02:00:00 CEST 1997, rotten=15, lastUpdated=Sun Sep 13 19:30:57 CEST 2015, critic=Document{{rating=6.4, numReviews=39, meter=62}}, production=Sony Pictures Home Entertainment, fresh=24}}, num_mflix_comments=1}}, Document{{_id=573a139af29313caabcf0e4f, title=54, year=1998, runtime=93, released=Fri Aug 28 02:00:00 CEST 1998, cast=[Ryan Phillippe, Salma Hayek, Neve Campbell, Mike Myers], metacritic=33, poster=http://ia.media-imdb.com/images/M/MV5BMTY3NDI0NjUyOF5BMl5BanBnXkFtZTcwMzM0NDMzMQ@@._V1_SX300.jpg, plot=Famous 70s NYC nightclub seen and told through the eyes of a young employee., awards=7 nominations., lastupdated=2015-09-16 12:22:02.100000000, type=movie, languages=[English], directors=[Mark Christopher], writers=[Mark Christopher], imdb=Document{{rating=5.8, votes=26612, id=120577}}, countries=[USA], rated=R, genres=[Drama, Music], tomatoes=Document{{website=http://www.miramax.com/movie/54, viewer=Document{{rating=2.8, numReviews=31237, meter=44}}, dvd=Tue Apr 03 02:00:00 CEST 2001, rotten=56, lastUpdated=Sat Aug 22 21:09:51 CEST 2015, consensus=Poor plot development and slow pacing keep 54 from capturing the energy of it’s legendary namesake., critic=Document{{rating=4.2, numReviews=66, meter=15}}, production=Miramax Films, fresh=10}}, num_mflix_comments=1}}, Document{{_id=573a13a6f29313caabd17bd5, title=Once Upon a Time in Mexico, year=2003, runtime=102, released=Fri Sep 12 02:00:00 CEST 2003, cast=[Antonio Banderas, Salma Hayek, Johnny Depp, Mickey Rourke], metacritic=56, poster=http://ia.media-imdb.com/images/M/MV5BMTU5MDg5OTcwOV5BMl5BanBnXkFtZTcwMjI1MTIzMw@@._V1_SX300.jpg, plot=Hitman “El Mariachi” becomes involved in international espionage involving a psychotic CIA agent and a corrupt Mexican general., fullplot=In the third movie of Rodriguez’s “Mariachi” trilogy, a Mexican drug lord pretends to overthrow the Mexican government, and is connected to a corrupt CIA agent who at that time, demands retribution from his worst enemy to carry out the drug lord’s uprising against the government., awards=3 wins & 4 nominations., lastupdated=2015-09-07 00:09:02.457000000, type=movie, languages=[English, Spanish], directors=[Robert Rodriguez], writers=[Robert Rodriguez], imdb=Document{{rating=6.4, votes=122029, id=285823}}, countries=[USA], rated=R, genres=[Action, Thriller], tomatoes=Document{{website=http://www.sonypictures.com/movies/onceuponatimeinmexico/, viewer=Document{{rating=3.2, numReviews=284917, meter=64}}, dvd=Tue Jan 20 01:00:00 CET 2004, rotten=52, boxOffice=$55.8M, consensus=Violent, pulpy, loopy fun, with Depp stealing the show., critic=Document{{rating=6.3, numReviews=163, meter=68}}, production=Sony Pictures Releasing, lastUpdated=Mon Sep 14 20:03:16 CEST 2015, fresh=111}}, num_mflix_comments=2}}]}}]

with following exception
java.lang.AssertionError: Check your $bucket runtime sub-pipeline on getMoviesFaceted() for multiple cast in single cast
Expected :3
Actual :2

Hi @Bee_Man

Looking at the tests file and your console output, the commonality between those two failed test cases is ArrayList rating = (ArrayList<Document>) moviesInfo.get(0).get("rating"); in FacetSearchTest.java. I’d suggest investigating that specific aspect as it looks like this is where those tests are failing.

Hope this helps!
Eoin