Custom index rules for Salesforce not updating the index

I have specified custom indexing rules for my Salesforce content source as such:

"include": "Product2",
 "filter_type": "object_type",
 "fields": [
      {
          "remote": "Name",
          "target": "title"
      }
 ]

Doing this as the first thing after creating the connection to the content source, succesfully adds all product2 items to the index with the title field containing it's name.

When i try to update the index rules with the following, it doesn't actually update the index. This means the items in the index still contains the title field, but none of the new fields.

"include": "Product2",
 "filter_type": "object_type",
 "fields": [
    {
        "remote": "Name",
        "target": "title"
    },
    {
        "remote": "Description",
        "target": "desc"
    },
    {
        "remote": "ProductCode",
        "target": "sku"
    },
    {
        "remote": "ImageURL__c",
        "target": "img_url"
    }
]
...
"schema": [
   ...
   "desc": "text",
   "sku": "text",
   "img_url: "text"
]

Updating the indexing rules seems to be inconsistent in general, as even if i exclude Product2 it doesn't remove the items from the index.

The problem doesn't seem to anything to do with ProductCode and Description, as I have been able to index them before.

I have tried:

  • "product2" instead of "Product2"
  • Removing the content source and connecting again
  • Targeting fields already in the schema

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.