lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul നോബിള്‍ नोब्ळ्" <noble.p...@gmail.com>
Subject Re: Exception in SolrJ Client bean indexing
Date Thu, 31 Jul 2008 14:57:51 GMT
If the annotation is applied to a setter method , it should take only one param

On Thu, Jul 31, 2008 at 8:20 PM, Ranjeet <ranjeet.jha@ebusinessware.com> wrote:
> 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



-- 
--Noble Paul

Mime
View raw message