public final TokenStream tokenStream(String fieldName, Reader reader) {
// If this is the topics field, then need to use the notation of "p1$0.45"
if (fieldName.matches("topicspayload.*")){
return new DelimitedPayloadTokenFilter(
new WhitespaceTokenizer(Version.LUCENE_35, reader),
'$', new FloatEncoder());
}
// else, this is a "code" field
return STANDARD.tokenStream(fieldName, reader);
}