You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alexandre Rafalovitch (JIRA)" <ji...@apache.org> on 2016/10/02 01:33:20 UTC

[jira] [Closed] (SOLR-2478) DocumentObjectBinder.toSolrInputDocument not processing the dynamic field values.

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

Alexandre Rafalovitch closed SOLR-2478.
---------------------------------------
    Resolution: Incomplete

A clarification question about ancient functionality. No next action.

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

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