Re: [PATCH] few fts functions for jsonb - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [PATCH] few fts functions for jsonb
Date
Msg-id f95ca33b-aef6-60fc-ff10-f103c08228e6@2ndQuadrant.com
Whole thread Raw
In response to Re: [PATCH] few fts functions for jsonb  ("Sven R. Kunze" <srkunze@mail.de>)
Responses Re: [PATCH] few fts functions for jsonb  ("Sven R. Kunze" <srkunze@mail.de>)
List pgsql-hackers

On 04/03/2017 02:44 PM, Sven R. Kunze wrote:
> On 01.04.2017 22:20, Andrew Dunstan wrote:
>> I added documentation when I committed it for the new functions, in the
>> FTS section. I'm not sure what we need to add to the JSON section if
>> anything.
>
> Not sure, if this is related but the formatting of
> https://www.postgresql.org/docs/devel/static/functions-textsearch.html
> looks a bit strange.
>
> Just 2 questions/notes:
> 1) in what order are the values of the JSON extracted?

In the order they exist in the underlying document.

>
> 2) Regarding the additional line:
> to_tsvector([ config regconfig , ] document json(b))    tsvector
> reduce document text to tsvector    to_tsvector('english', '{"a": "The
> Fat Rats"}'::json)    'fat':2 'rat':3
>
> Maybe change "reduce document text to tsvector" to "extracting JSON
> values <in what order> and reduce to tsvector"?
>
>


OK, I will do something along those lines.

cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [PATCH] few fts functions for jsonb
Next
From: Fabien COELHO
Date:
Subject: Re: Variable substitution in psql backtick expansion