I tried your field type in Solr 4.0-BETA and it works fine for input such
as:
cat,dog|fox,bat|frog
What do you see when you use the Solr Admin Analysis web page for that text
for your field type?
I would note that your pattern does not permit spaces as delimiters or after
delimiters, so if your input had spaces, queries could fail unless they
included the escaped spaces.
-- Jack Krupansky
-----Original Message-----
From: Suneel
Sent: Tuesday, September 11, 2012 2:20 PM
To: solr-user@lucene.apache.org
Subject: PatternTokenizerFactory not working to split comma separated value
Hello ,
I am using following field type for comma separated value but it is not
working.
<fieldType name="commaDelimited" class="solr.TextField">
<analyzer>
<tokenizer class="solr.PatternTokenizerFactory" group="-1"
pattern=",|\|" />
</analyzer>
</fieldType>
<field indexed="true" multiValued="true" name="vc_cat_shape"
omitNorms="true" omitPositions="true" omitTermFreqAndPositions="true"
stored="false" termVectors="false" type="commaDelimited"/>
Please suggested what i did wrong.
-----
Regards,
Suneel Pandey
Sr. Software Developer
--
View this message in context:
http://lucene.472066.n3.nabble.com/PatternTokenizerFactory-not-working-to-split-comma-separated-value-tp4006994.html
Sent from the Solr - User mailing list archive at Nabble.com.