Merge pull request #1416 from umap-project/search-index-doc

Update search index command in documentation
This commit is contained in:
Yohan Boniface 2023-11-21 20:55:08 +01:00 committed by GitHub
commit 0a900bdd3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.