Hi all,

in solr 8.11, I am trying to post booleans using the Schema API,
but it looks like I always get strings back.

Request 1:

curl -X POST -H 'Content-type:application/json' --data-binary '{
  "replace-field-type":{
     "name":"rpt",
     "class": "solr.SpatialRecursivePrefixTreeFieldType",
     "spatialContextFactory": "JTS",
     "geo": true,
     "format": "WKT",
     "distErrPct": "0.025",
     "allowMultiOverlap": true,
     "validationRule": "none"
  }
}' http://localhost:8983/solr/exp/schema

Response 1:

{
  "responseHeader":{
    "status":0,
    "QTime":288}}

Then, if I try to query the field type:

curl -H 'Content-type:application/json'
http://localhost:8983/solr/exp/schema/fieldtypes/rpt
{
  "responseHeader":{
    "status":0,
    "QTime":1},
  "fieldType":{
    "name":"rpt",
    "class":"solr.SpatialRecursivePrefixTreeFieldType",
    "geo":"true",
    "omitNorms":true,
    "omitTermFreqAndPositions":true,
    "allowMultiOverlap":"true",
    "spatialContextFactory":"JTS",
    "termOffsets":false,
    "validationRule":"none",
    "distErrPct":"0.025",
    "format":"WKT",
    "termPositions":false,
    "omitPositions":true}}

Please note "geo" and "allowMultiOverlap" keys, they are strings.

Any idea why this is happening?

Cheers

Reply via email to