{"id":452,"date":"2013-02-20T12:04:21","date_gmt":"2013-02-20T12:04:21","guid":{"rendered":"http:\/\/technicalelvis.com\/blog\/?p=452"},"modified":"2015-07-26T11:03:04","modified_gmt":"2015-07-26T11:03:04","slug":"valentines-day-scripture-usage-on-twitter","status":"publish","type":"post","link":"https:\/\/technicalelvis.com\/blog\/2013\/02\/20\/valentines-day-scripture-usage-on-twitter\/","title":{"rendered":"Valentine&#8217;s Day Scripture Usage on Twitter"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright\" src=\"https:\/\/encrypted-tbn0.gstatic.com\/images?q=tbn:ANd9GcQmtkdE4P9uTscVMyxysDNxPCgz9ZiWBd2UbQ73wIPsX6niBOREUw\" alt=\"hearts\" width=\"200\" height=\"162\" \/>I'd like to know which bible verses were popular on twitter on Valentine's Day - 2013. I've added <a href=\"http:\/\/www.elasticsearch.org\/\">elasticsearch<\/a> support to <a href=\"https:\/\/github.com\/telvis07\/habakkuk\">my project\u00a0habakkuk<\/a>\u00a0to store religious tweets for analysis. It turns out to be a collection of love scriptures. Very Nice!<\/p>\n<h2><\/h2>\n<h2><\/h2>\n<h2><\/h2>\n<h2><\/h2>\n<h2>Results<\/h2>\n<ol>\n<li><strong>John 3:16<\/strong>\u00a0 \"For God so loved the world that he gave\u00a0his one and only Son,\u00a0that whoever believes\u00a0in him shall not perish but have eternal life.\"<\/li>\n<li><strong>1 \u00a0John 4:19<\/strong>\u00a0\"We love because he first loved us.\"<\/li>\n<li><strong>1 Corinthians 13:4<\/strong>\u00a0\"Love is patient,\u00a0love is kind. It does not envy, it does not boast, it is not proud.\"<\/li>\n<li><strong>1 Corinthians 13:13<\/strong>\u00a0\"And now these three remain: faith, hope and love.\u00a0But the greatest of these is love.\"<\/li>\n<li><strong>John 14:23<\/strong>\u00a0 \"Jesus replied,\u00a0\u201cAnyone who loves me will obey my teaching.\u00a0My Father will love them, and we will come to them and make our home with them.\"<\/li>\n<li><strong>Psalm 37:23<\/strong>\u00a0\"The steps of a good man are ordered by the\u00a0Lord: and he delighteth in his way.\"<\/li>\n<li><strong>John 15:13<\/strong>\u00a0\"Greater love has no one than this: to lay down one\u2019s life for one\u2019s friends.\"<\/li>\n<li><strong>1 Corinthians 13:7<\/strong>\u00a0 \"[Love] \u00a0always protects, always trusts, always hopes, always perseveres.\"<\/li>\n<li><em id=\"__mceDel\"><strong>Philippians 4:13<\/strong>\u00a0\"I can do all this through him who gives me strength.\"<\/em><\/li>\n<li><em id=\"__mceDel\"><strong>Romans 5:8<\/strong>\u00a0\"But God demonstrates his own love for us in this: While we were still sinners, Christ died for us.\"<\/em><\/li>\n<\/ol>\n<h2>Technical Details<\/h2>\n<p>To get the data for Valentines day 2013, I execute the following<\/p>\n<pre>$ python bible_facet.py -s 2013-02-14 -e 2013-02-15<\/pre>\n<p>It shows the raw query json for the <a href=\"http:\/\/www.elasticsearch.org\/guide\/reference\/query-dsl\/index.html\">Elasticsearch Query DSL<\/a>.\u00a0Below that it shows the top 10 bible references. Its basically just a faceted search on the\u00a0bibleverse field.<\/p>\n<pre><em id=\"__mceDel\"><em id=\"__mceDel\">    {\r\n      \"query\": {\r\n        \"filtered\": {\r\n          \"filter\": {\r\n            \"range\": {\r\n              \"created_at_date\": {\r\n                \"to\": \"2013-02-15T00:00:00\",\r\n                \"include_upper\": false,\r\n                \"from\": \"2013-02-14T00:00:00\"\r\n              }\r\n            }\r\n          },\r\n          \"query\": {\r\n            \"match_all\": {}\r\n          }\r\n        }\r\n      },\r\n      \"facets\": {\r\n        \"bibleverse\": {\r\n          \"terms\": {\r\n            \"field\": \"bibleverse\",\r\n            \"order\": \"count\",\r\n            \"size\": 10\r\n          }\r\n        }\r\n      },\r\n      \"size\": 0\r\n    }\r\n\r\nTotal bibleverse 1568\r\n  john 3:16 85\r\n  i_john 4:19 42\r\n  i_corinthians 13:4 31\r\n  i_corinthians 13:13 24\r\n  john 14:23 19\r\n  psalm 37:23 18\r\n  john 15:13 18\r\n  i_corinthians 13:7 18\r\n  philippians 4:13 17\r\n  romans 5:8 15<\/em><\/em><\/pre>\n<h2><em id=\"__mceDel\">\u00a0<\/em><\/h2>\n<h2><\/h2>\n<h2><em id=\"__mceDel\">Project Details<\/em><\/h2>\n<p>Please reference the <a href=\"https:\/\/github.com\/telvis07\/habakkuk\/blob\/master\/elasticsearch\/README.md\">elasticsearch readme in habakkuk <\/a>for details regarding the query that obtained this data. Special thanks to\u00a0<a href=\"http:\/\/www.biblegateway.com\/\">http:\/\/www.biblegateway.com<\/a>\u00a0for the NIV Bible text. I should also shout out to <a href=\"http:\/\/openbible.info\">openbible.info<\/a>, his <a href=\"http:\/\/www.openbible.info\/blog\/2013\/02\/what-twitterers-are-giving-up-for-lent-2013-edition\/\">twitter Lent blog<\/a> is awesome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d like to know which bible verses were popular on twitter on Valentine&#8217;s Day &#8211; 2013. I&#8217;ve added elasticsearch support to my project\u00a0habakkuk\u00a0to store religious tweets for analysis. It turns out to be a collection of love scriptures. Very Nice! Results John 3:16\u00a0 &#8220;For God so loved the world that he gave\u00a0his one and only &hellip; <a href=\"https:\/\/technicalelvis.com\/blog\/2013\/02\/20\/valentines-day-scripture-usage-on-twitter\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Valentine&#8217;s Day Scripture Usage on Twitter<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-452","post","type-post","status-publish","format-standard","hentry","category-twitter_mining"],"_links":{"self":[{"href":"https:\/\/technicalelvis.com\/blog\/wp-json\/wp\/v2\/posts\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technicalelvis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technicalelvis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technicalelvis.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technicalelvis.com\/blog\/wp-json\/wp\/v2\/comments?post=452"}],"version-history":[{"count":25,"href":"https:\/\/technicalelvis.com\/blog\/wp-json\/wp\/v2\/posts\/452\/revisions"}],"predecessor-version":[{"id":717,"href":"https:\/\/technicalelvis.com\/blog\/wp-json\/wp\/v2\/posts\/452\/revisions\/717"}],"wp:attachment":[{"href":"https:\/\/technicalelvis.com\/blog\/wp-json\/wp\/v2\/media?parent=452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technicalelvis.com\/blog\/wp-json\/wp\/v2\/categories?post=452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technicalelvis.com\/blog\/wp-json\/wp\/v2\/tags?post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}