Re: Need help with full text index configuration - Mailing list pgsql-general

From Brian Hirt
Subject Re: Need help with full text index configuration
Date
Msg-id 7ECCA59E-F5A5-4B21-A849-729794891CFC@mobygames.com
Whole thread Raw
In response to Re: Need help with full text index configuration  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Need help with full text index configuration
List pgsql-general
Tom,

Thanks for the quick reply.   Doing a frontend mapping was my next option since I really don't care about / and the
abilityto search on it.   Preventing the parser from using the file tokenizer seemed like a better solution so I wanted
togo down that path first (there are other false hits i was worried about too, like email, etc) 

I'm really confused about what "ALTER TEXT SEARCH CONFIGURATION dict DROP MAPPING FOR file" actually does.   The
documentationseems to make it sound like it does what I want, but I guess it does something else. 

--brian

On Jul 28, 2010, at 2:06 PM, Tom Lane wrote:

> Brian Hirt <bhirt@mobygames.com> writes:
>> For example instead of the parser recognizing three asciiword it recognizes one asciiword and one file.   I'd like a
wayto have the / just get parsed as blank.  
>
> AFAIK the only good way to do that is to write your own parser :-(.
> The builtin parser isn't really configurable.  (If you didn't mind
> maintaining a private version you could patch its state transition
> table manually, but that seems like a PITA.)
>
> For the case at hand it could be a pretty thin frontend to the builtin
> text parser --- just change / to space and then call the builtin one.
> contrib/test_parser/ might help you get started.
>
>             regards, tom lane
>


pgsql-general by date:

Previous
From: raghu ram
Date:
Subject: Pglesslog issue
Next
From: Tom Lane
Date:
Subject: Re: Need help with full text index configuration