10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.25k stars 313 forks source link

The cake is a lie (a.k.a. messaed up search results) #699

Closed mikelking closed 7 years ago

mikelking commented 7 years ago

Hopefully that got everyone's attention. 😈

So we have a problem with ElasticPress in that the search results when a search s performed through the production site differs form the results on origin.

http://www.rd.com/?s=cake === wacky results none of which are cake related

http://origin-www.rd.com/?s=cake === relatively perfect results in which nearly ALL are cake related

Additional info www is hosted via Cloudflare our CDN provider and pulls data in through origin-www which is hosted on WPE. Our Elasticsearch service is on AWS.

I am wondering if there is anyway to configure the plugin to account for this CDN anomaly?

WWW results www-cdn-search-results

Origin results origin-search-results

tlovett1 commented 7 years ago

Can you show us what explain looks like?

mikelking commented 7 years ago

@tlovett1,

Thanks for the fast response, we are working it.

mikelking commented 7 years ago

@tlovett1,

Is this what you are looking for? Query

POST _search
{
    "explain": true,
   "query": {
       "query_string": {
           "query": "cake" 
       }
   }
}

Results

{
   "took": 44,
   "timed_out": false,
   "_shards": {
      "total": 21,
      "successful": 21,
      "failed": 0
   },
   "hits": {
      "total": 560,
      "max_score": 1.1447357,
      "hits": [
         {
            "_shard": 2,
            "_node": "W6Kb61BSSpaHfLMTbNGEYQ",
            "_index": "rdcom-2",
            "_type": "post",
            "_id": "131760",
            "_score": 1.1447357,
            "_source": {
               "post_id": 131760,
               "ID": 131760,
               "post_author": {
                  "raw": "brandon.specktor",
                  "login": "brandon.specktor",
                  "display_name": "Brandon Specktor",
                  "id": 85
               },
               "post_date": "2014-03-12 16:29:46",
               "post_date_gmt": "2014-03-12 20:29:46",
               "post_title": "Taking The Cake",
               "post_excerpt": "",
               "post_content": "<p>“You can’t have your cake and 
eat it too.”—People who don’t understand what cake 
is for.</p>\n<p><em>—@ShiraSelko</em></p>\n",
               "post_status": "publish",
               "post_name": "taking-the-cake",
               "post_modified": "2015-09-11 10:06:54",
               "post_modified_gmt": "2015-09-11 14:06:54",
               "post_parent": 0,
               "post_type": "joke",
               "post_mime_type": "",
               "permalink": "http://www.rd.com/joke/taking-the-cake/",
               "terms": {
                  "category": [
                     {
                        "term_id": 1133,
                        "slug": "funny",
                        "name": "Funny Jokes",
                        "parent": 0
                     }
                  ],
                  "Joke-Topic": [
                     {
                        "term_id": 1388,
                        "slug": "one-liners",
                        "name": "One-Liners",
                        "parent": 0
                     }
                  ]
               },
               "post_meta": {
                  "primary_tag": [
                     "one-liners"
                  ]
               },
               "date_terms": {
                  "year": 2014,
                  "month": 3,
                  "week": 11,
                  "dayofyear": 70,
                  "day": 12,
                  "dayofweek": 3,
                  "dayofweek_iso": 3,
                  "hour": 16,
                  "minute": 29,
                  "second": 46,
                  "m": 201403
               },
               "comment_count": 0,
               "comment_status": 0,
               "ping_status": 0,
               "menu_order": 0,
               "guid": "http://www.rd.com/?post_type=laughs&#038;p=109382",
               "meta": {
                  "primary_tag": [
                     {
                        "value": "one-liners",
                        "raw": "one-liners",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ]
               }
            },
            "_explanation": {
               "value": 1.1447357,
               "description": "weight(_all:cake in 899) [PerFieldSimilarity], result of:",
               "details": [
                  {
                     "value": 1.1447357,
                     "description": "fieldWeight in 899, product of:",
                     "details": [
                        {
                           "value": 2.236068,
                           "description": "tf(freq=5.0), with freq of:",
                           "details": [
                              {
                                 "value": 5,
                                 "description": "termFreq=5.0"
                              }
                           ]
                        },
                        {
                           "value": 4.680607,
                           "description": "idf(docFreq=87, maxDocs=3491)"
                        },
                        {
                           "value": 0.109375,
                           "description": "fieldNorm(doc=899)"
                        }
                     ]
                  }
               ]
            }
         },
         {
            "_shard": 2,
            "_node": "W6Kb61BSSpaHfLMTbNGEYQ",
            "_index": "rdcom-2",
            "_type": "post",
            "_id": "347",
            "_score": 1.0970173,
            "_source": {
               "post_id": 347,
               "ID": 347,
               "post_author": {
                  "raw": "admin_2013",
                  "login": "admin_2013",
                  "display_name": "Reader's Digest Editors",
                  "id": 90
               },
               "post_date": "2006-05-10 00:00:00",
               "post_date_gmt": "2006-05-10 00:00:00",
               "post_title": "Eggless Chocolate Cake",
               "post_excerpt": "This rich cake drizzled with semi-sweet chocolate is special enough for company.",
               "post_content": "<div id=\"quicklook-recipe\"><h2>Quick look</h2><ul><li class=\"line1 \"><span class=\"time1\">prep 15 min&nbsp;&nbsp;&nbsp; cook 40 min</span></li><li class='line2 more'><span class=\"serve\">serves 14</span></li> </ul></div>\n\n<p><strong></strong></p>\n<p><strong></strong></p>\n",
               "post_status": "publish",
               "post_name": "eggless-chocolate-cake-recipe",
               "post_modified": "2011-01-14 15:55:53",
               "post_modified_gmt": "2011-01-14 20:55:53",
               "post_parent": 0,
               "post_type": "post",
               "post_mime_type": "",
               "permalink": "http://www.rd.com/health/healthy-eating/eggless-chocolate-cake-recipe/",
               "terms": {
                  "category": [
                     {
                        "term_id": 1114,
                        "slug": "healthy-eating",
                        "name": "Healthy Eating",
                        "parent": 2
                     }
                  ],
                  "post_tag": [
                     {
                        "term_id": 430,
                        "slug": "dessert",
                        "name": "Dessert",
                        "parent": 0
                     }
                  ],
                  "source": [
                     {
                        "term_id": 2040,
                        "slug": "original",
                        "name": "Original to TMBI",
                        "parent": 0
                     }
                  ],
                  "tmbi_first_associated": [
                     {
                        "term_id": 3951,
                        "slug": "rd",
                        "name": "Reader's Digest",
                        "parent": 3949
                     }
                  ]
               },
               "post_meta": {
                  "custom_post_template": [
                     "Recipe Reprinted"
                  ],
                  "subhead_text": [
                     "This rich cake drizzled with semi-sweet chocolate is special enough for company."
                  ],
                  "by_line": [
                     ""
                  ],
                  "footer_text": [
                     null
                  ],
                  "source": [
                     "Light & Tasty"
                  ],
                  "source_issue": [
                     ""
                  ],
                  "img_caption": [
                     "Eggless Chocolate Cake"
                  ],
                  "img_credit": [
                     ""
                  ],
                  "sharedcount_updated": [
                     "2016-05-27 05:44:18"
                  ],
                  "sharedcount_count": [
                     "1"
                  ]
               },
               "date_terms": {
                  "year": 2006,
                  "month": 5,
                  "week": 19,
                  "dayofyear": 129,
                  "day": 10,
                  "dayofweek": 3,
                  "dayofweek_iso": 3,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "m": 200605
               },
               "comment_count": 0,
               "comment_status": 0,
               "ping_status": 0,
               "menu_order": 0,
               "guid": "http://www.rd.com/Food/eggless-chocolate-cake-recipe",
               "meta": {
                  "custom_post_template": [
                     {
                        "value": "Recipe Reprinted",
                        "raw": "Recipe Reprinted",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "subhead_text": [
                     {
                        "value": "This rich cake drizzled with semi-sweet chocolate is special enough for company.",
                        "raw": "This rich cake drizzled with semi-sweet chocolate is special enough for company.",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "by_line": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "footer_text": [
                     {
                        "value": null,
                        "raw": null,
                        "boolean": false
                     }
                  ],
                  "source": [
                     {
                        "value": "Light & Tasty",
                        "raw": "Light & Tasty",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "source_issue": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "img_caption": [
                     {
                        "value": "Eggless Chocolate Cake",
                        "raw": "Eggless Chocolate Cake",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "img_credit": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "sharedcount_updated": [
                     {
                        "value": "2016-05-27 05:44:18",
                        "raw": "2016-05-27 05:44:18",
                        "boolean": false,
                        "date": "2016-05-27",
                        "datetime": "2016-05-27 05:44:18",
                        "time": "05:44:18"
                     }
                  ],
                  "sharedcount_count": [
                     {
                        "value": "1",
                        "raw": "1",
                        "long": 1,
                        "double": 1,
                        "boolean": true,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ]
               }
            },
            "_explanation": {
               "value": 1.0970173,
               "description": "weight(_all:cake in 949) [PerFieldSimilarity], result of:",
               "details": [
                  {
                     "value": 1.0970173,
                     "description": "fieldWeight in 949, product of:",
                     "details": [
                        {
                           "value": 3,
                           "description": "tf(freq=9.0), with freq of:",
                           "details": [
                              {
                                 "value": 9,
                                 "description": "termFreq=9.0"
                              }
                           ]
                        },
                        {
                           "value": 4.680607,
                           "description": "idf(docFreq=87, maxDocs=3491)"
                        },
                        {
                           "value": 0.078125,
                           "description": "fieldNorm(doc=949)"
                        }
                     ]
                  }
               ]
            }
         },
         {
            "_shard": 3,
            "_node": "W6Kb61BSSpaHfLMTbNGEYQ",
            "_index": "rdcom-2",
            "_type": "post",
            "_id": "622",
            "_score": 1.0458913,
            "_source": {
               "post_id": 622,
               "ID": 622,
               "post_author": {
                  "raw": "admin_2013",
                  "login": "admin_2013",
                  "display_name": "Reader's Digest Editors",
                  "id": 90
               },
               "post_date": "2006-06-05 00:00:00",
               "post_date_gmt": "2006-06-05 00:00:00",
               "post_title": "Iced Pear-Chocolate Cake",
               "post_excerpt": "Slices of soft pear are captured inside this chocolate-flecked cake.",
               "post_content": "<div id=\"quicklook-recipe\"><h2>Quick look</h2><ul><li class=\"line1 \"><span class=\"time1\">prep 40 min&nbsp;&nbsp;&nbsp; cook 40 min</span></li><li class='line2 more'><span class=\"serve\">serves 8-10</span></li> </ul></div>\n\n\n",
               "post_status": "publish",
               "post_name": "iced-pear-chocolate-cake-recipe",
               "post_modified": "2011-01-14 14:27:52",
               "post_modified_gmt": "2011-01-14 19:27:52",
               "post_parent": 0,
               "post_type": "post",
               "post_mime_type": "",
               "permalink": "http://www.rd.com/food/recipes-cooking/iced-pear-chocolate-cake-recipe/",
               "terms": {
                  "category": [
                     {
                        "term_id": 1192,
                        "slug": "recipes-cooking",
                        "name": "Recipes &amp; Cooking",
                        "parent": 13
                     }
                  ],
                  "source": [
                     {
                        "term_id": 2040,
                        "slug": "original",
                        "name": "Original to TMBI",
                        "parent": 0
                     }
                  ],
                  "tmbi_first_associated": [
                     {
                        "term_id": 3951,
                        "slug": "rd",
                        "name": "Reader's Digest",
                        "parent": 3949
                     }
                  ]
               },
               "post_meta": {
                  "custom_post_template": [
                     "Recipe Reprinted"
                  ],
                  "subhead_text": [
                     "Slices of soft pear are captured inside this chocolate-flecked cake."
                  ],
                  "by_line": [
                     ""
                  ],
                  "footer_text": [
                     null
                  ],
                  "source": [
                     "Chocolate Sensations"
                  ],
                  "source_issue": [
                     ""
                  ],
                  "img_caption": [
                     "Iced Pear-Chocolate Cake"
                  ],
                  "img_credit": [
                     ""
                  ],
                  "sharedcount_updated": [
                     "2016-05-27 05:39:45"
                  ]
               },
               "date_terms": {
                  "year": 2006,
                  "month": 6,
                  "week": 23,
                  "dayofyear": 155,
                  "day": 5,
                  "dayofweek": 1,
                  "dayofweek_iso": 1,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "m": 200606
               },
               "comment_count": 0,
               "comment_status": 0,
               "ping_status": 0,
               "menu_order": 0,
               "guid": "http://www.rd.com/Food/iced-pear-chocolate-cake-recipe",
               "meta": {
                  "custom_post_template": [
                     {
                        "value": "Recipe Reprinted",
                        "raw": "Recipe Reprinted",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "subhead_text": [
                     {
                        "value": "Slices of soft pear are captured inside this chocolate-flecked cake.",
                        "raw": "Slices of soft pear are captured inside this chocolate-flecked cake.",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "by_line": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "footer_text": [
                     {
                        "value": null,
                        "raw": null,
                        "boolean": false
                     }
                  ],
                  "source": [
                     {
                        "value": "Chocolate Sensations",
                        "raw": "Chocolate Sensations",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "source_issue": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "img_caption": [
                     {
                        "value": "Iced Pear-Chocolate Cake",
                        "raw": "Iced Pear-Chocolate Cake",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "img_credit": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "sharedcount_updated": [
                     {
                        "value": "2016-05-27 05:39:45",
                        "raw": "2016-05-27 05:39:45",
                        "boolean": false,
                        "date": "2016-05-27",
                        "datetime": "2016-05-27 05:39:45",
                        "time": "05:39:45"
                     }
                  ]
               }
            },
            "_explanation": {
               "value": 1.0458913,
               "description": "weight(_all:cake in 879) [PerFieldSimilarity], result of:",
               "details": [
                  {
                     "value": 1.0458913,
                     "description": "fieldWeight in 879, product of:",
                     "details": [
                        {
                           "value": 3,
                           "description": "tf(freq=9.0), with freq of:",
                           "details": [
                              {
                                 "value": 9,
                                 "description": "termFreq=9.0"
                              }
                           ]
                        },
                        {
                           "value": 4.4624696,
                           "description": "idf(docFreq=114, maxDocs=3668)"
                        },
                        {
                           "value": 0.078125,
                           "description": "fieldNorm(doc=879)"
                        }
                     ]
                  }
               ]
            }
         },
         {
            "_shard": 0,
            "_node": "W6Kb61BSSpaHfLMTbNGEYQ",
            "_index": "rdcom-2",
            "_type": "post",
            "_id": "528",
            "_score": 0.98618555,
            "_source": {
               "post_id": 528,
               "ID": 528,
               "post_author": {
                  "raw": "admin_2013",
                  "login": "admin_2013",
                  "display_name": "Reader's Digest Editors",
                  "id": 90
               },
               "post_date": "2006-05-10 00:00:00",
               "post_date_gmt": "2006-05-10 00:00:00",
               "post_title": "Basic Coconut Cake",
               "post_excerpt": "Coconut adds flavor and texture to cake batter.",
               "post_content": "<div id=\"quicklook-recipe\"><h2>Quick look</h2><ul><li class=\"line1 \"><span class=\"time1\">prep 25 min&nbsp;&nbsp;&nbsp; cook 45 min</span></li><li class=\"line3\">Yield: 8-inch cake</li></ul></div>\n<p><strong></strong></p>\n<p><strong></strong></p>\n",
               "post_status": "publish",
               "post_name": "basic-coconut-cake-recipe",
               "post_modified": "2011-01-14 14:44:44",
               "post_modified_gmt": "2011-01-14 19:44:44",
               "post_parent": 0,
               "post_type": "post",
               "post_mime_type": "",
               "permalink": "http://www.rd.com/food/recipes-cooking/basic-coconut-cake-recipe/",
               "terms": {
                  "category": [
                     {
                        "term_id": 1192,
                        "slug": "recipes-cooking",
                        "name": "Recipes &amp; Cooking",
                        "parent": 13
                     }
                  ],
                  "post_tag": [
                     {
                        "term_id": 430,
                        "slug": "dessert",
                        "name": "Dessert",
                        "parent": 0
                     }
                  ],
                  "source": [
                     {
                        "term_id": 2040,
                        "slug": "original",
                        "name": "Original to TMBI",
                        "parent": 0
                     }
                  ],
                  "tmbi_first_associated": [
                     {
                        "term_id": 3951,
                        "slug": "rd",
                        "name": "Reader's Digest",
                        "parent": 3949
                     }
                  ]
               },
               "post_meta": {
                  "custom_post_template": [
                     "Recipe Reprinted"
                  ],
                  "subhead_text": [
                     "Coconut adds flavor and texture to cake batter."
                  ],
                  "by_line": [
                     ""
                  ],
                  "footer_text": [
                     null
                  ],
                  "source": [
                     "Cakes: 1,001 Classic Recipes From Around the World"
                  ],
                  "source_issue": [
                     ""
                  ],
                  "sharedcount_updated": [
                     "2016-05-27 05:44:22"
                  ],
                  "sharedcount_count": [
                     "1"
                  ]
               },
               "date_terms": {
                  "year": 2006,
                  "month": 5,
                  "week": 19,
                  "dayofyear": 129,
                  "day": 10,
                  "dayofweek": 3,
                  "dayofweek_iso": 3,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "m": 200605
               },
               "comment_count": 0,
               "comment_status": 0,
               "ping_status": 0,
               "menu_order": 0,
               "guid": "http://www.rd.com/Food/basic-coconut-cake-recipe",
               "meta": {
                  "custom_post_template": [
                     {
                        "value": "Recipe Reprinted",
                        "raw": "Recipe Reprinted",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "subhead_text": [
                     {
                        "value": "Coconut adds flavor and texture to cake batter.",
                        "raw": "Coconut adds flavor and texture to cake batter.",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "by_line": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "footer_text": [
                     {
                        "value": null,
                        "raw": null,
                        "boolean": false
                     }
                  ],
                  "source": [
                     {
                        "value": "Cakes: 1,001 Classic Recipes From Around the World",
                        "raw": "Cakes: 1,001 Classic Recipes From Around the World",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "source_issue": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "sharedcount_updated": [
                     {
                        "value": "2016-05-27 05:44:22",
                        "raw": "2016-05-27 05:44:22",
                        "boolean": false,
                        "date": "2016-05-27",
                        "datetime": "2016-05-27 05:44:22",
                        "time": "05:44:22"
                     }
                  ],
                  "sharedcount_count": [
                     {
                        "value": "1",
                        "raw": "1",
                        "long": 1,
                        "double": 1,
                        "boolean": true,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ]
               }
            },
            "_explanation": {
               "value": 0.98618555,
               "description": "weight(_all:cake in 871) [PerFieldSimilarity], result of:",
               "details": [
                  {
                     "value": 0.98618555,
                     "description": "fieldWeight in 871, product of:",
                     "details": [
                        {
                           "value": 2.828427,
                           "description": "tf(freq=8.0), with freq of:",
                           "details": [
                              {
                                 "value": 8,
                                 "description": "termFreq=8.0"
                              }
                           ]
                        },
                        {
                           "value": 4.4629664,
                           "description": "idf(docFreq=112, maxDocs=3606)"
                        },
                        {
                           "value": 0.078125,
                           "description": "fieldNorm(doc=871)"
                        }
                     ]
                  }
               ]
            }
         },
         {
            "_shard": 3,
            "_node": "W6Kb61BSSpaHfLMTbNGEYQ",
            "_index": "rdcom-2",
            "_type": "post",
            "_id": "132106",
            "_score": 0.97616524,
            "_source": {
               "post_id": 132106,
               "ID": 132106,
               "post_author": {
                  "raw": "brandon.specktor",
                  "login": "brandon.specktor",
                  "display_name": "Brandon Specktor",
                  "id": 85
               },
               "post_date": "2015-02-26 11:36:20",
               "post_date_gmt": "2015-02-26 16:36:20",
               "post_title": "The Star of Cake Boss Was Arrested&#8230;",
               "post_excerpt": "",
               "post_content": "<p>The star of Cake Boss was 
arrested for DWI. Police interrogated him for 30 minutes at 350 degrees.</p>\n<p><em>Comedian Joe Toplyn</em></p>\n",
               "post_status": "publish",
               "post_name": "the-star-of-cake-boss-was-arrested",
               "post_modified": "2015-09-11 10:07:14",
               "post_modified_gmt": "2015-09-11 14:07:14",
               "post_parent": 0,
               "post_type": "joke",
               "post_mime_type": "",
               "permalink": "http://www.rd.com/joke/the-star-of-cake-boss-was-arrested/",
               "terms": {
                  "category": [
                     {
                        "term_id": 1133,
                        "slug": "funny",
                        "name": "Funny Jokes",
                        "parent": 0
                     }
                  ],
                  "Joke-Topic": [
                     {
                        "term_id": 1364,
                        "slug": "corny",
                        "name": "Corny Jokes",
                        "parent": 0
                     },
                     {
                        "term_id": 1388,
                        "slug": "one-liners",
                        "name": "One-Liners",
                        "parent": 0
                     },
                     {
                        "term_id": 1389,
                        "slug": "political",
                        "name": "Political Jokes",
                        "parent": 0
                     }
                  ]
               },
               "post_meta": {
                  "primary_tag": [
                     "one-liners"
                  ],
                  "addthis_shares": [
                     "1"
                  ]
               },
               "date_terms": {
                  "year": 2015,
                  "month": 2,
                  "week": 9,
                  "dayofyear": 56,
                  "day": 26,
                  "dayofweek": 4,
                  "dayofweek_iso": 4,
                  "hour": 11,
                  "minute": 36,
                  "second": 20,
                  "m": 201502
               },
               "comment_count": 0,
               "comment_status": 0,
               "ping_status": 0,
               "menu_order": 0,
               "guid": "http://www.rd.com/?post_type=laughs&#038;p=124604",
               "meta": {
                  "primary_tag": [
                     {
                        "value": "one-liners",
                        "raw": "one-liners",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "addthis_shares": [
                     {
                        "value": "1",
                        "raw": "1",
                        "long": 1,
                        "double": 1,
                        "boolean": true,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ]
               }
            },
            "_explanation": {
               "value": 0.97616524,
               "description": "weight(_all:cake in 1781) [PerFieldSimilarity], result of:",
               "details": [
                  {
                     "value": 0.97616524,
                     "description": "fieldWeight in 1781, product of:",
                     "details": [
                        {
                           "value": 2,
                           "description": "tf(freq=4.0), with freq of:",
                           "details": [
                              {
                                 "value": 4,
                                 "description": "termFreq=4.0"
                              }
                           ]
                        },
                        {
                           "value": 4.4624696,
                           "description": "idf(docFreq=114, maxDocs=3668)"
                        },
                        {
                           "value": 0.109375,
                           "description": "fieldNorm(doc=1781)"
                        }
                     ]
                  }
               ]
            }
         },
         {
            "_shard": 1,
            "_node": "W6Kb61BSSpaHfLMTbNGEYQ",
            "_index": "rdcom-2",
            "_type": "post",
            "_id": "651",
            "_score": 0.9689281,
            "_source": {
               "post_id": 651,
               "ID": 651,
               "post_author": {
                  "raw": "admin_2013",
                  "login": "admin_2013",
                  "display_name": "Reader's Digest Editors",
                  "id": 90
               },
               "post_date": "2008-09-27 00:00:00",
               "post_date_gmt": "2008-09-27 00:00:00",
               "post_title": "Drummer Boy Cake",
               "post_excerpt": "Drum up praise from your guests by serving this stunning Christmas cake.",
               "post_content": "\n<p>Looking for an impressive finale to your holiday dinner? This spectacular dessert, drummed up by our  test kitchen, features a sweet-tart cranberry topping paired with a tangy orange cake and filling.</p>\n<p><strong> </strong></p>\n<p><em></em></p>\n\n\n\n\n\n<p><strong>Serves: </strong>12-15</p>\n<p><strong>*Editor&#8217;s Note:</strong> This recipe was prepared with Duncan Hines yellow cake mix. Use of a coupler ring will allow you to easily change pastry tips for different designs.</p>\n",
               "post_status": "publish",
               "post_name": "drummer-boy-cake-recipe",
               "post_modified": "2011-01-15 16:24:56",
               "post_modified_gmt": "2011-01-15 21:24:56",
               "post_parent": 0,
               "post_type": "post",
               "post_mime_type": "",
               "permalink": "http://www.rd.com/food/recipes-cooking/drummer-boy-cake-recipe/",
               "terms": {
                  "category": [
                     {
                        "term_id": 1192,
                        "slug": "recipes-cooking",
                        "name": "Recipes &amp; Cooking",
                        "parent": 13
                     }
                  ],
                  "post_tag": [
                     {
                        "term_id": 18,
                        "slug": "christmas",
                        "name": "Christmas",
                        "parent": 0
                     },
                     {
                        "term_id": 430,
                        "slug": "dessert",
                        "name": "Dessert",
                        "parent": 0
                     }
                  ],
                  "source": [
                     {
                        "term_id": 2040,
                        "slug": "original",
                        "name": "Original to TMBI",
                        "parent": 0
                     }
                  ],
                  "tmbi_first_associated": [
                     {
                        "term_id": 3951,
                        "slug": "rd",
                        "name": "Reader's Digest",
                        "parent": 3949
                     }
                  ]
               },
               "post_meta": {
                  "custom_post_template": [
                     "Recipe Reprinted"
                  ],
                  "subhead_text": [
                     "Drum up praise from your guests by serving this stunning Christmas cake."
                  ],
                  "by_line": [
                     ""
                  ],
                  "footer_text": [
                     null
                  ],
                  "source": [
                     null
                  ],
                  "source_issue": [
                     ""
                  ],
                  "img_caption": [
                     "Drummer Boy Cake "
                  ],
                  "img_credit": [
                     ""
                  ],
                  "sharedcount_updated": [
                     "2016-05-27 04:56:10"
                  ],
                  "addthis_shares": [
                     "1"
                  ]
               },
               "date_terms": {
                  "year": 2008,
                  "month": 9,
                  "week": 39,
                  "dayofyear": 270,
                  "day": 27,
                  "dayofweek": 6,
                  "dayofweek_iso": 6,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "m": 200809
               },
               "comment_count": 0,
               "comment_status": 0,
               "ping_status": 0,
               "menu_order": 0,
               "guid": "http://www.rd.com/Food/drummer-boy-cake-recipe",
               "meta": {
                  "custom_post_template": [
                     {
                        "value": "Recipe Reprinted",
                        "raw": "Recipe Reprinted",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "subhead_text": [
                     {
                        "value": "Drum up praise from your guests by serving this stunning Christmas cake.",
                        "raw": "Drum up praise from your guests by serving this stunning Christmas cake.",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "by_line": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "footer_text": [
                     {
                        "value": null,
                        "raw": null,
                        "boolean": false
                     }
                  ],
                  "source": [
                     {
                        "value": null,
                        "raw": null,
                        "boolean": false
                     }
                  ],
                  "source_issue": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "img_caption": [
                     {
                        "value": "Drummer Boy Cake ",
                        "raw": "Drummer Boy Cake ",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "img_credit": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "sharedcount_updated": [
                     {
                        "value": "2016-05-27 04:56:10",
                        "raw": "2016-05-27 04:56:10",
                        "boolean": false,
                        "date": "2016-05-27",
                        "datetime": "2016-05-27 04:56:10",
                        "time": "04:56:10"
                     }
                  ],
                  "addthis_shares": [
                     {
                        "value": "1",
                        "raw": "1",
                        "long": 1,
                        "double": 1,
                        "boolean": true,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ]
               }
            },
            "_explanation": {
               "value": 0.9689281,
               "description": "weight(_all:cake in 347) [PerFieldSimilarity], result of:",
               "details": [
                  {
                     "value": 0.9689281,
                     "description": "fieldWeight in 347, product of:",
                     "details": [
                        {
                           "value": 3.3166249,
                           "description": "tf(freq=11.0), with freq of:",
                           "details": [
                              {
                                 "value": 11,
                                 "description": "termFreq=11.0"
                              }
                           ]
                        },
                        {
                           "value": 4.674285,
                           "description": "idf(docFreq=87, maxDocs=3469)"
                        },
                        {
                           "value": 0.0625,
                           "description": "fieldNorm(doc=347)"
                        }
                     ]
                  }
               ]
            }
         },
         {
            "_shard": 4,
            "_node": "W6Kb61BSSpaHfLMTbNGEYQ",
            "_index": "rdcom-2",
            "_type": "post",
            "_id": "2144",
            "_score": 0.96104944,
            "_source": {
               "post_id": 2144,
               "ID": 2144,
               "post_author": {
                  "raw": "admin_2013",
                  "login": "admin_2013",
                  "display_name": "Reader's Digest Editors",
                  "id": 90
               },
               "post_date": "2007-05-02 00:00:00",
               "post_date_gmt": "2007-05-02 00:00:00",
               "post_title": "Root Beer Float Cake",
               "post_excerpt": "",
               "post_content": "\n<p><strong></strong><br />\n<strong></strong></p>\n",
               "post_status": "publish",
               "post_name": "root-beer-float-cake",
               "post_modified": "2010-12-12 09:44:28",
               "post_modified_gmt": "2010-12-12 16:44:28",
               "post_parent": 0,
               "post_type": "post",
               "post_mime_type": "",
               "permalink": "http://www.rd.com/food/recipes-cooking/root-beer-float-cake/",
               "terms": {
                  "category": [
                     {
                        "term_id": 1192,
                        "slug": "recipes-cooking",
                        "name": "Recipes &amp; Cooking",
                        "parent": 13
                     }
                  ],
                  "source": [
                     {
                        "term_id": 2040,
                        "slug": "original",
                        "name": "Original to TMBI",
                        "parent": 0
                     }
                  ],
                  "mag_issue_date": [
                     {
                        "term_id": 2123,
                        "slug": "volume-6-2006",
                        "name": "Volume 6, 2006",
                        "parent": 0
                     }
                  ],
                  "tmbi_first_associated": [
                     {
                        "term_id": 3951,
                        "slug": "rd",
                        "name": "Reader's Digest",
                        "parent": 3949
                     }
                  ]
               },
               "post_meta": {
                  "custom_post_template": [
                     "Recipe Reprinted"
                  ],
                  "subhead_text": [
                     "Serve this moist cake to a bunch of hungry kids and watch it disappear."
                  ],
                  "by_line": [
                     ""
                  ],
                  "footer_text": [
                     null
                  ],
                  "source": [
                     null
                  ],
                  "source_issue": [
                     "Volume 6, 2006"
                  ],
                  "img_caption": [
                     "A simple white cake mix is jazzed up with the classic flavor of root beer."
                  ],
                  "img_credit": [
                     ""
                  ],
                  "sharedcount_updated": [
                     "2016-05-27 04:52:46"
                  ],
                  "sharedcount_count": [
                     "27"
                  ],
                  "article_issue_date": [
                     "2123"
                  ]
               },
               "date_terms": {
                  "year": 2007,
                  "month": 5,
                  "week": 18,
                  "dayofyear": 121,
                  "day": 2,
                  "dayofweek": 3,
                  "dayofweek_iso": 3,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "m": 200705
               },
               "comment_count": 0,
               "comment_status": 0,
               "ping_status": 0,
               "menu_order": 0,
               "guid": "http://www.rd.com/Food/root-beer-float-cake",
               "meta": {
                  "custom_post_template": [
                     {
                        "value": "Recipe Reprinted",
                        "raw": "Recipe Reprinted",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "subhead_text": [
                     {
                        "value": "Serve this moist cake to a bunch of hungry kids and watch it disappear.",
                        "raw": "Serve this moist cake to a bunch of hungry kids and watch it disappear.",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "by_line": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "footer_text": [
                     {
                        "value": null,
                        "raw": null,
                        "boolean": false
                     }
                  ],
                  "source": [
                     {
                        "value": null,
                        "raw": null,
                        "boolean": false
                     }
                  ],
                  "source_issue": [
                     {
                        "value": "Volume 6, 2006",
                        "raw": "Volume 6, 2006",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "img_caption": [
                     {
                        "value": "A simple white cake mix is jazzed up with the classic flavor of root beer.",
                        "raw": "A simple white cake mix is jazzed up with the classic flavor of root beer.",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "img_credit": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "sharedcount_updated": [
                     {
                        "value": "2016-05-27 04:52:46",
                        "raw": "2016-05-27 04:52:46",
                        "boolean": false,
                        "date": "2016-05-27",
                        "datetime": "2016-05-27 04:52:46",
                        "time": "04:52:46"
                     }
                  ],
                  "sharedcount_count": [
                     {
                        "value": "27",
                        "raw": "27",
                        "long": 27,
                        "double": 27,
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "article_issue_date": [
                     {
                        "value": "2123",
                        "raw": "2123",
                        "long": 2123,
                        "double": 2123,
                        "boolean": false,
                        "date": "2017-01-14",
                        "datetime": "2017-01-14 21:23:00",
                        "time": "21:23:00"
                     }
                  ]
               }
            },
            "_explanation": {
               "value": 0.96104944,
               "description": "weight(_all:cake in 2194) [PerFieldSimilarity], result of:",
               "details": [
                  {
                     "value": 0.96104944,
                     "description": "fieldWeight in 2194, product of:",
                     "details": [
                        {
                           "value": 2.828427,
                           "description": "tf(freq=8.0), with freq of:",
                           "details": [
                              {
                                 "value": 8,
                                 "description": "termFreq=8.0"
                              }
                           ]
                        },
                        {
                           "value": 4.349213,
                           "description": "idf(docFreq=126, maxDocs=3617)"
                        },
                        {
                           "value": 0.078125,
                           "description": "fieldNorm(doc=2194)"
                        }
                     ]
                  }
               ]
            }
         },
         {
            "_shard": 4,
            "_node": "W6Kb61BSSpaHfLMTbNGEYQ",
            "_index": "rdcom-2",
            "_type": "post",
            "_id": "87435",
            "_score": 0.9416323,
            "_source": {
               "post_id": 87435,
               "ID": 87435,
               "post_author": {
                  "raw": "brandon.specktor",
                  "login": "brandon.specktor",
                  "display_name": "Brandon Specktor",
                  "id": 85
               },
               "post_date": "2013-05-17 09:01:02",
               "post_date_gmt": "2013-05-17 13:01:02",
               "post_title": "It&#8217;s Still Good: Cake in a Mug",
               "post_excerpt": "",
               "post_content": "<p>Step aside, Donut! These simple, delicious recipes will fill the bill nicely.</p>\n",
               "post_status": "publish",
               "post_name": "its-still-good-cake-in-a-mug",
               "post_modified": "2013-05-13 16:59:19",
               "post_modified_gmt": "2013-05-13 20:59:19",
               "post_parent": 0,
               "post_type": "marquee",
               "post_mime_type": "",
               "permalink": "http://www.rd.com/slideshows/cake-in-a-mug-and-more-mug-recipes/",
               "terms": {
                  "category": [
                     {
                        "term_id": 1192,
                        "slug": "recipes-cooking",
                        "name": "Recipes &amp; Cooking",
                        "parent": 13
                     }
                  ],
                  "post_tag": [
                     {
                        "term_id": 26,
                        "slug": "cooking",
                        "name": "Cooking",
                        "parent": 0
                     }
                  ]
               },
               "post_meta": [],
               "date_terms": {
                  "year": 2013,
                  "month": 5,
                  "week": 20,
                  "dayofyear": 136,
                  "day": 17,
                  "dayofweek": 5,
                  "dayofweek_iso": 5,
                  "hour": 9,
                  "minute": 1,
                  "second": 2,
                  "m": 201305
               },
               "comment_count": 0,
               "comment_status": 0,
               "ping_status": 0,
               "menu_order": 0,
               "guid": "http://www.rd.com/?post_type=marquee&#038;p=87435",
               "meta": []
            },
            "_explanation": {
               "value": 0.9416323,
               "description": "weight(_all:cake in 1313) [PerFieldSimilarity], result of:",
               "details": [
                  {
                     "value": 0.9416323,
                     "description": "fieldWeight in 1313, product of:",
                     "details": [
                        {
                           "value": 1.7320508,
                           "description": "tf(freq=3.0), with freq of:",
                           "details": [
                              {
                                 "value": 3,
                                 "description": "termFreq=3.0"
                              }
                           ]
                        },
                        {
                           "value": 4.349213,
                           "description": "idf(docFreq=126, maxDocs=3617)"
                        },
                        {
                           "value": 0.125,
                           "description": "fieldNorm(doc=1313)"
                        }
                     ]
                  }
               ]
            }
         },
         {
            "_shard": 4,
            "_node": "W6Kb61BSSpaHfLMTbNGEYQ",
            "_index": "rdcom-2",
            "_type": "post",
            "_id": "76894",
            "_score": 0.9416323,
            "_source": {
               "post_id": 76894,
               "ID": 76894,
               "post_author": {
                  "raw": "D.Beres",
                  "login": "D.Beres",
                  "display_name": "Damon Beres",
                  "id": 44
               },
               "post_date": "2012-12-14 10:02:06",
               "post_date_gmt": "2012-12-14 15:02:06",
               "post_title": "The Cutest Holiday Cake Pops",
               "post_excerpt": "",
               "post_content": "<p>Popular blogger Bakerella shares step-by-step recipes for desserts that are (almost) too pretty to eat. </p>\n",
               "post_status": "publish",
               "post_name": "the-cutest-holiday-cake-pops",
               "post_modified": "2012-12-14 10:02:06",
               "post_modified_gmt": "2012-12-14 15:02:06",
               "post_parent": 0,
               "post_type": "marquee",
               "post_mime_type": "",
               "permalink": "http://www.rd.com/slideshows/bakerellas-cute-holiday-cake-pops/",
               "terms": {
                  "category": [
                     {
                        "term_id": 1192,
                        "slug": "recipes-cooking",
                        "name": "Recipes &amp; Cooking",
                        "parent": 13
                     }
                  ]
               },
               "post_meta": [],
               "date_terms": {
                  "year": 2012,
                  "month": 12,
                  "week": 50,
                  "dayofyear": 348,
                  "day": 14,
                  "dayofweek": 5,
                  "dayofweek_iso": 5,
                  "hour": 10,
                  "minute": 2,
                  "second": 6,
                  "m": 201212
               },
               "comment_count": 0,
               "comment_status": 0,
               "ping_status": 0,
               "menu_order": 0,
               "guid": "http://cms.rd.com/?post_type=marquee&#038;p=76894",
               "meta": []
            },
            "_explanation": {
               "value": 0.9416323,
               "description": "weight(_all:cake in 1482) [PerFieldSimilarity], result of:",
               "details": [
                  {
                     "value": 0.9416323,
                     "description": "fieldWeight in 1482, product of:",
                     "details": [
                        {
                           "value": 1.7320508,
                           "description": "tf(freq=3.0), with freq of:",
                           "details": [
                              {
                                 "value": 3,
                                 "description": "termFreq=3.0"
                              }
                           ]
                        },
                        {
                           "value": 4.349213,
                           "description": "idf(docFreq=126, maxDocs=3617)"
                        },
                        {
                           "value": 0.125,
                           "description": "fieldNorm(doc=1482)"
                        }
                     ]
                  }
               ]
            }
         },
         {
            "_shard": 2,
            "_node": "W6Kb61BSSpaHfLMTbNGEYQ",
            "_index": "rdcom-2",
            "_type": "post",
            "_id": "974",
            "_score": 0.9229154,
            "_source": {
               "post_id": 974,
               "ID": 974,
               "post_author": {
                  "raw": "G.Miata",
                  "login": "G.Miata",
                  "display_name": "George Miata",
                  "id": 22
               },
               "post_date": "2010-07-06 00:00:00",
               "post_date_gmt": "2010-07-06 00:00:00",
               "post_title": "Did You Know You Can Bake a Cake With Soda?",
               "post_excerpt": "",
               "post_content": "<p>Short on eggs and oil but yearning for a piece of cake? If you have soda in the house, you have no worries. Most packaged cake mixes direct you to add 3 eggs and 1/4 cup of oil to the mix. But the thing is, you don&#8217;t have to. Here is a way to bake a cake without either eggs or oil that will result in a cake that is delicious — and lower in fat and cholesterol.</p>\n<p>1. Take out your packaged cake mix. Any flavor will work.</p>\n<p>2. Grab a can of your favorite soda. Use diet soda for the fewest calories.</p>\n<p>3. Ignore the directions on the box — don&#8217;t add eggs, water, or oil. Just add one can of soda.</p>\n<p>4. Bake for the amount of time suggested on the cake mix. You will have a delicious cake — and eat it, too!</p>\n<p>Plus:<br />\n<a href=\"http://www.rd.com/home-garden/15-foods-you-should-never-buy-again/article179928.html\"> 15 Foods You Should Never Buy Again</a><br />\n<a href=\"http://www.rd.com/slideshow/15-secret-ingredient-tricks-to-transform-your-meals\">15 Secret Ingredient Tricks to Transform Your Meals</a></p>\n",
               "post_status": "publish",
               "post_name": "did-you-know-you-can-bake-a-cake-with-soda",
               "post_modified": "2011-02-09 23:42:08",
               "post_modified_gmt": "2011-02-10 04:42:08",
               "post_parent": 0,
               "post_type": "post",
               "post_mime_type": "",
               "permalink": "http://www.rd.com/food/recipes-cooking/did-you-know-you-can-bake-a-cake-with-soda/",
               "terms": {
                  "category": [
                     {
                        "term_id": 1192,
                        "slug": "recipes-cooking",
                        "name": "Recipes &amp; Cooking",
                        "parent": 13
                     }
                  ],
                  "post_tag": [
                     {
                        "term_id": 26,
                        "slug": "cooking",
                        "name": "Cooking",
                        "parent": 0
                     }
                  ],
                  "source": [
                     {
                        "term_id": 2040,
                        "slug": "original",
                        "name": "Original to TMBI",
                        "parent": 0
                     }
                  ],
                  "tmbi_first_associated": [
                     {
                        "term_id": 3951,
                        "slug": "rd",
                        "name": "Reader's Digest",
                        "parent": 3949
                     }
                  ]
               },
               "post_meta": {
                  "custom_post_template": [
                     "List"
                  ],
                  "subhead_text": [
                     "An ingenious way to bake a cake without eggs or oil."
                  ],
                  "by_line": [
                     ""
                  ],
                  "footer_text": [
                     null
                  ],
                  "source": [
                     "99 Cent Solutions"
                  ],
                  "source_issue": [
                     ""
                  ],
                  "sharedcount_count": [
                     "20"
                  ],
                  "sharedcount_updated": [
                     "2016-05-27 04:39:49"
                  ]
               },
               "date_terms": {
                  "year": 2010,
                  "month": 7,
                  "week": 27,
                  "dayofyear": 186,
                  "day": 6,
                  "dayofweek": 2,
                  "dayofweek_iso": 2,
                  "hour": 0,
                  "minute": 0,
                  "second": 0,
                  "m": 201007
               },
               "comment_count": 0,
               "comment_status": 0,
               "ping_status": 0,
               "menu_order": 0,
               "guid": "http://www.rd.com/Food/did-you-know-you-can-bake-a-cake-with-soda",
               "meta": {
                  "custom_post_template": [
                     {
                        "value": "List",
                        "raw": "List",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "subhead_text": [
                     {
                        "value": "An ingenious way to bake a cake without eggs or oil.",
                        "raw": "An ingenious way to bake a cake without eggs or oil.",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "by_line": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "footer_text": [
                     {
                        "value": null,
                        "raw": null,
                        "boolean": false
                     }
                  ],
                  "source": [
                     {
                        "value": "99 Cent Solutions",
                        "raw": "99 Cent Solutions",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "source_issue": [
                     {
                        "value": "",
                        "raw": "",
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "sharedcount_count": [
                     {
                        "value": "20",
                        "raw": "20",
                        "long": 20,
                        "double": 20,
                        "boolean": false,
                        "date": "1971-01-01",
                        "datetime": "1971-01-01 00:00:01",
                        "time": "00:00:01"
                     }
                  ],
                  "sharedcount_updated": [
                     {
                        "value": "2016-05-27 04:39:49",
                        "raw": "2016-05-27 04:39:49",
                        "boolean": false,
                        "date": "2016-05-27",
                        "datetime": "2016-05-27 04:39:49",
                        "time": "04:39:49"
                     }
                  ]
               }
            },
            "_explanation": {
               "value": 0.9229154,
               "description": "weight(_all:cake in 688) [PerFieldSimilarity], result of:",
               "details": [
                  {
                     "value": 0.9229154,
                     "description": "fieldWeight in 688, product of:",
                     "details": [
                        {
                           "value": 3.6055512,
                           "description": "tf(freq=13.0), with freq of:",
                           "details": [
                              {
                                 "value": 13,
                                 "description": "termFreq=13.0"
                              }
                           ]
                        },
                        {
                           "value": 4.680607,
                           "description": "idf(docFreq=87, maxDocs=3491)"
                        },
                        {
                           "value": 0.0546875,
                           "description": "fieldNorm(doc=688)"
                        }
                     ]
                  }
               ]
            }
         }
      ]
   }
}
mikelking commented 7 years ago

@tlovett1,

Upon deeper investigation there appears to be multiple indices for the site under the various domain name variations. However, the data for the indices should be the same as it comes from the same WordPress source.

It seems like there should be a way to define the index for the site.

multiple-indices

joesm commented 7 years ago

Hi Everyone,

I work on the team that @mikelking runs and I've just narrowed down the issue. ElasticPress seems to only want to talk to Elasticsearch 2.x and we are currently running something other than that. I've got three VMs running with 1.x, 2.x and 5.x and only the 2.x machine works correctly with EP.

Thanks for looking into this with us!

tlovett1 commented 7 years ago

@joesm we've love to help you out and determine if there are any issues with ElasticPress. Is there anything we can do?

mikelking commented 7 years ago

@tlovett1,

We've done some more investigation and while the upgrade of the ES cluster helped we are still experiencing the phenomena. Although we are on multisite we are currently only running the plugin on one subsite (subdomain).

The server cluster that ep is running on is DNSd as rd.rda.net as well as origin-www.rd.com, and it will accept connections for www.rd.com because of the domain mapping plugin and some other magick we've worked out with WP Engine. However, www.rd.com is actually hosted at the CDN level and that is where the discrepancy is occurring.

On Tuesday I logged in to the CMS via www.rd.com and re-indexed the server, once it was done the search results were good. Throughout the day on Wednesday we conducted more tests all seemed good. This morning we started some more test and now the results for cake are returning beauty related content. It would seem that the system has reindexed again corrupting the one I did on Tuesday.

Thoughts on why the www index would go all whacky while the origin-www did not?