Created
September 3, 2010 08:34
-
-
Save jnioche/563614 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > | |
<analyzer> | |
<tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
<!-- | |
The DelimitedPayloadTokenFilter can put payloads on tokens... for example, | |
a token of "foo|1.4" would be indexed as "foo" with a payload of 1.4f | |
Attributes of the DelimitedPayloadTokenFilterFactory : | |
"delimiter" - a one character delimiter. Default is | (pipe) | |
"encoder" - how to encode the following value into a playload | |
float -> org.apache.lucene.analysis.payloads.FloatEncoder, | |
integer -> o.a.l.a.p.IntegerEncoder | |
identity -> o.a.l.a.p.IdentityEncoder | |
Fully Qualified class name implementing PayloadEncoder, Encoder must have a no arg constructor. | |
--> | |
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> | |
</analyzer> | |
</fieldtype> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment