@@ -0,0 +1,1229 @@
+package org.solr.customfilter;%0A%0Aimport java.io.IOException;%0Aimport org.apache.lucene.analysis.TokenFilter;%0Aimport org.apache.lucene.analysis.TokenStream;%0Aimport org.apache.lucene.analysis.tokenattributes.CharTermAttribute;%0A%0A%0Apublic final class VowelConsonentFilter extends TokenFilter %7B%0A%09private CharTermAttribute charTermAttr;%0A%0A%0A%09protected VowelConsonentFilter(TokenStream ts) %7B%0A%09%09super(ts);%0A%09%09this.charTermAttr = addAttribute(CharTermAttribute.class);%0A%09%7D%0A%0A%09@Override%0A%09public boolean incrementToken() throws IOException %7B%0A%09%09if (!input.incrementToken()) %7B%0A%09%09%09return false;%0A%09%09%7D%0A            String str = new String(charTermAttr.buffer());%0A            String vowel=%22%22;%0A            char%5B%5D charArray = str.toCharArray();%0A            for (int x = 0; x %3C charArray.length; x ++) %7B%0A                if (isVowel(charArray%5Bx%5D)) %7B%0A                    vowel+=charArray%5Bx%5D;%0A                %7D%0A            %7D%0A            charTermAttr.setEmpty();%0A            charTermAttr.copyBuffer(vowel.toCharArray(), 0, vowel.length());%0A%09%09return true;%0A%09%7D%0A%09%0A%09boolean isVowel (char t) %7B%0A        return t == 'a' %7C%7C t == 'e' %7C%7C t == 'i' %7C%7C t == 'o' %7C%7C t == 'u'%0A                %7C%7C t == 'A' %7C%7C t == 'E' %7C%7C t == 'I' %7C%7C t == 'O'%0A                %7C%7C t == 'U'; %0A    %7D%0A%0A%7D%0A

Create VowelConsonentFilter.java