Kaydet (Commit) eac396a5 authored tarafından Paolo Melchiorre's avatar Paolo Melchiorre Kaydeden (comit) Tim Graham

Fixed typos in docs/topic/db/search.txt.

üst dd001848
...@@ -50,7 +50,7 @@ more useful. When dealing with non-English names, a further improvement is to ...@@ -50,7 +50,7 @@ more useful. When dealing with non-English names, a further improvement is to
use :lookup:`unaccented comparison <unaccent>`:: use :lookup:`unaccented comparison <unaccent>`::
>>> Author.objects.filter(name__unaccent__icontains='Helen') >>> Author.objects.filter(name__unaccent__icontains='Helen')
[<Author: Helen Mirren>, <Author: Helena Bonham Carter>, <Actor: Hélène Joy>] [<Author: Helen Mirren>, <Author: Helena Bonham Carter>, <Author: Hélène Joy>]
This shows another issue, where we are matching against a different spelling of This shows another issue, where we are matching against a different spelling of
the name. In this case we have an asymmetry though - a search for ``Helen`` the name. In this case we have an asymmetry though - a search for ``Helen``
...@@ -61,7 +61,7 @@ sequences of letters. ...@@ -61,7 +61,7 @@ sequences of letters.
For example:: For example::
>>> Author.objects.filter(name__unaccent__lower__trigram_similar='Hélène') >>> Author.objects.filter(name__unaccent__lower__trigram_similar='Hélène')
[<Author: Helen Mirren>, <Actor: Hélène Joy>] [<Author: Helen Mirren>, <Author: Hélène Joy>]
Now we have a different problem - the longer name of "Helena Bonham Carter" Now we have a different problem - the longer name of "Helena Bonham Carter"
doesn't show up as it is much longer. Trigram searches consider all doesn't show up as it is much longer. Trigram searches consider all
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment