<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Custom Field Searching WordPress Using Sphinx</title>
	<atom:link href="http://www.braindonor.net/coding-blog/custom-field-searching-wordpress-using-sphinx/199/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.braindonor.net/coding-blog/custom-field-searching-wordpress-using-sphinx/199/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 09 Jul 2010 21:15:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: John Hoff</title>
		<link>http://www.braindonor.net/coding-blog/custom-field-searching-wordpress-using-sphinx/199/comment-page-1/#comment-130</link>
		<dc:creator>John Hoff</dc:creator>
		<pubDate>Wed, 18 Nov 2009 05:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.braindonor.net/?p=199#comment-130</guid>
		<description>Using a serialized array does get tricky.  You have to unpack part of the array in the SQL statement and only use SQL to do it.  Say you are given meta_value along the lines of:
&lt;code&gt;custom.meta_value = &quot;aaa,bbb,ccc&quot;&lt;/code&gt;&lt;br /&gt;

You can unpack that and assign each piece to an sql column:
&lt;code&gt;SUBSTRING_INDEX(SUBSTRING_INDEX(custom.meta_value, &quot;,&quot;, 1), &quot;,&quot;, -1) as first,
SUBSTRING_INDEX(SUBSTRING_INDEX(custom.meta_value, &quot;,&quot;, 2), &quot;,&quot;, -1) as second,
SUBSTRING_INDEX(SUBSTRING_INDEX(custom.meta_value, &quot;,&quot;, 3), &quot;,&quot;, -1) as third,&lt;/code&gt;&lt;br /&gt;
You might also need to use TRIM to remove any quote marks.  Hope that points you in the right direction.</description>
		<content:encoded><![CDATA[<p>Using a serialized array does get tricky.  You have to unpack part of the array in the SQL statement and only use SQL to do it.  Say you are given meta_value along the lines of:<br />
<code>custom.meta_value = "aaa,bbb,ccc"</code></p>
<p>You can unpack that and assign each piece to an sql column:<br />
<code>SUBSTRING_INDEX(SUBSTRING_INDEX(custom.meta_value, ",", 1), ",", -1) as first,<br />
SUBSTRING_INDEX(SUBSTRING_INDEX(custom.meta_value, ",", 2), ",", -1) as second,<br />
SUBSTRING_INDEX(SUBSTRING_INDEX(custom.meta_value, ",", 3), ",", -1) as third,</code><br />
You might also need to use TRIM to remove any quote marks.  Hope that points you in the right direction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jörn</title>
		<link>http://www.braindonor.net/coding-blog/custom-field-searching-wordpress-using-sphinx/199/comment-page-1/#comment-129</link>
		<dc:creator>Jörn</dc:creator>
		<pubDate>Tue, 17 Nov 2009 10:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.braindonor.net/?p=199#comment-129</guid>
		<description>Hi, thanks for this!
i have a serialized Array in one meta_value. Is there a way to make them searchable too?</description>
		<content:encoded><![CDATA[<p>Hi, thanks for this!<br />
i have a serialized Array in one meta_value. Is there a way to make them searchable too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Hoff</title>
		<link>http://www.braindonor.net/coding-blog/custom-field-searching-wordpress-using-sphinx/199/comment-page-1/#comment-70</link>
		<dc:creator>John Hoff</dc:creator>
		<pubDate>Mon, 22 Jun 2009 19:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.braindonor.net/?p=199#comment-70</guid>
		<description>My post concerned how to modify an existing plugin, &lt;a href=&quot;http://wordpress.org/extend/plugins/wordpress-sphinx-plugin/&quot; rel=&quot;nofollow&quot;&gt;Sphinx Search&lt;/a&gt;, to perform searches on custom fields.  I have not created a plugin to handle custom fields automatically.  The primary reason for this is that using custom fields heavily in a Wordpress installation already requires a lot of customization--so adding another plugin into the mix isn&#039;t really necessary.</description>
		<content:encoded><![CDATA[<p>My post concerned how to modify an existing plugin, <a href="http://wordpress.org/extend/plugins/wordpress-sphinx-plugin/" rel="nofollow">Sphinx Search</a>, to perform searches on custom fields.  I have not created a plugin to handle custom fields automatically.  The primary reason for this is that using custom fields heavily in a WordPress installation already requires a lot of customization&#8211;so adding another plugin into the mix isn&#8217;t really necessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamal</title>
		<link>http://www.braindonor.net/coding-blog/custom-field-searching-wordpress-using-sphinx/199/comment-page-1/#comment-69</link>
		<dc:creator>kamal</dc:creator>
		<pubDate>Mon, 22 Jun 2009 19:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.braindonor.net/?p=199#comment-69</guid>
		<description>Hi, and thanks for the info, as i&#039;m bad in english and php :p i would like to know wher can i download you plugin?
Thanks</description>
		<content:encoded><![CDATA[<p>Hi, and thanks for the info, as i&#8217;m bad in english and php :p i would like to know wher can i download you plugin?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JamesD</title>
		<link>http://www.braindonor.net/coding-blog/custom-field-searching-wordpress-using-sphinx/199/comment-page-1/#comment-48</link>
		<dc:creator>JamesD</dc:creator>
		<pubDate>Thu, 11 Jun 2009 13:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.braindonor.net/?p=199#comment-48</guid>
		<description>Thanks for the useful info. It&#039;s so interesting</description>
		<content:encoded><![CDATA[<p>Thanks for the useful info. It&#8217;s so interesting</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andres Carvajal</title>
		<link>http://www.braindonor.net/coding-blog/custom-field-searching-wordpress-using-sphinx/199/comment-page-1/#comment-24</link>
		<dc:creator>Andres Carvajal</dc:creator>
		<pubDate>Wed, 20 May 2009 23:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.braindonor.net/?p=199#comment-24</guid>
		<description>Hey John, this was really helpful! I don&#039;t think there&#039;s another site which explains how to do it.

Thank you very much,

Andres.</description>
		<content:encoded><![CDATA[<p>Hey John, this was really helpful! I don&#8217;t think there&#8217;s another site which explains how to do it.</p>
<p>Thank you very much,</p>
<p>Andres.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
