﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31296	Document different config scenarios of full text search configuration.	Baptiste Mispelon	nobody	"The documentation for full text search [1] explains that you can pass a `config` parameter to both `SearchVector` and `SearchQuery` but it's not clear to me if you need to pass the same configuration to both or what happens if you pass two different configurations to each object.

In other words, is there a difference between the following 3 scenarios:

{{{#!python
# from the documentation
Entry.objects.annotate(
...     search=SearchVector('body_text', config='french'),
... ).filter(search=SearchQuery('œuf', config='french'))

Entry.objects.annotate(
...     search=SearchVector('body_text', config='french'),
... ).filter(search=SearchQuery('œuf'))

Entry.objects.annotate(
...     search=SearchVector('body_text'),
... ).filter(search=SearchQuery('œuf', config='french'))
}}}


And also, what happens when you try different configurations in the same query:
{{{#!python

Entry.objects.annotate(
...     search=SearchVector('body_text', config='english'),
... ).filter(search=SearchQuery('œuf', config='french'))

}}}

[1] https://docs.djangoproject.com/en/3.0/ref/contrib/postgres/search/#changing-the-search-configuration"	Cleanup/optimization	closed	Documentation	3.0	Normal	wontfix		ChillarAnand	Unreviewed	0	0	0	0	0	0
