#29084: tests.postgres_tests.test_search.SimpleSearchTest:
to_tsvector/plainto_tsquery need 'english' as first parameter
-------------------------------------+-------------------------------------
     Reporter:  Дилян Палаузов       |                    Owner:  (none)
         Type:  Uncategorized        |                   Status:  new
    Component:  contrib.postgres     |                  Version:  1.11
     Severity:  Normal               |               Resolution:
     Keywords:  tests postgresql     |             Triage Stage:
  search                             |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Дилян Палаузов):

 That is exactly what I am saying.  These are my search configurations:
 {{{
 psql \dF
                List of text search configurations
    Schema   |    Name    |              Description
 ------------+------------+---------------------------------------
  pg_catalog | danish     | configuration for danish language
  pg_catalog | dutch      | configuration for dutch language
  pg_catalog | english    | configuration for english language
  pg_catalog | finnish    | configuration for finnish language
  pg_catalog | french     | configuration for french language
  pg_catalog | german     | configuration for german language
  pg_catalog | hungarian  | configuration for hungarian language
  pg_catalog | italian    | configuration for italian language
  pg_catalog | norwegian  | configuration for norwegian language
  pg_catalog | portuguese | configuration for portuguese language
  pg_catalog | romanian   | configuration for romanian language
  pg_catalog | russian    | configuration for russian language
  pg_catalog | simple     | simple configuration
  pg_catalog | spanish    | configuration for spanish language
  pg_catalog | swedish    | configuration for swedish language
  pg_catalog | turkish    | configuration for turkish language
 (16 rows)

 psql SHOW default_text_search_config ;
  default_text_search_config
 ----------------------------
  pg_catalog.simple
 (1 row)

 psql \dF+ simple
 Text search configuration "pg_catalog.simple"
 Parser: "pg_catalog.default"
       Token      | Dictionaries
 -----------------+--------------
  asciihword      | simple
  asciiword       | simple
  email           | simple
  file            | simple
  float           | simple
  host            | simple
  hword           | simple
  hword_asciipart | simple
  hword_numpart   | simple
  hword_part      | simple
  int             | simple
  numhword        | simple
  numword         | simple
  sfloat          | simple
  uint            | simple
  url             | simple
  url_path        | simple
  version         | simple
  word            | simple
 }}}

 The {{{simple dictionary}}} is described at
 https://www.postgresql.org/docs/9.6/static/textsearch-dictionaries.html
 #TEXTSEARCH-SIMPLE-DICTIONARY . The tests assume that in the default
 configuration the {{{english_stem}}} dictionary is used.  However
 {{{simple}}} is the default configuration for unconfigured PG:
 https://www.postgresql.org/docs/9.6/static/runtime-config-client.html#GUC-
 DEFAULT-TEXT-SEARCH-CONFIG .

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29084#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.8062620f9de926cd1a9470d8fe76d075%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to