mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00

- Storing doubles instead of floats - Fixing integer values parsing --HG-- branch : dev extra : transplant_source : %EB%7E%27%E7%3B%2B%CEvA%AE%90%3FQ%BE%9Bw%9C%3FXA
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using System;
|
|
|
|
namespace Orchard.Indexing {
|
|
|
|
public interface IDocumentIndex {
|
|
|
|
IDocumentIndex SetContentItemId(int contentItemId);
|
|
|
|
IDocumentIndex Add(string name, string value);
|
|
IDocumentIndex Add(string name, DateTime value);
|
|
IDocumentIndex Add(string name, int value);
|
|
IDocumentIndex Add(string name, bool value);
|
|
IDocumentIndex Add(string name, double value);
|
|
|
|
/// <summary>
|
|
/// Stores the original value to the index.
|
|
/// </summary>
|
|
IDocumentIndex Store();
|
|
|
|
/// <summary>
|
|
/// Content is analyzed and tokenized.
|
|
/// </summary>
|
|
IDocumentIndex Analyze();
|
|
|
|
/// <summary>
|
|
/// Remove any HTML tag from the current string
|
|
/// </summary>
|
|
IDocumentIndex RemoveTags();
|
|
|
|
/// <summary>
|
|
/// Whether some property have been added to this document, or otherwise if it's empty
|
|
/// </summary>
|
|
bool IsDirty { get; }
|
|
|
|
}
|
|
} |