Instead of using request parameters, you should switch to using the Query DSL, so that you can specify your request including highlighting in JSON - this also means you do not need to worry about HTTP encoding and escaping in your queries.
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.