public inbox for [email protected]
help / color / mirror / Atom feedFrom: Thorsten <[email protected]>
To: [email protected]
Subject: Full Text Search German Date
Date: Sat, 24 May 2025 09:51:00 +0200
Message-ID: <[email protected]> (raw)
I encountered a problem I don't understand.
I create a tsvector (in a column named "search") from document files,
which contain a German date. When I select the column, I can see it has
been tokenized:
'25.05.2025':56,99 (plus many other tokens)
but
SELECT id FROM documents WHERE
search @@ to_tsquery('german', '25.05.2025')
gives no result.
But this query returns true:
select to_tsvector('german', 'bla baum haus 25.05.2025 blub fahrrad')
@@ to_tsquery('german', '25.05.2025')
And also the following query returns true:
select '25.05.2025:1 blub:2'::tsvector @@ to_tsquery('german', '25.05.2025')
Can someone explain me, why my query on the database fails?
view thread (2+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Full Text Search German Date
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox