<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tech stuff &#187; search</title>
	<atom:link href="http://codytaylor.org/tag/search/feed" rel="self" type="application/rss+xml" />
	<link>http://codytaylor.org</link>
	<description>From Cody Taylor.</description>
	<lastBuildDate>Sun, 30 Oct 2011 04:15:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Search the wordpress content management system database</title>
		<link>http://codytaylor.org/2009/10/search-the-wordpress-content-management-system-database.html</link>
		<comments>http://codytaylor.org/2009/10/search-the-wordpress-content-management-system-database.html#comments</comments>
		<pubDate>Thu, 22 Oct 2009 01:29:36 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[content management system]]></category>
		<category><![CDATA[mysql query]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[wordpress database]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14299</guid>
		<description><![CDATA[SQL queries to search and replace posts from a wordpress mysql database.]]></description>
			<content:encoded><![CDATA[<p>Wordpress is by far the most popular content management system for blog hosting. The wordpress content management system uses the mysql database. If you have a big site with a large number of posts then it can be handy to search the content of every post to find certain text. Sometimes you may even need to replace certain keywords with other keywords. As with most content management setups there is probably a plugin that will do just that, but it is far easier to just use basic sql if you know the structure of the wordpress database.<br />
Within either phpmyadmin or mysqlyog (depending on what you are using) you can use this sql query to find the text that you are looking for:<br />
<pre><code>
select * from wp_posts where post_content 
like &#039;%content management system%&#039;;
</code></pre><br />
The ID that you get back is basically the page id. For example, if I query my database and get back an id of 13449 then that content will reside at http://codytaylor.org/?p=13449. Other useful columns are the post_content which is the content text of the post, post_name which is the title of the post, and the guid which is the full url (before mod_rewrite changes it) so you don&#8217;t have to copy and paste the id and append it to your url.</p>
<p>If you need to search and replace some text in more than one post then you can use this sql :<br />
<pre><code>
UPDATE wp_posts SET post_content = REPLACE (
post_content, &#039;content management system&#039;, &#039;CMS&#039;);
</code></pre><br />
That SQL query will replace the &#8216;content management system&#8217; with &#8216;CMS&#8217;.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F10%2Fsearch-the-wordpress-content-management-system-database.html&amp;linkname=Search%20the%20wordpress%20content%20management%20system%20database"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/10/search-the-wordpress-content-management-system-database.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Query Syntax Explanations: Part 2</title>
		<link>http://codytaylor.org/2009/05/google-query-syntax-explanations-part-2.html</link>
		<comments>http://codytaylor.org/2009/05/google-query-syntax-explanations-part-2.html#comments</comments>
		<pubDate>Mon, 18 May 2009 16:30:52 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[reference]]></category>
		<category><![CDATA[cody taylor]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[save bandwidth]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=13998</guid>
		<description><![CDATA[Syntax and operators for google search engine]]></description>
			<content:encoded><![CDATA[<p>Here are a few more little known tricks that can be used to get better results from the google search engine. Save some bandwidth and tell your friends.</p>
<p><strong>Operators</strong><br />
You can add all sorts of arguments to your google search query. The most useful that I&#8217;ve found so far is filetype. This allows you to specify the type of file that you want to search for.<br />
If I type :<br />
<span style="color: #888888;">&#8220;iphone&#8221; filetype:pdf </span><br />
into the google search engine then I only get pdf files in my search results, most of which are useful instructional manuals on the iphone.</p>
<p>There are many other arguments that can be useful:</p>
<p><span style="color: #888888;">intitle:&#8221;tech stuff&#8221;<br />
inurl:&#8221;codytaylor&#8221;<br />
intext:&#8221;iphone&#8221;<br />
inanchor:&#8221;tech stuff&#8221;<br />
site:codytaylor.org<br />
link:www.codytaylor.org<br />
cache:codytaylor.org<br />
daterange:2452389-2452389<br />
related:codytaylor.org<br />
info:codytaylor.org<br />
phonebook:&#8221;someone&#8221;</span></p>
<p><strong>Stop Words</strong></p>
<p>Google automatically removes certain words from searches. These are called stop words and consist of words like &#8216;I&#8217;, &#8216;a&#8217;, &#8216;the&#8217;, and &#8216;of&#8217;. To force google to use these words then add a &#8216;+&#8217; to the begining of the word. So searching for a statement with &#8216;+the&#8217; in it would force the query to look for the &#8216;the&#8217;. If you don&#8217;t care wheter these words are included in the search then why even enter them?</p>
<p><strong>Order and repetition matter.</strong></p>
<p>Searching<br />
<span style="color: #888888;">&#8220;codytaylor&#8221; scp</span><br />
emphasizes the &#8220;codytaylor&#8221; and produces different results than searching<br />
<span style="color: #888888;">scp &#8220;codytaylor&#8221;</span><br />
The keywords to the left are always given higher precedence in the query.</p>
<p>Searching<br />
<span style="color: #888888;">&#8220;codytaylor&#8221; scp</span><br />
produces different results than searching<br />
<span style="color: #888888;">&#8220;codytaylor&#8221; scp scp</span></p>
<p>So if you&#8217;re looking for a page that is saturated with a specific keyword then you&#8217;ll have much more luck if you type it in more than once.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F05%2Fgoogle-query-syntax-explanations-part-2.html&amp;linkname=Google%20Query%20Syntax%20Explanations%3A%20Part%202"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/05/google-query-syntax-explanations-part-2.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google Query Syntax Explanations: Part 1</title>
		<link>http://codytaylor.org/2009/05/why-doesnt-anyone-know-this.html</link>
		<comments>http://codytaylor.org/2009/05/why-doesnt-anyone-know-this.html#comments</comments>
		<pubDate>Sun, 17 May 2009 21:34:32 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[reference]]></category>
		<category><![CDATA[cody taylor]]></category>
		<category><![CDATA[codytaylor]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[keyword]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=13993</guid>
		<description><![CDATA[make your google search results more specific with some very simple syntax.]]></description>
			<content:encoded><![CDATA[<p><strong>Basic Google Syntax Explanations</strong></p>
<p>Ever see someone spending hours trying to find something in google and just giving up due to the enormous amount of content for any given keyword? I&#8217;m amazed at how little everyone knows about using the Google search engine. Most of the population uses google every day but are still unaware of  some very basic but extremely simple and effective syntax rules for google queries. This takes energy and bandwidth. In the following I try and outline two of the most common methods of narrowing your search results down to only what you want.</p>
<ul>
<li>Basic Boolean: Use &#8216;AND&#8217; and &#8216;OR&#8217; in your query. The &#8216;AND&#8217; will require the result to include both keywords and the &#8216;OR&#8217; will allow results that have either keywords in them. You can also use the &#8216;|&#8217; (pipe) character to specify &#8216;OR&#8217;. To make sure that none of the results include a specific word then use the &#8216;-&#8217; character in front of the word. So searching &#8216;cody AND taylor AND -yoyo&#8217; will return results for cody taylor that do not include yoyo.</li>
<li>Quotes: Use quotes on a query to specify that you only want to search results that are exactly as you write them. If I google codytaylor most of my results are for cody taylor but if I google &#8220;codytaylor&#8221; then I get results only containing codytaylor without any spaces. Googles forethought in displaying results and splitting up words is very useful but a lot of the time you will want your results to be exactly as you specified. Quotes are also used to specify keyword order. If I wanted results for only the useful and not some sentence or combination of words that include those three words then I would specify &#8220;only the useful&#8221;. Try it and you&#8217;ll notice a huge difference. Try a couple queries to see how much more specific your results become.</li>
</ul>
<p>These two basic features are surprisingly little known yet so straight forward. Save everyone some bandwidth and explain this to the people around you.</p>
<p>Yes, Google is a verb.</p>
<p>Check out <a title="Google Query Syntax Part 2" href="http://codytaylor.org/?p=13998" target="_self">Part 2</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F05%2Fwhy-doesnt-anyone-know-this.html&amp;linkname=Google%20Query%20Syntax%20Explanations%3A%20Part%201"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/05/why-doesnt-anyone-know-this.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

