lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanne Grinovero <sanne.grinov...@gmail.com>
Subject Having a default constructor in Analyzers
Date Sun, 07 Feb 2010 17:33:12 GMT
Hello,
I've seen that some core Analyzers are now missing a default
constructor; this is preventing many applications to configure/load
Analyzers by reflection, which is a common use case to have Analyzers
chosen in configuration files.

Would it be possible to add, for example, a constructor like

public StandardAnalyzer() {
   this(Version.LUCENE_CURRENT);
}

?

Of course more advanced use cases would need to pass parameters but
please make the advanced usage optional; I have now seen more than a
single project break because of this (and revert to older Lucene).

Regards,
Sanne

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message