Analyzers can be used at index or search time (most of the time same analyzer is used in both cases, with few exceptions). Now, at search time you analyze user input, not document field value and there's no lang.
You shouldn't use conditional filters but instead define multiple analyzers for the languages you have, define one field per language and index the values to its language fields (like value of title to title_de if lang == "de"):
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.