mirror of https://github.com/apache/lucene.git
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:
parent
f597b9a1cc
commit
44695f0f3f
|
@ -31,10 +31,16 @@ import org.apache.lucene.analysis.ga.IrishLowerCaseFilter;
|
|||
* </fieldType></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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue