Hi, I have attached the souce code to index the document by solrJ. I am trying this by pojo by refering "http://wiki.apache.org/solr/Solrj" to prepare clinet of SolrJ. please guide me how to handle this problem.
1. Exception throws: e : Invalid setter method. Must have one and only one parameter java.lang.RuntimeException: Invalid setter method. Must have one and only one parameter at org.apache.solr.client.solrj.beans.DocumentObjectBinder$DocField.storeType(DocumentObjectBinder.java:171) at org.apache.solr.client.solrj.beans.DocumentObjectBinder$DocField.<init>(DocumentObjectBinder.java:122) at org.apache.solr.client.solrj.beans.DocumentObjectBinder.collectInfo(DocumentObjectBinder.java:100) at org.apache.solr.client.solrj.beans.DocumentObjectBinder.getDocFields(DocumentObjectBinder.java:82) at org.apache.solr.client.solrj.beans.DocumentObjectBinder.toSolrInputDocument(DocumentObjectBinder.java:65) at org.apache.solr.client.solrj.SolrServer.addBean(SolrServer.java:67) at com.xonos.ecommerce.search.web.action.IndexBeanSolrJ.indexByBean(IndexBeanSolrJ.java:53) at com.xonos.ecommerce.search.web.action.IndexBeanSolrJ.main(IndexBeanSolrJ.java:72) 2. Data definition in schema.xml are: <field name="id" type="string" indexed="true" stored="true"/> <field name="sku" type="textTight" indexed="true" stored="true" omitNorms="true"/> <field name="name" type="text" indexed="true" stored="true"/> <field name="manu" type="text" indexed="true" stored="true" omitNorms="true"/> <field name="cat" type="text_ws" indexed="true" stored="true" multiValued="true" omitNorms="true"/> <field name="features" type="text" indexed="true" stored="true" multiValued="true"/> <field name="weight" type="sfloat" indexed="true" stored="true"/> <field name="price" type="sfloat" indexed="true" stored="true"/> <field name="inStock" type="boolean" indexed="true" stored="true"/> <field name="bigimagename" type="text" indexed="true" stored="true"/> <field name="thumbimagename" type="text" indexed="true" stored="true"/> <field name="featurelink" type="text" indexed="true" stored="true"/> <field name="reviewlink" type="text" indexed="true" stored="true"/> Regards, Ranjeet