Solr - Create List Type Field -
how create solr field stores list of ints? thought should doable can not find documents describe how. checked solr field type list appears listtype not supported default. help?
simply make sure field has multivalued="true", , can add many values want field.
an example of adding multiple values in json format:
$ url=http://localhost:8983/solr/update/json $ curl $url -h 'content-type:application/json' -d ' [ { "id" : "mytestdocument", "my_int_field" : [10, 100, 5, 25, 59] } ]'
Comments
Post a Comment