fts-config¶
vb fts-config [SUBCOMMAND] [ARGUMENT]
Description¶
The vb fts-config command configures the full-text search capabilities
of the repository.
The current search settings are displayed after any changes are applied. Run this command with no arguments to simply see the settings.
Subcommands¶
vb fts-config reindex¶
vb fts-config reindex
Description¶
Rebuild the search index. This is a no-op if index search is disabled.
vb fts-config index¶
vb fts-config index {on|off}
Description¶
Turn the search index on or off.
vb fts-config enable¶
vb fts-config enable TYPE ...
Description¶
Enable search for TYPE. TYPE is one of: check-in, document, ticket, wiki, technote, forum, help, or all.
vb fts-config disable¶
vb fts-config disable TYPE ...
Description¶
Disable search for TYPE.
vb fts-config tokenizer¶
vb fts-config tokenizer VALUE
Description¶
Select a tokenizer for indexed search. VALUE
may be one of (porter, on, off, trigram, unicode61),
and on is equivalent to porter. Unindexed
search never uses tokenization or stemming.
Examples¶
Check current search settings
$ vb fts-config
check-in search: off
document search: off
ticket search: off
wiki search: off
technote search: off
forum search: off
built-in help search: off
tokenizer: off
full-text index: disabled
Turn indexing on and rebuild
$ vb fts-config index on
rebuilding the search index... done
check-in search: off
document search: off
ticket search: off
wiki search: off
technote search: off
forum search: off
built-in help search: off
tokenizer: off
full-text index: FTS5
documents: 1
space used 28.7KB (11.5% of repository)
$ vb fts-config reindex
rebuilding the search index... done
check-in search: off
document search: off
ticket search: off
wiki search: off
technote search: off
forum search: off
built-in help search: off
tokenizer: off
full-text index: FTS5
documents: 1
space used 28.7KB (11.5% of repository)
Enable and disable search types
$ vb fts-config enable wiki ticket
check-in search: off
document search: off
ticket search: on
wiki search: on
technote search: off
forum search: off
built-in help search: off
tokenizer: off
full-text index: FTS5
documents: 1
space used 28.7KB (11.5% of repository)
$ vb fts-config disable ticket
check-in search: off
document search: off
ticket search: off
wiki search: on
technote search: off
forum search: off
built-in help search: off
tokenizer: off
full-text index: FTS5
documents: 1
space used 28.7KB (11.5% of repository)
Choose a tokenizer
$ vb fts-config tokenizer unicode61
rebuilding the search index... done
check-in search: off
document search: off
ticket search: off
wiki search: on
technote search: off
forum search: off
built-in help search: off
tokenizer: unicode61
full-text index: FTS5
documents: 1
space used 28.7KB (11.5% of repository)
Turn indexing off
$ vb fts-config index off
check-in search: off
document search: off
ticket search: off
wiki search: on
technote search: off
forum search: off
built-in help search: off
tokenizer: unicode61
full-text index: disabled