djangosnippets.org: Latest snippets tagged with 'trgm'https://djangosnippets.org/tags/trgm/2015-04-03T01:28:19.150163-05:00Enhance django postgresql orm for trigram search
2015-04-03T01:28:19.150163-05:00ftrihttps://djangosnippets.org/snippets/10477/<p>This is a quite simple snippet to integrate postgresql trgm search in django 1.6.10</p>
<p>This snippet is easy to adapt to other special operators by changing the trgm_search function. This example uses the operator <code>%%</code> but you could use <code>ts_vector(fieldname) @@ to_tsquery(%s)</code></p>
Freely redistributable