mmsearch
Full-text and keyword search in Model Manager.
Syntax
mmsearch(branch, searchterm)
mmsearch(branch, keyword, term, ...)
Description
mmsearch(branch, searchterm) performs a full-text search for searchterm in all models and files stored in the branch. The limit for number of returned results is 10,000.
mmsearch(branch, keyword, term, …) performs a search for a set of filters identified by keyword and a search term. If several of such keyword/term pairs are added the search is performed by using the AND operator between the terms. The default limit for the number of returned results is 500, which can be changed by using the limit option.
Example
Search for filenames that either contains "free" or contains "chem":
branch = mmgetbranch('Main', 'Repository 1', 'MyDatabase')
dat = mmsearch(branch, '@filename:*free* OR @filename:*chem*')
Search for models where the title is "busbar":
dat = mmsearch(branch, 'title', 'busbar')
This is the same as performing the search
dat = mmsearch(branch, '@title:busbar')
Search for model nodes using an field expression for the node filter by searching for nodes of type analytic and a savetype of "regular":
dat = mmsearch(branch, 'node', '@type:analytic', 'savetype', 'regular')