Search.config defines the location of main content index files,
which outputs to a single location on disk. Ingeniux Search queries the main content
index.
To configure Search.config for the main content index:
Open your DSS solution in Visual
Studio.
Right-click the solution file (i.e., the top node) in the Solution
Explorer view, and select Rebuild.
Navigate to
[Drive]:\[path-to-DSS-root-folder],
and open Search.config in a text editor.
On the <Search> element, complete the following
steps.
Ensure the <Search> element's @indexLocation
attribute points to the LuceneIndex folder, where your main
content index will be stored.
Set
the @indexingEnabled attribute on the <Search>
element to true.
Your code should look similar to the following example:
On the <add> element, complete the following
steps:
Enter an arbitrary, unique name as the @name attribute
value.
Enter Ingeniux.Runtime.Search.DssContentSearchSource as the
@type attribute value.
Note
Queries that run against this library type require
that the content published from an Ingeniux CMS be used by an
Ingeniux DSS.
Enter an absolute path to SearchSource.config as
the @settingsFile attribute value.
Important
Verify the validity of the DSS directory filepath to
SearchSource.config in the
<IndexingSources> element. A basic
SearchSource.config file resides in
[Drive]:\[path-to-DSS-root-folder]\[directory-containing-published-content]\settings.
This file generates on publish of CMS content to the publishing
content's Settings folder (e.g.,
[Drive]:\[path-to-cms-site-instance]\site\App_Data\pub\[publishing-target-name]\settings\SearchSource.config).
Your code should look similar to the following example: