pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Victor Drobny <v.drobny@postgrespro.ru>
To: Aleksander Alekseev <a.alekseev@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Subject: Re: new function for tsquery creartion
Date: Wed, 29 Nov 2017 17:56:30 +0300
Message-ID: <157ea1194ec9c416df45bfddab10cacd@postgrespro.ru> (raw)
In-Reply-To: <20171128145659.GA32487@e733.localdomain>
References: <fe931111ff7e9ad79196486ada79e268@postgrespro.ru>
	<15517a04afd2be779e2e6d69611c348b@postgrespro.ru>
	<20171128143916.1377.5847.pgcf@coridan.postgresql.org>
	<20171128145659.GA32487@e733.localdomain>

On 2017-11-28 17:57, Aleksander Alekseev wrote:
Hi Aleksander,

Thank you for review. I have tried to fix all of your comments.
However i want to mention that the absence of comments for functions
in to_tsany.c is justified by the absence of comments for other
similar functions.
> Hi Victor,
> 
>> I like the idea and I think it's a great patch. However in current 
>> shape it
>> requires some amount of reworking to meet PostgreSQL standards of code 
>> quality.
> 
> Also I would like to add that I agree with Thomas Munro:
> 
>> Calling this search syntax just "query" seems too general and
>> overloaded.  "Simple search", "simple query", "web search", "web
>> syntax", "web query", "Google-style query", "Poogle" (kidding!) ...
>> well I'm not sure, but I feel like it deserves a proper name.
>> websearch_to_tsquery()?
> 
> websearch_to_tsquery() sounds much better than query_to_tsquery().
> 
> Also I agree Tomas Vondra in regard that:
> 
>> 2) I don't think we should mention Google in the docs explicitly. Not
>> that I'm somehow anti-google, but this syntax was certainly not 
>> invented
>> by Google - I vividly remember using something like that on Altavista
>> (yeah, I'm old). And it's used by pretty much every other web search
>> engine out there ...
> 
> I suggest to rephrase:
> 
> ```
> +    about its input. <function>queryto_tsquery</function> provides a
> +    different, Google like syntax to create tsquery.
> ```
> 
> .. to something more like "provides a different syntax, similar to one
> used in web search engines, to create tsqeury". And maybe give a few
> examples right in the next sentence.
Best,

-- 
Victor Drobny
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company




view thread (36+ messages)  latest in thread

Message-ID: <157ea1194ec9c416df45bfddab10cacd@postgrespro.ru>
Permalink:  ../157ea1194ec9c416df45bfddab10cacd@postgrespro.ru/
Also on:    postgresql.org/message-id/157ea1194ec9c416df45bfddab10cacd@postgrespro.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: v.drobny@postgrespro.ru, a.alekseev@postgrespro.ru
  Subject: Re: new function for tsquery creartion
  In-Reply-To: <157ea1194ec9c416df45bfddab10cacd@postgrespro.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox