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

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -