lexemes in prefix search going through dictionary modifications

Поиск
Список
Период
Сортировка
От Sushant Sinha
Тема lexemes in prefix search going through dictionary modifications
Дата
Msg-id 1319556378.2023.6.camel@dragflick
обсуждение исходный текст
Ответы Re: lexemes in prefix search going through dictionary modifications
Список 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 по дате отправления:

Предыдущее
От: Gurjeet Singh
Дата:
Сообщение: Re: Unreproducible bug in snapshot import code
Следующее
От: Florian Pflug
Дата:
Сообщение: Re: lexemes in prefix search going through dictionary modifications