Package org.sindice.siren.analysis.filter

Examples of org.sindice.siren.analysis.filter.SirenPayloadFilter


                                                   final Reader reader) {
    final MockSirenReader mockReader = (MockSirenReader) reader;
    final MockSirenTokenizer tokenizer = new MockSirenTokenizer(mockReader);

    TokenStream sink = new PositionAttributeFilter(tokenizer);
    sink = new SirenPayloadFilter(sink);
    return new TokenStreamComponents(tokenizer, sink);
  }
View Full Code Here


    final DatatypeAnalyzerFilter tt = new DatatypeAnalyzerFilter(matchVersion, source, fieldAnalyzer, valueAnalyzer);
    for (final Entry<Object, Analyzer> e : regAnalyzers.entrySet()) {
      tt.register((char[]) e.getKey(), e.getValue());
    }
    TokenStream sink = new PositionAttributeFilter(tt);
    sink = new SirenPayloadFilter(sink);
    return new TokenStreamComponents(source, sink);
  }
View Full Code Here

    final DatatypeAnalyzerFilter tt = new DatatypeAnalyzerFilter(matchVersion, sink, anyURIAnalyzer, stringAnalyzer);
    for (final Entry<Object, Analyzer> e : regLitAnalyzers.entrySet()) {
      tt.register((char[]) e.getKey(), e.getValue());
    }
    sink = new PositionAttributeFilter(tt);
    sink = new SirenPayloadFilter(sink);
    return new TokenStreamComponents(source, sink);
  }
View Full Code Here

          new StandardAnalyzer(matchVersion));
        tok = new LowerCaseFilter(matchVersion, tok);
        // The PositionAttributeFilter and SirenPayloadFilter are mandatory
        // and must be always the last filters in your token stream
        tok = new PositionAttributeFilter(tok);
        tok = new SirenPayloadFilter(tok);
        return new TokenStreamComponents(src, tok);
      }

    };
  }
View Full Code Here

*/
public class SirenPayloadFilterFactory extends TokenFilterFactory {

  @Override
  public TokenStream create(final TokenStream input) {
    return new SirenPayloadFilter(input);
  }
View Full Code Here

TOP

Related Classes of org.sindice.siren.analysis.filter.SirenPayloadFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.