Attempting to help someone on SO I noticed usafe of an Analyzer definition as follows:
@TokenFilterDef(factory = EdgeNGramFilterFactory.class, params = { @Parameter(name = "maxGramSize", value = "1"), @Parameter(name = "maxGramSize", value = "15") })
We should fail fast on usage of different values for the same parameter name.