You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by bbarani <bb...@gmail.com> on 2013/05/14 01:28:05 UTC
Need help with using TokenFilterFactory in SOLR 4.3.0
I am trying to upgrade my custom class to support SOLR 4.3.0 (from SOLR
3.5.0) hence I am trying to update my test classes to test the changes.
I got to know that we need to call the TokenFilterFactory with key value
pair map in SOLR 4.3.0 as below,
protected CanadianZipFilterFactory(Map<String, String> args) {
super(args);
}
I am confused about the value that needs to be passed as key value pair. For
ex:
If I have a field name as location and a custom class named
com.solr.analysis.CustomFilterFactory, what should I pass as a key and
value?
<fieldtype name="Location" class="solr.TextField"
positionIncrementGap="100" stored="false" multiValued="true">
<filter class="com.solr.analysis.CustomFilterFactory" />
</fieldtype>
Thanks a lot for your help!!!
--
View this message in context: http://lucene.472066.n3.nabble.com/Need-help-with-using-TokenFilterFactory-in-SOLR-4-3-0-tp4063109.html
Sent from the Lucene - General mailing list archive at Nabble.com.
Re: Need help with using TokenFilterFactory in SOLR 4.3.0
Posted by bbarani <bb...@gmail.com>.
I just passed empty map to ZipFilterFactory method and everything worked
perfectly fine.
Map<String,String> args = new HashMap<String, String>();
ZipFilterFactory factory = new ZipFilterFactory(args);
Thanks,
Barani
--
View this message in context: http://lucene.472066.n3.nabble.com/Need-help-with-using-TokenFilterFactory-in-SOLR-4-3-0-tp4063109p4064767.html
Sent from the Lucene - General mailing list archive at Nabble.com.