Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:text': 0.05; '64-bit': 0.07; 'binary': 0.07; 'subject: + ': 0.07; '32-bit': 0.09; 'enabled.': 0.09; 'feature,': 0.09; 'lawrence': 0.09; 'msi': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'missed': 0.12; 'language.': 0.14; 'windows': 0.15; '23,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sqlite': 0.16; 'subject:search': 0.16; 'time"': 0.16; 'url:sqlite': 0.16; 'thursday,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'feb': 0.22; 'import': 0.22; 'install': 0.23; 'this?': 0.23; 'header:User-Agent:1': 0.23; 'documented': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'that.': 0.31; '(although': 0.31; 'enabled': 0.31; 'option.': 0.31; 'anyone': 0.31; 'file': 0.32; 'option': 0.32; 'text': 0.33; 'guess': 0.33; "i'd": 0.34; 'could': 0.34; 'subject: (': 0.35; 'but': 0.35; 'version': 0.36; 'curious': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'january': 0.37; 'too': 0.37; 'las': 0.37; 'being': 0.38; 'system,': 0.38; 'stable': 0.38; 'to:addr:python- list': 0.38; 'rather': 0.38; 'support,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'full': 0.61; "you're": 0.61; 'here:': 0.62; 'such': 0.63; 'our': 0.64; 'more': 0.64; 'reply': 0.66; 'presumably': 0.84; '(full': 0.91; '2013,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: SQLite + FTS (full text search) Date: Thu, 23 Jan 2014 13:39:08 +0000 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-184-11.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 50 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390484350 news.xs4all.nl 2953 [2001:888:2000:d::a6]:46627 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64606 On 23/01/2014 13:24, Asaf Las wrote: > On Thursday, January 23, 2014 2:20:31 PM UTC+2, Mark Summerfield wrote: >> Hi, >> On my Debian stable 64-bit system, SQLite3 has FTS (full text search) >> enabled (although at version 3 rather than the recommended version 4): >> >> Python 3.2.3 (default, Feb 20 2013, 14:44:27) [GCC 4.7.2] on linux2 >> Type "copyright", "credits" or "license()" for more information. >>>>> import sqlite3 >>>>> con = sqlite3.connect(":memory:") >>>>> cur = con.execute("pragma compile_options") >>>>> for row in cur: >> print(row) >> ... >> ('ENABLE_FTS3',) >> ... >> But on Windows when I use the official Python 3.3 32-bit binary >> from www.python.org this is not enabled. >> >> My guess is that on Debian, the packagers install a full SQLite 3 >> and the Python package uses that. But on Windows I think the Python >> packagers bundle their own SQLite (quite rightly since it might not >> already be installed). >> >> I'd like the Windows binary to include SQLite 3 with FTS4 support, >> but I don't know how much work that involves or if it would make >> the Python .msi file too big? >> >> Anyway, I guess if anyone else is interested in this they >> could perhaps reply to indicate this? >> If you're curious about the feature, it is documented here: >> >> http://www.sqlite.org/fts3.html > > It is compile time option. > http://www.sqlite.org/compile.html#enable_fts3 > you have to build it with this option enabled. > As an option can be represented in a single bit then presumably the Windows msi file only needs an extra bit to allow for this, or have I missed something? While I'm at it what is this "compile time" thingy, being on Windows I'm not used to seeing such terminology? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence