lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nagarajan Shanmugam (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-2478) DocumentObjectBinder.toSolrInputDocument not processing the dynamic field values.
Date Wed, 27 Apr 2011 05:00:03 GMT

     [ https://issues.apache.org/jira/browse/SOLR-2478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nagarajan Shanmugam updated SOLR-2478:
--------------------------------------

    Description: 
When i tried to add a bean using SolrServer.addBean(). It is actually not processing the dynamic
fileds. 

If I look the index file using lucene luke under the dynamic field name it creating the field.

Example

 Class Bean {
   @Field("oem_*")
   public Map<String,String> oems;
}

schema.xml
<dynamicField name="oem_*" type="textgen" indexed="true" stored="true" multiValued="false"/>

Bean bean = new Bean();
bean.oems.put("oem_1","OEM1");
solrServer.addBean(bean)

When i call this method its adding the document in index. 

Using lucene luke I open the index and look for the field oem_1. But it not found. Instead
it has created the field oem_* and add the map value {oem_1:OEM1}

Is this the way dynamic fields works?


  was:
When i tried to add a bean using SolrServer.addBean(). It is actually not processing the dynamic
fileds. 

If I look the index file using lucene luke under the dynamic field name it creating the field.

Example

 Class Bean{
   @Field("oem_*")
   public Map<String,String> oems;
}

<dynamicField name="oem_*" type="textgen" indexed="true" stored="true" multiValued="false"/>

using solrServer.addBean(new Bean())

It creating a field oem_*? is this right?



> DocumentObjectBinder.toSolrInputDocument not processing the dynamic field values.
> ---------------------------------------------------------------------------------
>
>                 Key: SOLR-2478
>                 URL: https://issues.apache.org/jira/browse/SOLR-2478
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.4.1
>         Environment: solr 1.4.1
>            Reporter: Nagarajan Shanmugam
>
> When i tried to add a bean using SolrServer.addBean(). It is actually not processing
the dynamic fileds. 
> If I look the index file using lucene luke under the dynamic field name it creating the
field.
> Example
>  Class Bean {
>    @Field("oem_*")
>    public Map<String,String> oems;
> }
> schema.xml
> <dynamicField name="oem_*" type="textgen" indexed="true" stored="true" multiValued="false"/>
> Bean bean = new Bean();
> bean.oems.put("oem_1","OEM1");
> solrServer.addBean(bean)
> When i call this method its adding the document in index. 
> Using lucene luke I open the index and look for the field oem_1. But it not found. Instead
it has created the field oem_* and add the map value {oem_1:OEM1}
> Is this the way dynamic fields works?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message