You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Nagarajan Shanmugam (JIRA)" <ji...@apache.org> on 2011/04/26 17:41:03 UTC

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

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;
}

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

using solrServer.addBean(new Bean())

It creating a field oem_*? is this right?


--
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


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

Posted by "Nagarajan Shanmugam (JIRA)" <ji...@apache.org>.
     [ 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