I plagiarized Solr's org.apache.solr.analysis.TokenizerChain to read the configuration from a json file:
https://github.com/tballison/lucene-addons/blob/6.x/gramreaper/src/main/java/org/tallison/gramreaper/ingest/schema/MyTokenizerChain.java I wouldn't recommend using anything in gramreaper just yet, but that might give you some ideas. -----Original Message----- From: Nicola Buso [mailto:nb...@ebi.ac.uk] Sent: Friday, June 23, 2017 9:34 AM To: java-user <java-user@lucene.apache.org> Subject: Extending Analyzer at runtime Hi, maybe it's a known question but I could not find and answer. I need to base an Analyzer on another Analyzer at runtime. I know that the Analyzer is a factory and I should really look at combine the Filters. I'm looking for a way to get the TokenStreamComponents from an analyzer at runtime and from there start adding my filters. Did someone already did something similar? Nicola -- Nicola Buso <nb...@ebi.ac.uk> EMBL-EBI --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org