Re: Phrase search vs. multi-lexeme tokens

2021-01-29 Thread Alexander Korotkov
On Tue, Jan 26, 2021 at 4:31 AM Neil Chen wrote: > On Mon, Jan 25, 2021 at 11:25 PM Alexander Korotkov > wrote: >> >> >> BTW, you mentioned you read the documentation. Do you think it needs >> to be adjusted accordingly to the patch? >> > > Yes, I checked section 8.11, section 9.13 and Chapter

Re: Phrase search vs. multi-lexeme tokens

2021-01-25 Thread Neil Chen
Hi Alexander, On Mon, Jan 25, 2021 at 11:25 PM Alexander Korotkov wrote: > > BTW, you mentioned you read the documentation. Do you think it needs > to be adjusted accordingly to the patch? > > Yes, I checked section 8.11, section 9.13 and Chapter 12 of the document. The change of this patch did

Re: Phrase search vs. multi-lexeme tokens

2021-01-25 Thread Alexander Korotkov
Hi, Neil! On Mon, Jan 25, 2021 at 11:45 AM Neil Chen wrote: > > The following review has been posted through the commitfest application: > make installcheck-world: tested, passed > Implements feature: tested, passed > Spec compliant: not tested > Documentation:not

Re: Phrase search vs. multi-lexeme tokens

2021-01-25 Thread Neil Chen
The following review has been posted through the commitfest application: make installcheck-world: tested, passed Implements feature: tested, passed Spec compliant: not tested Documentation:not tested Greetings, Although I am not an expert in this field, I carefully

Re: Phrase search vs. multi-lexeme tokens

2021-01-20 Thread Alexander Korotkov
On Thu, Jan 7, 2021 at 6:36 AM Alexander Korotkov wrote: > > > I read your patch over quickly and it seems like a reasonable > > approach (but sadly underdocumented). Can we extend the idea > > to fix the to_tsquery case? > > Sure, I'll provide a revised patch. The next version of the patch is

Re: Phrase search vs. multi-lexeme tokens

2021-01-06 Thread Alexander Korotkov
Hi! On Wed, Jan 6, 2021 at 8:18 PM Tom Lane wrote: > Alexander Korotkov writes: > > # select to_tsvector('pg_class foo') @@ websearch_to_tsquery('"pg_class > > foo"'); > > ?column? > > -- > > f > > Yeah, surely this is wrong. Thank you for confirming my thoughts. I also felt that

Re: Phrase search vs. multi-lexeme tokens

2021-01-06 Thread Tom Lane
Alexander Korotkov writes: > # select to_tsvector('pg_class foo') @@ websearch_to_tsquery('"pg_class > foo"'); > ?column? > -- > f Yeah, surely this is wrong. > # select to_tsquery('pg_class <-> foo'); > to_tsquery > -- > ( 'pg' & 'class' ) <->

Re: Phrase search vs. multi-lexeme tokens

2020-12-01 Thread Alexander Korotkov
On Thu, Nov 12, 2020 at 4:09 PM Alexander Korotkov wrote: > This issue looks like the much more complex design bug in phrase > search. Fixing this would require some kind of readahead or multipass > processing, because we don't know how to process 'pg_class' in > advance. > > Is this really a