Hi All, Just want to confirm on how to add range_...
# community-help
c
Hi All, Just want to confirm on how to add range_index to an existing field via dashboard
Copy code
{
  "fields": [
    {
      "name": count,
      "drop": true
    },
    {
      "name": count,
      "type": "int64",
      "range_index ": true,
    }
  ]
}
• this would drop field? would it also remove current values? • since I only input
name
,
type
and
range_index
, will it use default value on other parameters? Thanks!
f
This would update that field to have
range_index
set to true. It will update every document already indexed in the collection
c
@Fanis Tharropoulos the "drop": true is needed?
f
Yup, that's the way to update existing fields
c
@Fanis Tharropoulos sorry last question, so this would work also?
Copy code
{
  "fields": [
    {
      "name": count,
      "drop": true
    },
    {
      "name": count,
      "range_index ": true,
    }
  ]
}
after drop, I only added the name and range_index
f
It wouldn't work, as you haven't defined its type
c
i see, thanks
🙌 1