lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhys J <rhyssha...@gmail.com>
Subject Updates via curl and json not showing in api
Date Fri, 13 Dec 2019 16:23:10 GMT
When I do the following update:

curl http://localhost:8983/solr/debt/update -d '[ {"id": "393291-18625",
"orig_int_amt":{ "set" : "2.5"}, }]'

and then:

curl http://localhost:8983/solr/debt/get?id=393291-18625

I see the document is updated via the command line.

It shows the following:

{
  "doc":
  {
    "id":"393291-18625",
    "adjust_int":0.0,
    "adjust_princ":0.0,
    "clt_id":"8032",
    "clt_ref_no":"ORD150000096 000",
    "comments":" ",
    "debt_descr":"PO/XREF: 904-132985337, SHIPPER: BERGER AUSTIN",
    "debt_id":"393291",
    "debt_no":18625,
    "debt_type":"COM",
    "delq_date":"2015-02-08T00:00:00Z",
    "internal_adjustment":0,
    "list_date":"2015-01-13T00:00:00Z",
    "orig_clt":"8032",
    "orig_int_amt":2.5,
    "orig_princ_amt":49.3,
    "potential_bad_debt":0,
    "princ_paid":49.3,
    "reference_no":"invoice:ORD150000096 000",
    "serv_date":"2015-01-09T00:00:00Z",
    "status_code":520,
    "status_date":"2015-02-20T00:00:00Z",
    "storage_account":0,
    "time_stamp":"2015-01-13T06:09:00Z",
    "_version_":1652822026780409856}}

But when I use the Solr Web API, I get the following:

  {
        "id":"393291-18625",
        "adjust_int":0.0,
        "adjust_princ":0.0,
        "clt_id":"8032",
        "clt_ref_no":"ORD150000096 000",
        "comments":" ",
        "debt_descr":"PO/XREF: 904-132985337, SHIPPER: BERGER AUSTIN",
        "debt_id":"393291",
        "debt_no":18625,
        "debt_type":"COM",
        "delq_date":"2015-02-08T00:00:00Z",
        "internal_adjustment":0,
        "list_date":"2015-01-13T00:00:00Z",
        "orig_clt":"8032",
        "orig_int_amt":0.0,
        "orig_princ_amt":49.3,
        "potential_bad_debt":0,
        "princ_paid":49.3,
        "reference_no":"invoice:ORD150000096 000",
        "serv_date":"2015-01-09T00:00:00Z",
        "status_code":520,
        "status_date":"2015-02-20T00:00:00Z",
        "storage_account":0,
        "time_stamp":"2015-01-13T06:09:00Z",
        "_version_":1652734816636895232},

Notice that orig_int_amt is still 0.0.

How do I get the updates to show in the API?

Is there a step I'm missing?

Thanks,

Rhys

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message