Currently, the phonetic plugin performs full text search on the field and returns the whole content when a phonetically similar word is present in the content.
How do i return just that phonetically similar word instead of the whole content?
You could try use a highlighter and parse the result for the text between the <em>...</em> markup.
This would only work for a single-term search otherwise you'd have a hard time reverse engineering which search term was being highlighted with which tag.
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.