Answers Module 5 Assessment - Not saving FAQ Vertical

I loose the FAQs verticle in the code environment every time I save and go to account management to for the add filters step. So frustrating. I just decided to save all my code an pop it back in once I go back, but I can’t submit without errors until this is fixed.

Because of this, my search is not updating either.

Hi Bev,

So sorry about that!

What I usually do is open up Account Settings in a new tab (you can do this by right clicking and selecting open in new tab or duplicating your existing tab and then navigating away). This is great feedback for us though and I will see how we can make this workflow more seamless moving forward.

Let me know if that works for you or if there’s more I can do to help.

Thanks,
Liz

1 Like

Good morning Liz,

Thanks for the quick response. I did end up opening a new tab for the account settings. I think it actually happens when I save. I don’t get an error message, and sometimes see the green bar that it is saved, but sometimes I get the orange bar that says “there were no changes in the saved configuration”, which clearly I added a vertical so there had to have been changes made. I am not getting error messages, so that’s a good sign. When I go back to the code the added FAQ vertical is gone, but the savedSearch ID I added to restaurants remains. I have no idea what I might be doing wrong. Also, the updates I made to the two entities in the account settings are still in place and FAQ now shows in the site tab, but the event and store closure aren’t showing.

I added my code below. Of course the red lines don’t show in the Search Config editor. I hit SAVE, but the entire FAQ vertical code that I added still disappears.

{

“$schema”: “https://schema.yext.com/config/answers/answers-config/v1”,

“$id”: “answers”,

“name”: “answers”,

“supportedLocales”: ,

“countryRestrictions”: ,

“verticals”: {

“events”: {

“entityTypes”: [

“event”

],

“name”: “Events”,

“searchableFields”: {

“builtin.entityType”: {

“nlpFilter”: true

},

“name”: {

“textSearch”: true

}

},

“sortBys”: ,

“source”: “KNOWLEDGE_MANAGER”

},

“restaurants”: {

“entityTypes”: [

“restaurant”

],

“name”: “Restaurants”,

“savedSearchId”: “112002255”,

“c_promotingEvents.name”:{

“nlpFilter”: true

},

“searchableFields”: {

“builtin.entityType”: {

“nlpFilter”: true

},

“builtin.location”: {

“nlpFilter”: true

},

“mainPhone”: {

“directAnswer”: true

},

“name”: {

“textSearch”: true

}

},

“sortBys”: ,

“source”: “KNOWLEDGE_MANAGER”

}

},

“synonyms”: {

“oneWay”: [

{

“phrase”: “location”,

“synonyms”: [

“restaurant”

]

}

],

“synonymSet”:

},

“localizations”: {

},

“faqs”: {

“entityTypes”: [

“FAQ”

],

“name”: “FAQs”,

“savedSearchId”: “341195204”,

“searchableFields”: {

“builtin.entityType”: {

“nlpFilter”: true

},

“name”: {

“textSearch”: true

}

},

“keywords”: {

“textSearch”: true

},

“sortBys”: ,

“source”: “KNOWLEDGE_MANAGER”

}

}

image001.jpg

Hi Bev,

So sorry for your frustrations! But, I think I know what the issue is.

The search configuration editor will ignore any top-level objects/properties that it doesn’t recognize and not save them, which is what’s happening to you. The reason it doesn’t recognize your FAQ vertical as valid is because it’s being placed in the top-level, but it needs to be nested inside of the verticals object.

If you copy and paste your FAQ vertical

    "faqs": {
      "entityTypes": [
        "FAQ"
        ],
      "name": "FAQs",
      "savedSearchId": "341195204",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
          },
        "name": {
          "textSearch": true
          }
        },
        "keywords": {
          "textSearch": true
        },
        "sortBys": ,
        "source": "KNOWLEDGE_MANAGER"
        },

into the verticals object (e.g., paste it beneath the events object starting on line 24) it should save. Your beginning of your resulting file would look like this:

{
  "$schema": "https://schema.yext.com/config/answers/answers-config/v1",
  "$id": "answers",
  "name": "answers",
  "supportedLocales": [],
  "countryRestrictions": [],
  "verticals": {
    "events": {
      "entityTypes": [
        "event"
      ],
      "name": "Events",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "faqs": {
      "entityTypes": [
        "FAQ"
        ],
      "name": "FAQs",
      "savedSearchId": "341195204",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
          },
        "name": {
          "textSearch": true
          }
        },
        "keywords": {
          "textSearch": true
        },
        "sortBys": ,
        "source": "KNOWLEDGE_MANAGER"
        },
    "restaurants": {
      "entityTypes": [
      .
      .
      .
      .

Let me know if that works!

Thanks,
Liz

I guess I thought as long as it was under the Vertical just as events and restaurants it would work. I will paste it in between Events and Restaurants and see if that works. If it fails again I’ll let you know.

Thanks!

I got it! Module completed. Thanks!

1 Like