lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <erik.hatc...@gmail.com>
Subject Re: How to define Json list in schema in xml
Date Tue, 23 Dec 2014 10:55:25 GMT
A multiValued="true" string field is what you're after here. 

   Erik


> On Dec 22, 2014, at 23:19, Xin Cai <xincai2483@gmail.com> wrote:
> 
> hi guys
> I am looking to parse a json file that contains fields that has a list of
> schools
> 
> So for example I would have
> 
> 
> {"Schools":[
> name: "Seirra High School",
> name: "Walnut elementary School"]}
> 
> So if I want to be able to index all the different schools so i can fast
> look up with people that went to a certain school, what is the best way for
> me to define the schema file? I have looked around and I don't think Solr
> has a native support for list but I can be wrong because list is used so
> often....Any advice would be appreciated. Thanks
> 
> Xin Cai

Mime
View raw message