Please provide a full reproducible example including index creation, sample document indexing and reindexing request.
My assumption here is, that your query does not return any results because you are searching for params.phonePrefix as field content in internationalPrefix, try using 31 hardcoded in there, the parameters are only valid within your script.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.