[CHEF-2140] Rescue QueryParseError in search controller
[CHEF-2140] Rescue QueryParseError in search controller

Invalid queries are now caught and a 400 status is returned instead of
500.

SUSE-Cloud/chef,baberthal/chef,swalberg/chef,kamaradclimber/chef,MsysTechnologiesllc/chef,sanditiffin/chef,docwhat/chef,oclaussen/chef,custora/chef,jagdeesh109/chef,oclaussen/chef,Kast0rTr0y/chef,mikefaille/chef,hfichter/chef,jkerry/chef,acaiafa/chef,mio-g/chef,nathwill/chef,evan2645/chef,nvwls/chef,webframp/chef,mikefaille/chef,tbriggs-curse/chef,josb/chef,brettcave/chef,EasonYi/chef,ktpan/chef-play,mikedodge04/chef,cgvarela/chef,EasonYi/chef,AndyBoucher/Chef-Testing,baberthal/chef,permyakovsv/chef,paulmooring/chef,ccsplit/chef,sanditiffin/chef,brettcave/chef,criteo-forks/chef,ChaosCloud/chef,aspiers/chef,ekometti/chef,mal/chef,criteo-forks/chef,paulmooring/chef,ccope/chef,jordane/chef,joemiller/chef,b002368/chef-repo,grubernaut/chef,higanworks/chef,patcon/chef,evan2645/chef,aspiers/chef,sometimesfood/chef,nellshamrell/chef,someara/chef,AndyBoucher/Chef-Testing,ShadySQL/chef-merged,ShadySQL/chef-merged,adamleff/chef,askl56/chef,nsdavidson/chef,3dinfluence/chef,bahamas10/chef,sideci-sample/sideci-sample-chef,EasonYi/chef,grubernaut/chef,mikedodge04/chef,josb/chef,circleback/chef,jordane/chef,jkerry/chef,DeWaRs1206/chef,davestarling/chef,lamont-granquist/chef,nguyen-tien-mulodo/chef,clintoncwolfe/chef,sanditiffin/chef,someara/chef,mattray/chef,antonifs/chef,opsengine/chef,nicklv/chef,kamaradclimber/chef,oclaussen/chef,strangelittlemonkey/chef,cachamber/chef,danielsdeleo/seth,MichaelPereira/chef,sysbot/chef,kaznishi/chef,jk47/chef,gene1wood/chef,robmul/chef,strangelittlemonkey/chef,aaron-lane/chef,tas50/chef-1,renanvicente/chef,tomdoherty/chef,kaznishi/chef,nguyen-tien-mulodo/chef,b002368/chef-repo,criteo-forks/chef,coderanger/chef,nathwill/chef,youngjl1/chef,jmhardison/chef,joyent/chef,sysbot/chef,nicklv/chef,tas50/chef-1,EasonYi/chef,gsaslis/chef,juliandunn/chef,Tensibai/chef,jimmymccrory/chef,zuazo-forks/chef,BackSlasher/chef,karthikrev/chef,h4ck3rm1k3/chef,oclaussen/chef,faspl/chef,nicklv/chef,hfichter/chef,AndyBoucher/Chef-Testing,martinb3/chef,grubernaut/chef,mikedodge04/chef,smurawski/chef,nalingarg2/chef-1,Kast0rTr0y/chef,juliandunn/chef,ccope/chef,MichaelPereira/chef,ShadySQL/chef-merged,sideci-sample/sideci-sample-chef,3dinfluence/chef,erkolson/chef,tbunnyman/chef,faspl/chef,sekrett/chef,permyakovsv/chef,Tensibai/chef,tbriggs-curse/chef,sekrett/chef,tbriggs-curse/chef,robmul/chef,gsaslis/chef,jimmymccrory/chef,Ppjet6/chef,jk47/chef,ChaosCloud/chef,paulmooring/chef,tas50/chef-1,jmhardison/chef,nguyen-tien-mulodo/chef,kaznishi/chef,OpSitters/chef,OpSitters/chef,clintoncwolfe/chef,Igorshp/chef,MsysTechnologiesllc/chef,swalberg/chef,webframp/chef,sanditiffin/chef,someara/chef,nguyen-tien-mulodo/chef,pburkholder/chef,jimmymccrory/chef,OpSitters/chef,webframp/chef,nvwls/chef,mwrock/chef,martinisoft/chef,GabKlein/chef-merged,jkerry/chef,sempervictus/chef,custora/chef,ccope/chef,kisoku/chef,DeWaRs1206/chef,webframp/chef,permyakovsv/chef,circleback/chef,zuazo-forks/chef,brettcave/chef,askl56/chef,danielsdeleo/seth,GabKlein/chef-merged,ekometti/chef,zshuo/chef,sometimesfood/chef,ranjib/chef,jblaine/chef,nsdavidson/chef,legal90/chef,patcon/chef,ducthanh/chef,Igorshp/chef,jkerry/chef,joemiller/chef,renanvicente/chef,sysbot/chef,andrewpsp/chef,nicklv/chef,strangelittlemonkey/chef,tbunnyman/chef,nellshamrell/chef,cachamber/chef,karthikrev/chef,kisoku/chef,aaron-lane/chef,malisettirammurthy/chef,SUSE-Cloud/chef,jk47/chef,permyakovsv/chef,martinb3/chef,higanworks/chef,joemiller/chef,sanditiffin/chef,ShadySQL/chef-merged,martinb3/chef,adamleff/chef,AndyBoucher/Chef-Testing,cgvarela/chef,jagdeesh109/chef,b002368/chef-repo,mikedodge04/chef,BackSlasher/chef,danielsdeleo/seth,ekometti/chef,cmluciano/chef,SUSE-Cloud/chef,erkolson/chef,malisettirammurthy/chef,ekometti/chef,gene1wood/chef,renanvicente/chef,skmichaelson/chef,erkolson/chef,sometimesfood/chef,nathwill/chef,evan2645/chef,swalberg/chef,Tensibai/chef,sekrett/chef,onlyhavecans/chef,smurawski/chef,custora/chef,pburkholder/chef,MichaelPereira/chef,docwhat/chef,MsysTechnologiesllc/chef,swalberg/chef,jblaine/chef,jordane/chef,josb/chef,smurawski/chef,antonifs/chef,polamjag/chef,mattray/chef,higanworks/chef,ranjib/chef,nicklv/chef,chef/chef,someara/chef,cmluciano/chef,tomdoherty/chef,aaron-lane/chef,lamont-granquist/chef,josb/chef,criteo-forks/chef,sideci-sample/sideci-sample-chef,faspl/chef,gsaslis/chef,evan2645/chef,acaiafa/chef,Tensibai/chef,opsengine/chef,mikefaille/chef,ChaosCloud/chef,natewalck/chef,erkolson/chef,SUSE-Cloud/chef,Igorshp/chef,nvwls/chef,sempervictus/chef,zuazo-forks/chef,youngjl1/chef,clintoncwolfe/chef,paulmooring/chef,nsdavidson/chef,davestarling/chef,cgvarela/chef,AndyBoucher/Chef-Testing,sempervictus/chef,mal/chef,tomdoherty/chef,sometimesfood/chef,andrewpsp/chef,3dinfluence/chef,ducthanh/chef,jk47/chef,robmul/chef,legal90/chef,ShadySQL/chef-merged,mikedodge04/chef,ranjib/chef,nellshamrell/chef,sysbot/chef,smurawski/chef,joyent/chef,mal/chef,strangelittlemonkey/chef,Igorshp/chef,BackSlasher/chef,jonlives/chef,lamont-granquist/chef,youngjl1/chef,ranjib/chef,ktpan/chef-play,grubernaut/chef,adamleff/chef,pburkholder/chef,faspl/chef,nsdavidson/chef,zshuo/chef,malisettirammurthy/chef,jagdeesh109/chef,polamjag/chef,webframp/chef,mikedodge04/chef,custora/chef,SUSE-Cloud/chef,ccsplit/chef,b002368/chef-repo,jblaine/chef,andrewpsp/chef,jagdeesh109/chef,jkerry/chef,DeWaRs1206/chef,docwhat/chef,bahamas10/chef,polamjag/chef,joyent/chef,legal90/chef,evan2645/chef,acaiafa/chef,Ppjet6/chef,mio-g/chef,h4ck3rm1k3/chef,nellshamrell/chef,nvwls/chef,ckaushik/chef,andrewpsp/chef,polamjag/chef,ckaushik/chef,MsysTechnologiesllc/chef,karthikrev/chef,jaymzh/chef,bahamas10/chef,DeWaRs1206/chef,sempervictus/chef,mattray/chef,cachamber/chef,renanvicente/chef,josb/chef,docwhat/chef,faspl/chef,Igorshp/chef,grubernaut/chef,h4ck3rm1k3/chef,nguyen-tien-mulodo/chef,aspiers/chef,patcon/chef,davestarling/chef,ckaushik/chef,ckaushik/chef,jagdeesh109/chef,tbunnyman/chef,bahamas10/chef,joemiller/chef,juliandunn/chef,strangelittlemonkey/chef,OpSitters/chef,ckaushik/chef,ekometti/chef,coderanger/chef,nellshamrell/chef,natewalck/chef,zshuo/chef,robmul/chef,smurawski/chef,ktpan/chef-play,permyakovsv/chef,patcon/chef,onlyhavecans/chef,custora/chef,swalberg/chef,jmhardison/chef,ekometti/chef,3dinfluence/chef,cmluciano/chef,andrewpsp/chef,natewalck/chef,kisoku/chef,legal90/chef,jmhardison/chef,lamont-granquist/chef,tbunnyman/chef,nsdavidson/chef,jaymzh/chef,malisettirammurthy/chef,youngjl1/chef,acaiafa/chef,permyakovsv/chef,legal90/chef,sekrett/chef,jaymzh/chef,b002368/chef-repo,brettcave/chef,skmichaelson/chef,criteo-forks/chef,danielsdeleo/seth,Ppjet6/chef,ranjib/chef,bahamas10/chef,hfichter/chef,antonifs/chef,martinisoft/chef,askl56/chef,danielsdeleo/seth,clintoncwolfe/chef,aaron-lane/chef,skmichaelson/chef,onlyhavecans/chef,chef/chef,zuazo-forks/chef,askl56/chef,Ppjet6/chef,EasonYi/chef,kaznishi/chef,DeWaRs1206/chef,nalingarg2/chef-1,h4ck3rm1k3/chef,OpSitters/chef,juliandunn/chef,tbunnyman/chef,juliandunn/chef,nguyen-tien-mulodo/chef,sometimesfood/chef,Igorshp/chef,baberthal/chef,kaznishi/chef,mikefaille/chef,aspiers/chef,polamjag/chef,Tensibai/chef,zuazo-forks/chef,cmluciano/chef,jblaine/chef,smurawski/chef,faspl/chef,skmichaelson/chef,nvwls/chef,joemiller/chef,docwhat/chef,ccsplit/chef,mattray/chef,polamjag/chef,mio-g/chef,nalingarg2/chef-1,joyent/chef,karthikrev/chef,antonifs/chef,pburkholder/chef,mal/chef,sanditiffin/chef,nsdavidson/chef,hfichter/chef,cgvarela/chef,jaymzh/chef,paulmooring/chef,jimmymccrory/chef,jk47/chef,natewalck/chef,AndyBoucher/Chef-Testing,tas50/chef-1,gsaslis/chef,renanvicente/chef,sysbot/chef,martinisoft/chef,chef/chef,SUSE-Cloud/chef,circleback/chef,kisoku/chef,patcon/chef,mal/chef,skmichaelson/chef,oclaussen/chef,BackSlasher/chef,sekrett/chef,evan2645/chef,karthikrev/chef,Kast0rTr0y/chef,coderanger/chef,bahamas10/chef,mattray/chef,nalingarg2/chef-1,MichaelPereira/chef,andrewpsp/chef,zshuo/chef,docwhat/chef,gene1wood/chef,mikefaille/chef,kamaradclimber/chef,ktpan/chef-play,BackSlasher/chef,hfichter/chef,gsaslis/chef,jonlives/chef,higanworks/chef,joyent/chef,Ppjet6/chef,legal90/chef,Kast0rTr0y/chef,GabKlein/chef-merged,cgvarela/chef,adamleff/chef,antonifs/chef,gsaslis/chef,jordane/chef,davestarling/chef,nathwill/chef,pburkholder/chef,grubernaut/chef,natewalck/chef,martinisoft/chef,mikefaille/chef,mal/chef,sideci-sample/sideci-sample-chef,ChaosCloud/chef,EasonYi/chef,ktpan/chef-play,natewalck/chef,Ppjet6/chef,Kast0rTr0y/chef,zshuo/chef,joemiller/chef,sekrett/chef,oclaussen/chef,ccsplit/chef,ducthanh/chef,onlyhavecans/chef,webframp/chef,martinb3/chef,ccope/chef,coderanger/chef,ducthanh/chef,kisoku/chef,davestarling/chef,3dinfluence/chef,adamleff/chef,chef/chef,malisettirammurthy/chef,tomdoherty/chef,baberthal/chef,MichaelPereira/chef,MichaelPereira/chef,swalberg/chef,askl56/chef,askl56/chef,patcon/chef,gene1wood/chef,jimmymccrory/chef,opsengine/chef,cachamber/chef,mwrock/chef,circleback/chef,opsengine/chef,sempervictus/chef,erkolson/chef,nalingarg2/chef-1,ckaushik/chef,mwrock/chef,erkolson/chef,robmul/chef,acaiafa/chef,malisettirammurthy/chef,tbunnyman/chef,josb/chef,youngjl1/chef,circleback/chef,ccsplit/chef,h4ck3rm1k3/chef,jonlives/chef,jordane/chef,baberthal/chef,ccsplit/chef,jonlives/chef,tbriggs-curse/chef,Kast0rTr0y/chef,DeWaRs1206/chef,OpSitters/chef,jonlives/chef,h4ck3rm1k3/chef,youngjl1/chef,higanworks/chef,zshuo/chef,ktpan/chef-play,baberthal/chef,b002368/chef-repo,ranjib/chef,cgvarela/chef,onlyhavecans/chef,pburkholder/chef,cmluciano/chef,custora/chef,jmhardison/chef,ChaosCloud/chef,nvwls/chef,onlyhavecans/chef,cachamber/chef,brettcave/chef,nalingarg2/chef-1,karthikrev/chef,jonlives/chef,aaron-lane/chef,tbriggs-curse/chef,jagdeesh109/chef,aspiers/chef,martinisoft/chef,renanvicente/chef,sideci-sample/sideci-sample-chef,adamleff/chef,opsengine/chef,mio-g/chef,acaiafa/chef,jmhardison/chef,jk47/chef,paulmooring/chef,jblaine/chef,mio-g/chef,lamont-granquist/chef,BackSlasher/chef,ccope/chef,aaron-lane/chef,ChaosCloud/chef,someara/chef,criteo-forks/chef,someara/chef,jblaine/chef,clintoncwolfe/chef,martinb3/chef,strangelittlemonkey/chef,kamaradclimber/chef,ducthanh/chef,clintoncwolfe/chef,3dinfluence/chef,nellshamrell/chef,mio-g/chef,sometimesfood/chef,GabKlein/chef-merged,tbriggs-curse/chef,zuazo-forks/chef,lamont-granquist/chef,martinb3/chef,sempervictus/chef,skmichaelson/chef,jimmymccrory/chef,circleback/chef,brettcave/chef,nicklv/chef,robmul/chef,kaznishi/chef,cachamber/chef,nathwill/chef,antonifs/chef,nathwill/chef,tomdoherty/chef,jkerry/chef,mwrock/chef,ducthanh/chef