lucene - Custom class using TokenFilterFactory in SOLR 4.3.0 -


i trying upgrade custom class support solr 4.3.0 (from solr 3.5.0) hence trying update test classes test changes.

i got know need call tokenfilterfactory constructor key value pair map in solr 4.3.0 below,

public class customfilterfactory extends tokenfilterfactory { protected customfilterfactory(map<string, string> args) {         super(args);     } ... } 

i confused value needs passed key value pair. ex:

if have field name location , custom class named com.solr.analysis.customfilterfactory, should pass key , value?

 <fieldtype name="location" class="solr.textfield" positionincrementgap="100" stored="false" multivalued="true">       <filter class="com.solr.analysis.customfilterfactory" /> </fieldtype> 

can below in case if not planning pass other parameter class?

args.put(new hashmap()); customfilterfactory(args); 

thanks lot help!!!

i passed empty map customfilterfactory method , worked fine.

  map<string,string> args = new hashmap<string, string>();   customfilterfactory factory = new customfilterfactory(args); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -