C# 클래스 SIL.FieldWorks.Common.Controls.SearchEngine

An abstract class for performing indexing and searching asynchronously.
상속: SIL.Utils.FwDisposableBase, IVwNotifyChange
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
Get ( XCore.Mediator mediator, string propName, Func searchEngineFactory ) : SearchEngine

Gets the search engine.

Search ( IEnumerable fields ) : IEnumerable

Searches the specified fields. N.B. This version is currently only used in testing.

SearchAsync ( IEnumerable fields ) : void

Searches the specified fields asynchronously.

보호된 메소드들

메소드 설명
DisposeManagedResources ( ) : void

Override to dispose managed resources.

FilterResults ( IEnumerable results ) : IEnumerable

If some objects need to be filtered out of the results (for instance the item we started from in the merge dialog) then this function can be used to do it.

GetSearchableObjects ( ) : IList

Gets the searchable objects.

GetStrings ( SearchField field, ICmObject obj ) : IEnumerable

Gets the searchable strings of an object.

IsFieldMultiString ( SearchField field ) : bool

Determines if the specified field is a multi-string or multi-unicode field.

IsIndexResetRequired ( int hvo, int flid ) : bool

Determines if an index reset is required.

SearchEngine ( SIL.FieldWorks.FDO.FdoCache cache, SearchType type ) : System

Initializes a new instance of the SearchEngine class.

비공개 메소드들

메소드 설명
BuildIndex ( int i, SearchField field, Func isSearchCanceled ) : int

Builds the search index.

HandleWork ( SearchField[]>.IQueueAccessor queue ) : void
IVwNotifyChange ( int hvo, int tag, int ivMin, int cvIns, int cvDel ) : void
IsSearchCanceled ( SearchField[]>.IQueueAccessor queue ) : bool
OnSearchCompleted ( object e ) : void
PerformSearch ( IList fields, Func isSearchCanceled ) : IEnumerable

메소드 상세

DisposeManagedResources() 보호된 메소드

Override to dispose managed resources.
protected DisposeManagedResources ( ) : void
리턴 void

FilterResults() 보호된 메소드

If some objects need to be filtered out of the results (for instance the item we started from in the merge dialog) then this function can be used to do it.
protected FilterResults ( IEnumerable results ) : IEnumerable
results IEnumerable
리턴 IEnumerable

Get() 공개 정적인 메소드

Gets the search engine.
public static Get ( XCore.Mediator mediator, string propName, Func searchEngineFactory ) : SearchEngine
mediator XCore.Mediator
propName string
searchEngineFactory Func
리턴 SearchEngine

GetSearchableObjects() 보호된 추상적인 메소드

Gets the searchable objects.
protected abstract GetSearchableObjects ( ) : IList
리턴 IList

GetStrings() 보호된 추상적인 메소드

Gets the searchable strings of an object.
protected abstract GetStrings ( SearchField field, ICmObject obj ) : IEnumerable
field SearchField
obj ICmObject
리턴 IEnumerable

IsFieldMultiString() 보호된 추상적인 메소드

Determines if the specified field is a multi-string or multi-unicode field.
protected abstract IsFieldMultiString ( SearchField field ) : bool
field SearchField
리턴 bool

IsIndexResetRequired() 보호된 추상적인 메소드

Determines if an index reset is required.
protected abstract IsIndexResetRequired ( int hvo, int flid ) : bool
hvo int
flid int
리턴 bool

Search() 공개 메소드

Searches the specified fields. N.B. This version is currently only used in testing.
public Search ( IEnumerable fields ) : IEnumerable
fields IEnumerable
리턴 IEnumerable

SearchAsync() 공개 메소드

Searches the specified fields asynchronously.
public SearchAsync ( IEnumerable fields ) : void
fields IEnumerable
리턴 void

SearchEngine() 보호된 메소드

Initializes a new instance of the SearchEngine class.
protected SearchEngine ( SIL.FieldWorks.FDO.FdoCache cache, SearchType type ) : System
cache SIL.FieldWorks.FDO.FdoCache
type SearchType
리턴 System