final Version matchVersion = Version.LUCENE_40;
final JsonTokenizer src = new JsonTokenizer(reader);
TokenStream tok = new DatatypeAnalyzerFilter(matchVersion, src,
new StandardAnalyzer(matchVersion),
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);