lexemes in prefix search going through dictionary modifications - Mailing list pgsql-hackers

From Sushant Sinha
Subject lexemes in prefix search going through dictionary modifications
Date
Msg-id 1319556378.2023.6.camel@dragflick
Whole thread Raw
Responses Re: lexemes in prefix search going through dictionary modifications  (Florian Pflug <fgp@phlo.org>)
List pgsql-hackers
I am currently using the prefix search feature in text search. I find
that the prefix characters are treated the same as a normal lexeme and
passed through stemming and stopword dictionaries. This seems like a bug
to me. 

db=# select to_tsquery('english', 's:*');
NOTICE:  text-search query contains only stop words or doesn't contain
lexemes, ignoredto_tsquery 
------------
(1 row)

db=# select to_tsquery('simple', 's:*');to_tsquery 
------------'s':*
(1 row)


I also think that this is a mistake. It should only be highlighting "s".
db=# select ts_headline('sushant', to_tsquery('simple', 's:*')); ts_headline   
----------------<b>sushant</b>


Thanks,
Sushant.



pgsql-hackers by date:

Previous
From: Gurjeet Singh
Date:
Subject: Re: Unreproducible bug in snapshot import code
Next
From: Florian Pflug
Date:
Subject: Re: lexemes in prefix search going through dictionary modifications