<?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>The journey with little green men &#187; full-text search</title>
	<atom:link href="http://bakhtiyor.com/tag/full-text-search/feed/" rel="self" type="application/rss+xml" />
	<link>http://bakhtiyor.com</link>
	<description>Blog about mobile software development and the universe</description>
	<lastBuildDate>Sat, 12 Dec 2009 08:47:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SQLite Full-Text Search</title>
		<link>http://bakhtiyor.com/2009/08/sqlite-full-text-search/</link>
		<comments>http://bakhtiyor.com/2009/08/sqlite-full-text-search/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 19:53:40 +0000</pubDate>
		<dc:creator>bakhtiyor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[full-text search]]></category>
		<category><![CDATA[sqlite]]></category>
		<guid isPermaLink="false">http://bakhtiyor.com/?p=397</guid>
		<description><![CDATA[SQLite contains full-text search module called FTS3, using this module you can easily add fast full text search to an Android application. First you need to create virtual table: CREATE VIRTUAL TABLE TableName USING FTS3(ColOne TEXT, ColTwo DATETIME) Your table must contains at least 1 TEXT field. The FTS3 virtual table acts like a regular [...]]]></description>
			<content:encoded><![CDATA[<p>SQLite contains full-text search module called FTS3, using this module you can easily add fast full text search to an Android application.<br />
First you need to create virtual table:</p>
<pre class="brush: sql">
CREATE VIRTUAL TABLE TableName
    USING FTS3(ColOne TEXT, ColTwo DATETIME)
</pre>
<p>Your table must contains at least 1 TEXT field.<br />
The FTS3 virtual table acts like a regular table, but you need to manually maintain the indexes to keep referential integrity — you should UPDATE the FTS3 table from time to time.<br />
The full-text query in SQLite looks like this:</p>
<pre class="brush: sql">
SELECT * FROM TableName WHERE ColOne MATCH &#039;search phrase&#039;
</pre>
<p>Make sure you use MATCH instead of equals or LIKE to scan a TEXT column in a virtual table.<br />
There is a sample application to demonstrate full-text search in action:<br />
<img src="http://bakhtiyor.com/wp-content/uploads/2009/09/fts3.jpg" alt="fts3" title="fts3" width="320" height="480" class="aligncenter size-full wp-image-423" /><br />
Download full-text search <a href="http://bakhtiyor.com/wp-content/uploads/2009/08/fts3.zip">sample application</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bakhtiyor.com/2009/08/sqlite-full-text-search/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
