Hi, The author of Solr in Action has produced something similar to what you want. I even has used it for one of my projects where I needed to automatically analyze languages. Here is the link to its code https://github.com/treygrainger/solr-in-action/tree/master/src/main/java/sia/ch14 <https://github.com/treygrainger/solr-in-action/tree/master/src/main/java/sia/ch14> .
Nevertheless, you need to pay attention that not all languages are supported by Lucene or Solr. Therefore, some of the languages detected by Google API will not have their responding chain analysis. You need to develop that. In another project, I am following the same approach to develop an AutoAnalyzer for Lucene without using Solr. So, let me know if you want directions in how to do it. Regards Ameer -- View this message in context: http://lucene.472066.n3.nabble.com/Implementing-custom-analyzer-for-multi-language-stemming-tp4150156p4159588.html Sent from the Solr - User mailing list archive at Nabble.com.