Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
Why is this empty?

Please does anyone know why this:

SELECT to_tsvector('an'); 

returns nothing but

SELECT to_tsvector('nn');

or

SELECT to_tsvector('n');

or

SELECT to_tsvector('aa');

do?

I am testing this on PostgreSQL 13 running on SUPABASE.

Thanks

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Because "an" is a stop word in your current setup (probably English, the default).

From the documentation

The to_tsvector function internally calls a parser which breaks the document text into tokens and assigns a type to each token. For each token, a list of dictionaries (Section 12.6) is consulted, where the list can vary depending on the token type.

And (emphasis mine)...

Some words are recognized as stop words (Section 12.6.1), which causes them to be ignored since they occur too frequently to be useful in searching.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!