2

I am trying to add source to sitecore search using Request Trigger , but I am getting error

Validation Error: the number of dropped documents is over the 25% of crawled documents
Error crawling request
Cause: Message:'Something went wrong for url: https://security.intuit.com/intuit-cookie-policy/', Type:, Code:0, Data:map[cause:Get "https://security.intuit.com/intuit-cookie-policy/": tls: failed to verify certificate: x509: certificate signed by unknown authority statusCode:0]
 Dropping document since it does not have all the required fields
Missing Fields: type
Required Fields: id, type

Sitecore Search Source

I am missing anything ? here

1 Answer 1

1

It looks like the document you are crawling does not have required fields i.e. type in your case. You can control field level settings under the Domain setting tab in the Admnistation.

enter image description here

Inside Attributes in the Domain Settings, you can control which fields are required in your content collection.

Inside the document extractor, since type(Content Type) is a required field by default, make sure you set that field as below.

function extract(request, response) {
    $ = response.body;
    return [{
        'type': // logic to store the type field in the document,
    }];
}

Hope this helps!!!

7
  • I already have checked this and made the changes but still the same issue
    – Manoj
    Commented Sep 26 at 10:29
  • @Manoj Are you setting the type field inside the document extractor..
    – ckhanna
    Commented Sep 26 at 10:45
  • No I am not setting the type field inside the document extractor
    – Manoj
    Commented Sep 26 at 10:50
  • @Manoj ya that why you are getting this issue...I have updated the answer above to set type in document extractor. Let me know in case you have any queries.
    – ckhanna
    Commented Sep 26 at 10:54
  • you can find more details here on the document extractor..https://doc.sitecore.com/search/en/users/search-user-guide/create-a-javascript-document-extractor.html
    – ckhanna
    Commented Sep 26 at 10:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.