Enabling the XSLT extension for use in your XSLT templates.
Add the following XML snippet to your ~/config/xsltExtensions.config
file:
<XsltExtensions>
...
<ext assembly="uComponents.XsltExtensions" type="uComponents.XsltExtensions.Search" alias="ucomponents.search" />
...
</XsltExtensions>
Here are available methods in the Search
library:
Performs an advanced search against an Examine/Lucene index. Returns: Returns an XML structure of the advanced search results.
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
<xsl:value-of select="ucomponents.search:AdvancedSearch(searchText)" />
Performs an advanced search against an Examine/Lucene index. Returns: Returns an XML structure of the advanced search results.
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
| useWildcards | System.Boolean
| |
<xsl:value-of select="ucomponents.search:AdvancedSearch(searchText, useWildcards)" />
Advanceds the search. Returns: Returns an XML structure of the advanced search results.
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
| useWildcards | System.Boolean
| |
| providerName | System.String
| |
<xsl:value-of select="ucomponents.search:AdvancedSearch(searchText, useWildcards, providerName)" />
Performs an advanced search against an Examine/Lucene index. Returns: Returns an XML structure of the advanced search results.
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
| useWildcards | System.Boolean
| |
| providerName | System.String
| |
| indexType | System.String
| |
<xsl:value-of select="ucomponents.search:AdvancedSearch(searchText, useWildcards, providerName, indexType)" />
Gets the node ids. Returns: Returns a CSV of node Ids from a basic/quick search
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
<xsl:value-of select="ucomponents.search:GetNodeIds(searchText)" />
Gets the node ids. Returns: Returns a CSV of node Ids from a basic/quick search
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
| useWildcards | System.Boolean
| |
<xsl:value-of select="ucomponents.search:GetNodeIds(searchText, useWildcards)" />
Gets the node ids. Returns: Returns a CSV of node Ids from a basic/quick search
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
| useWildcards | System.Boolean
| |
| providerName | System.String
| |
<xsl:value-of select="ucomponents.search:GetNodeIds(searchText, useWildcards, providerName)" />
Performs a basic/quick search against an Examine/Lucene index. Returns: Returns an XML structure of the basic/quick search results.
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
<xsl:value-of select="ucomponents.search:QuickSearch(searchText)" />
Performs a basic/quick search against an Examine/Lucene index. Returns: Returns an XML structure of the basic/quick search results.
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
| useWildcards | System.Boolean
| |
<xsl:value-of select="ucomponents.search:QuickSearch(searchText, useWildcards)" />
Performs a basic/quick search against an Examine/Lucene index. Returns: Returns an XML structure of the basic/quick search results.
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
| useWildcards | System.Boolean
| |
| providerName | System.String
| |
<xsl:value-of select="ucomponents.search:QuickSearch(searchText, useWildcards, providerName)" />
Performs a raw query against the specified Examine/Lucene provider. Returns: Returns an XML structure of the raw search query results.
| Name | Type | Notes |
|——|——|——-|
| rawQuery | System.String
| |
| useWildcards | System.Boolean
| |
| providerName | System.String
| |
| indexType | System.String
| |
<xsl:value-of select="ucomponents.search:RawQuery(rawQuery, useWildcards, providerName, indexType)" />
Perform a search (interally).
| Name | Type | Notes |
|——|——|——-|
| searchText | System.String
| |
| useWildcards | System.Boolean
| |
| providerName | System.String
| |
<xsl:value-of select="ucomponents.search:InternalSearch(searchText, useWildcards, providerName)" />
Gets the results as XML. Returns: Returns an XML structure of the search results.
| Name | Type | Notes |
|——|——|——-|
| results | Examine.ISearchResults
| |
<xsl:value-of select="ucomponents.search:GetResultsAsXml(results)" />