export default {
  properties: {
    url: { type: 'keyword' }, // exact URL found in the articles
    canonical: { type: 'keyword' }, // The canonical URL fetched from the page
    title: { type: 'text', analyzer: 'cjk' },
    summary: { type: 'text', analyzer: 'cjk' }, // Extracted summary text
    html: { type: 'keyword', index: false, doc_values: false }, // Fetched raw html input.
    // We disables html's indexing and doc_values because html would be super long and cause
    // "DocValuesField is too large" error when indexed or sorted.

    topImageUrl: { type: 'keyword' }, // Image URL for preview

    fetchedAt: { type: 'date' },
    status: { type: 'short' }, // status code of the response
  },
};

@@ -701,16 +701,90 @@
 esponse%0A
+    error: %7B type: 'keyword' %7D, // error returned by cofacts-url-resolver%0A
   %7D,%0A%7D;%0A

Add error field to urls