Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Attempting to use insert_field with a non-multivalued field fails. #16

Closed
jcoyne opened this Issue · 5 comments

3 participants

Justin Coyne Adam Wead Chris Beer
Justin Coyne
Owner
Solrizer.insert_field(solr_doc, 'title', 'my_title', :sortable)

causes solr_doc to be:

{'title_si' =>['my_title']}

this then causes a solr error:

Error: {'responseHeader'=>{'status'=>400,'QTime'=>2},'error'=>{'msg'=>'ERROR: [doc=mydoc:12] multiple values encountered for non multiValued field title_si: [my_title]','code'=>400}}
Adam Wead
Owner

Should solrizer catch the error before it goes to solr, or should solrizer handle the solr error more gracefully?

Chris Beer
Owner

is that really all that's in the solrdoc?

Justin Coyne
Owner

@cbeer I'm writing a simplified method of reproducing the error. Of course you'd need id too, but assume that that is added after title_si.

Justin Coyne
Owner

@awead I think there's enough information available that we can query the indexer and ask multivalued? then do the right thing.

Adam Wead
Owner

+1

Justin Coyne jcoyne closed this in d876a43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.