CreateSearchIndex

CreateSearchIndex[dir]

creates a search index from all files in the directory dir and its subdirectories.

CreateSearchIndex[{source1,source2,}]

creates a search index from all sources sourcei.

CreateSearchIndex[sources,"name"]

gives the search index the specified name.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Create a search index from two files:

In[1]:=
Click for copyable input
Out[1]=

TextSearch searches in the index:

In[2]:=
Click for copyable input
Out[2]=

Create a search index from all files and subfolders in a folder:

In[1]:=
Click for copyable input
Out[1]=

Search the index:

In[2]:=
Click for copyable input
Out[2]=

Options  (2)

See Also

SearchIndexObject  TextSearch  SearchIndices  DeleteSearchIndex  UpdateSearchIndex  FileNames  FileSystemMap

Introduced in 2015
(10.2)