Class SearchDocumentToDelete
The document that will be deleted from search Index.
Namespace: DotNetNuke.Services.Search.Entities
Assembly: DotNetNuke.dll
Syntax
public class SearchDocumentToDelete : object
Remarks
This is the base for all search documents (have common properties) that can be used for deleting from the search index.
Constructors
| Improve this Doc View SourceSearchDocumentToDelete()
Initializes a new instance of the SearchDocumentToDelete class.
Declaration
public SearchDocumentToDelete()
Remarks
This is the base for all search documents (have common properties) that can be used for deleting from the search index.
Properties
| Improve this Doc View SourceAuthorUserId
Gets or sets user Id of the Author.
Declaration
public int AuthorUserId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Author's display name is automatically found and stored. AuthorName can be found in SearchResult. However, this may get out of date if Display Name is changed after Index.
CultureCode
Gets or sets culture Code associated with the content.
Declaration
public string CultureCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
A value of NULL/EMPTY means this is property is not used.
Keywords
Gets or sets additional keywords can be specified for Indexing.
Declaration
public IDictionary<string, string> Keywords { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, System.String> |
Remarks
This is key-value pair, e.g. "AliasName","something".
ModuleDefId
Gets or sets module Definition Id of the Content.
Declaration
public int ModuleDefId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
This is needed when SearchTypeId is for a Module.
ModuleId
Gets or sets module Id of the Content.
Declaration
public int ModuleId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
This is needed when SearchTypeId is for a Module.
NumericKeys
Gets or sets additional numeric fields can be specified for Indexing.
Declaration
public IDictionary<string, int> NumericKeys { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, System.Int32> |
Remarks
This is key-value pair, e.g. "ItemId","888".
PortalId
Gets or sets portal Id.
Declaration
public int PortalId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
A value of -1 means this is property is not used.
QueryString
Gets or sets queryString that may be associated with a Search Document.
Declaration
public string QueryString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This information will be used to create Url for the document.
RoleId
Gets or sets roleId (GroupId) for additional filtering [Optional].
Declaration
public int RoleId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
This property can be used while under Social Groups.
SearchTypeId
Gets or sets search Type Id, e.g. module, file or url.
Declaration
public int SearchTypeId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
A value of -1 means this is property is not used.
TabId
Gets or sets tab Id of the Content [Optional].
Declaration
public int TabId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
A value of -1 means this is property is not used.
UniqueKey
Gets or sets a key to uniquely identify a document in the Index.
Declaration
public string UniqueKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
A value of -1 means this is property is not used.
Methods
| Improve this Doc View SourceToJsonString()
This is to allow saving current instance into DB as JSON entity.
Declaration
public string ToJsonString()
Returns
Type | Description |
---|---|
System.String | A JSON string. |
Remarks
This is the base for all search documents (have common properties) that can be used for deleting from the search index.
ToString()
The document that will be deleted from search Index.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Remarks
This is overriden to present current instance as JSON string.