{"id":134,"date":"2010-07-04T10:56:58","date_gmt":"2010-07-04T14:56:58","guid":{"rendered":"http:\/\/dashdrum.com\/blog\/?p=134"},"modified":"2010-07-04T10:56:58","modified_gmt":"2010-07-04T14:56:58","slug":"simple-search-in-django","status":"publish","type":"post","link":"https:\/\/dashdrum.com\/blog\/2010\/07\/simple-search-in-django\/","title":{"rendered":"Simple Search in Django"},"content":{"rendered":"<p>I started programming (in BASIC, Pascal, and COBOL) before the Web was available, and it&#8217;s amazing to see how much the craft has changed with instant access to thousands of references.  However, sometimes I throw up a search and get back the perfect solution, and I&#8217;m frustrated that I couldn&#8217;t figure out something so simple. It&#8217;s just too easy to search instead of think.<\/p>\n<p>My example today is an easy search in Django.  I have read about Haystack, Solr, and other search engines that require a daemon, special database structures, and other special things, but these are overkill for a search on a relatively small dataset.<\/p>\n<p>My search returned <a href=\"http:\/\/toastdriven.com\/fresh\/quick-dirty-search-django\/\">this post from Toast Driven<\/a> that outlined a way to append together a few Q objects to return a search result that uses multiple terms and multiple fields.  Genius!<\/p>\n<p>Thanks to Daniel at Toast Driven.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I started programming (in BASIC, Pascal, and COBOL) before the Web was available, and it&#8217;s amazing to see how much the craft has changed with instant access to thousands of references. However, sometimes I throw up a search and get back the perfect solution, and I&#8217;m frustrated that I couldn&#8217;t figure out something so simple. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/dashdrum.com\/blog\/2010\/07\/simple-search-in-django\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Simple Search in Django&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":1,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/posts\/134\/revisions"}],"predecessor-version":[{"id":135,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/posts\/134\/revisions\/135"}],"wp:attachment":[{"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/media?parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/categories?post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/tags?post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}