LUCENE-3883: add multitermaware to the irish case filter

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1304838 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-03-24 16:05:41 +00:00
parent f597b9a1cc
commit 44695f0f3f
1 changed files with 7 additions and 1 deletions

View File

@ -31,10 +31,16 @@ import org.apache.lucene.analysis.ga.IrishLowerCaseFilter;
* &lt;/fieldType&gt;</pre>
*
*/
public class IrishLowerCaseFilterFactory extends BaseTokenFilterFactory {
public class IrishLowerCaseFilterFactory extends BaseTokenFilterFactory implements MultiTermAwareComponent {
@Override
public TokenStream create(TokenStream input) {
return new IrishLowerCaseFilter(input);
}
// this will 'mostly work', except for special cases, just like most other filters
@Override
public Object getMultiTermComponent() {
return this;
}
}