passing max matches variable to sphinx api