Click or drag to resize
IFulltextSession Interface
Represents a full-text session.

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 3.12.6
Syntax
public interface IFulltextSession : IDisposable

The IFulltextSession type exposes the following members.

Methods
  NameDescription
Public methodBuildKeywordsTDocument
Builds tokenized and normalized forms and statistics for the keywords extracted from the text.
Public methodCode exampleBuildSnippetsTDocument(IEnumerableString, String)
Builds snippets for the given data using the text processing settings from the index for the given document type.
Public methodCode exampleBuildSnippetsTDocument(IEnumerableString, String, SnippetsOptions)
Builds snippets for the given data using the text processing settings from the index for the given document type.
Public methodCode exampleDeleteTDocument(Decimal)
Schedule the documents with the given id(s) for deletion. The documents will be deleted when FlushChanges is called.
Public methodCode exampleDeleteTDocument(Int32)
Schedule the documents with the given id(s) for deletion. The documents will be deleted when FlushChanges is called.
Public methodCode exampleDeleteTDocument(Int64)
Schedule the documents with the given id(s) for deletion. The documents will be deleted when FlushChanges is called.
Public methodCode exampleDeleteTDocument(TDocument)
Schedules the given document for deletion. The document will be deleted when FlushChanges is called.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodFlushChanges
Flushes all pending changes, i.e. all changes made via Save and Delete since the start of the session or since the last call to FlushChanges. All statements are executed within one transaction.
Public methodGetSuggestionsTDocument(String)
Gets a suggestion for the given word or query. In case of a single word Sphinx' SUGGEST() function is used, in case of a query (multiple words), QSUGGEST() is used.
Public methodGetSuggestionsTDocument(String, SuggestionOptions)
Gets a suggestion for the given word or query. In case of a single word Sphinx' SUGGEST() function is used, in case of a query (multiple words), QSUGGEST() is used.
Public methodQueryTDocument
Create a new query for the document of the given type.
Public methodSave(Object)
Public methodSaveTDocument(IEnumerableTDocument)
Top
Properties
  NameDescription
Public propertyAdvanced
Provides access to advanced index operations.
Top
Examples
using (IFulltextSession fulltextSession = fulltextStore.StartSession())
{
    //Do stuff with session
}
Thread Safety
Instance members of this type are not safe for multi-threaded operations.
See Also