Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id EBC24633934 for ; Fri, 9 Apr 2010 10:53:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 30243-02 for ; Fri, 9 Apr 2010 13:53:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mail.postgresql.org (Postfix) with ESMTP id 2FDE16332E0 for ; Fri, 9 Apr 2010 10:53:22 -0300 (ADT) Received: by bwz8 with SMTP id 8so1082427bwz.3 for ; Fri, 09 Apr 2010 06:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=H2eWUSuDLV8Upp4oibrBKASZzL+2aZ87zvJMf52WWJA=; b=nmQKffpRnjNHncKdf1Ln9GBMAiF5WP1iBfW7kSDvYX46zfClXDuDUoh6unJOpEpAzT gB+Xk2lo2RIC/O3YoR7/KxrY35rOL/AiwKWGNMv/9AcjccCx3Em4BZRBbw0mJIZndWQu rHVEx9+9rh/eABuMhRmc6MilMtpnZMSUVOiyI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=JDPaymkddAM3Q80C7IeVStoEaSsqEYcc1QNynjLbif/U9CYahsmMfkKrxZtWCBPdVw uVgU6iNbJ3n1Izh66jZKrpFYk34gZLp2RTA+pLu8qdJANB5tj4urD8fCyhoP0ZqOuPXP 0+8+dw//TlY+tj/9f8jwJfGW8ChFxSDKXxh+Q= Received: by 10.204.39.203 with SMTP id h11mr149747bke.10.1270821200497; Fri, 09 Apr 2010 06:53:20 -0700 (PDT) Received: from [192.168.1.20] (HSI-KBW-082-212-034-242.hsi.kabelbw.de [82.212.34.242]) by mx.google.com with ESMTPS id 15sm535627bwz.12.2010.04.09.06.53.19 (version=SSLv3 cipher=RC4-MD5); Fri, 09 Apr 2010 06:53:19 -0700 (PDT) Message-ID: <4BBF314F.8060308@gmail.com> Date: Fri, 09 Apr 2010 15:53:19 +0200 From: Corin User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: [Fwd: Re: fulltext search stemming/ spelling problems] Content-Type: multipart/mixed; boundary="------------010407060102050300070706" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.185 tagged_above=-10 required=5 tests=BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 201004/330 X-Sequence-Number: 161528 This is a multi-part message in MIME format. --------------010407060102050300070706 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, nobody here who knows how to get the postgre fulltext working with ispell and stemming? :-( So that when I search for 'gitar' also records containing 'guitar', 'guitars', ... will be found. Any help would be really appreciated! :) Thanks, Corin --------------010407060102050300070706 Content-Type: message/rfc822; name="Re: [GENERAL] fulltext search stemming/ spelling problems.eml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="Re: [GENERAL] fulltext search stemming/ spelling problems.em"; filename*1="l" Return-Path: Received: from [192.168.1.20] (HSI-KBW-082-212-034-242.hsi.kabelbw.de [82.212.34.242]) by mx.google.com with ESMTPS id 15sm248886bwz.4.2010.04.08.13.54.38 (version=SSLv3 cipher=RC4-MD5); Thu, 08 Apr 2010 13:54:39 -0700 (PDT) Message-ID: <4BBE428E.6090607@gmail.com> Date: Thu, 08 Apr 2010 22:54:38 +0200 From: Corin User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Oleg Bartunov , pgsql-general@postgresql.org Subject: Re: [GENERAL] fulltext search stemming/ spelling problems References: <4BBDF08C.9080103@gmail.com> <4BBE2BF3.3070409@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08.04.2010 21:27, Oleg Bartunov wrote: > it means, that (from > http://www.postgresql.org/docs/current/static/textsearch-dictionaries.html#TEXTSEARCH-ISPELL-DICTIONARY) > > > 12.6.5. Ispell Dictionary > > The Ispell dictionary template supports morphological dictionaries, > which can normalize many different linguistic forms of a word into the > same lexeme. For example, an English Ispell dictionary can match all > declensions and conjugations of the search term bank, e.g., banking, > banked, banks, banks', and bank's. I already read this but I don't know how to solve my problems with this information. SELECT ts_lexize('english_ispell','guitar'); {guitar} (1 line) SELECT ts_lexize('english_ispell','bank'); {bank} (1 line) SELECT ts_debug('english_ispell','bank'); (asciiword,"Word, all ASCII",bank,"{english_ispell,english_stem}",english_ispell,{bank}) (1 line) SELECT plainto_tsquery('english_ispell','bank'); 'bank' (1 line) > Regards, > Oleg It would be very nice if you (or anyone else) could provide me with concrete instructions or any howto. What can I do to find the error in my setup? What output should I expect from the above comments if everything worked correctly? Thanks, Corin --------------010407060102050300070706--