lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avlesh Singh <>
Subject Re: storing <key,value> pair in Solr document
Date Mon, 10 Aug 2009 06:06:24 GMT
You can have a dynamicField in your schema called "entity_*" and map it to
the your corresponding data structure in this way:
@Field ("entity_*")
Map<String,String> entity;
The key would be your fieldName (other than the "entity_").

SOLR-1129 <> will give you
more insights.


On Mon, Aug 10, 2009 at 10:58 AM, Ninad Raut <>wrote:

> Hi,
> I have a Entitiy and a Value associated with it. I want to store this value
> as a <key,value> pair in Solr.
> I have a Java Object which I am mapping to Solr Doc using
> org.apache.solr.client.solrj.beans.Field . Can I also store a Map? and how
> can I do so?
> This is how I want it to be done:
> @Field
>  Map<String,String> entity;

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message