I think thats how to refresh a synonym file aftet updating the file manually right. But i was looking for anyway where we can update the file(synonym file) using some query.
Thats currently not possible. If you need that kind of flexibility I would suggest looking into query expansion at search time, i.e. keeping a separate resource with synonyms etc in your client and adding additional query terms to the user-provided query in your application layer.
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.