Hi,
Welcome to community!
You can try providing statement in match phrase , give it additional boost and then try to give the string in match statement. So that you will achieve below.
Need a result which should list the results that matches the whole word first and followed by others.`
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.