Is there some reason that text_general fields are returned as arrays, and
other fields are returned as hashes in the json response from a curl query?

Here's my curl query:

curl "http://10.40.10.14:8983/solr/dbtr/select?indent=on&q=debtor_id:393291";

Here's the response:

response":{"numFound":1,"start":0,"docs":[
      {
        "agent":[" "],
        "assign_id":["587"],
        "client_group":[" "],
        "credit_hold":false,
        "credit_limit":0.0,
        "credit_terms":["N30"],
        "currency":["USD"],
        "debtor_id":"393291",
        "dl1":["165743"],
        "dl2":["Great Plains"],
        "do_not_call":false,
        "do_not_report":false,
        "in_aris_date":"2009-10-19T00:00:00Z",
        "name1":["CRATE & BARREL"],
        "name2":[" "],
        "next_contact_date":"2019-10-17T00:00:00Z",
        "parent_customer_number":["215976"],
        "potential_bad_debt":true,
        "priority_followup":false,
        "reference_no":["165743"],
        "report_as":"CRATE & BARREL",
        "report_status":[" "],
        "risk":["Low"],
        "rms_acct_id":["Berger"],
        "salesperson":["Corp House"],
        "ssn1":["32"],
        "ssn2":["EXEMPT"],
        "status_code":["173"],
        "status_date":"2016-05-12T00:00:00Z",
        "watch_list":[0],
        "_version_":1648384727255613441,
        "data_signature":"f020b831dd6e553eed217125de13de850d1f4bbc"}]
  }}

As you can see, dates and booleans are hashes, and the text_general fields
(the only thing I can think of that is different) are arrays.

Why is this, and how can i make it return just a hash for the code to
handle?

One thing I did notice in the schema API is that even though I did not
choose MultiValued, it's set to true.

Is this a bug?

Thanks,

Rhys

Reply via email to