Azure Search in Kentico 12 mvc

Yowaraj Chhetri asked on April 2, 2020 10:08

Hi,

I am facing this issue even though I followed the kentico docs regarding azure search indexing.

Created a new azure search in kentico cms. I already got azure cognitive search in azure portal. I used relevant details for azure service setting in the cms. For trial,I just indexed one page type. and saved and rebuild the index. Index status is always giving me a error. I have no idea why is that so. And index is not created in azure portal as well. Can someone advice me if there is anything else that I need to do. Thank you in advance

Recent Answers


Arjan van Hugten answered on April 2, 2020 10:30 (last edited on April 2, 2020 10:40)

Hey,

Could you please add some more details about the error that you are getting. What are the azure settings you filled in? Have you used the correct admin and query keys? Have you configured the correct service name(the part before '.search.windows.net')? What search fields have you configured for your page types?

0 votesVote for this answer Mark as a Correct answer

Yowaraj Chhetri answered on April 3, 2020 03:31

Hi Arjan,

What are the azure settings you filled in? Have you used the correct admin and query keys? Have you configured the correct service name(the part before '.search.windows.net')?

Yes, all the azure search details have been filled up correctly.

azuresearchsettings

What search fields have you configured for your page types?

Currently its just title and description as show below

pagetypes

Thanks in advance

0 votesVote for this answer Mark as a Correct answer

Arjan van Hugten answered on April 3, 2020 09:57 (last edited on April 3, 2020 12:39)

Are there errors showing up on your event log? And what errors do show up in your event log?

Below some errors that I can think of:

Forbidden: Rebuild index forbidden indicates that your service name or admin key might be incorrect.

Different properties: Another error I have walked into with Azure search is having equal fields in azure search with different search properties set. For example if you have two page types with the field 'Title' one with 'Retrievable', 'Searchable' and 'Facetable' and the other with only 'Retrievable' and 'Searchable' this error can show up. Maybe you have the field 'Title' on other page types with no search fields set?

1 votesVote for this answer Mark as a Correct answer

Yowaraj Chhetri answered on April 14, 2020 02:45

Hi Arjan,

Thank you.

The problem was with search field of the page types. One of the int type field was ticked to be searchable, and searchable field must be either Edm.String or Collection(Edm.String).

Now it is resolved.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.