Merge pull request #1416 from umap-project/search-index-doc
Update search index command in documentation
This commit is contained in:
commit
0a900bdd3b
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ may want to add an index. For that, you should do so:
|
||||||
ALTER TEXT SEARCH CONFIGURATION umapdict ALTER MAPPING FOR hword, hword_part, word WITH unaccent, simple;
|
ALTER TEXT SEARCH CONFIGURATION umapdict ALTER MAPPING FOR hword, hword_part, word WITH unaccent, simple;
|
||||||
|
|
||||||
# Now create the index
|
# Now create the index
|
||||||
CREATE INDEX IF NOT EXISTS search_idx ON umap_map USING GIN(to_tsvector('umapdict', name), share_status);
|
CREATE INDEX IF NOT EXISTS search_idx ON umap_map USING GIN(to_tsvector('umapdict', COALESCE(name, ''::character varying)::text), share_status);
|
||||||
|
|
||||||
And change `UMAP_SEARCH_CONFIGURATION = "umapdict"` in your settings.
|
And change `UMAP_SEARCH_CONFIGURATION = "umapdict"` in your settings.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue