Class SearchResults
Inheritance
System.Object
SearchResults
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
public class SearchResults : IEnumerable<SearchResult>, IEnumerable
Constructors
Declaration
Declaration
public SearchResults(SortSpecification defaultSortOrder)
Parameters
Fields
Declaration
public static readonly string DefaultSortOrder
Field Value
Type |
Description |
System.String |
|
Declaration
public static readonly string DefaultSortOrderConcordance
Field Value
Type |
Description |
System.String |
|
Properties
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public List<Placeable> DocumentPlaceables { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<Placeable> |
|
Declaration
public SearchResult this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Declaration
public bool MultipleTranslations { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public List<SearchResult> Results { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<SearchResult> |
|
Declaration
public SortSpecification SortOrder { get; set; }
Property Value
Declaration
public long SourceHash { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Declaration
public Segment SourceSegment { get; set; }
Property Value
Declaration
public WordCounts SourceWordCounts { get; set; }
Property Value
Methods
Declaration
public virtual void Add(SearchResult result)
Parameters
Declaration
public static bool AreEqual(SearchResult result1, SearchResult result2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public void Cap(int maxCapacity)
Parameters
Type |
Name |
Description |
System.Int32 |
maxCapacity |
|
Declaration
public void CheckForMultipleTranslations(SearchSettings settings)
Parameters
Declaration
public void CheckForMultipleTranslations(SearchSettings settings, List<SearchResult> searchResults)
Parameters
Declaration
Declaration
protected void CopyFrom(SearchResults r)
Parameters
Declaration
public void Merge(SearchResults other, bool removeDuplicates)
Parameters
Type |
Name |
Description |
SearchResults |
other |
|
System.Boolean |
removeDuplicates |
|
Declaration
public int RemoveAll(Func<SearchResult, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<SearchResult, System.Boolean> |
predicate |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public void RemoveDuplicates()
Declaration
public void RemoveDuplicates(Func<SearchResult, SearchResult, SearchResult> GetSearchResultToRemove)
Parameters
Declaration
Declaration
public void Sort(SortSpecification sortOrder)
Parameters
Declaration
public void Sort(SortSpecification sortOrder, SearchResults.SearchResultComparer disambiguator)
Parameters
Declaration
public void Sort(string sortOrder)
Parameters
Type |
Name |
Description |
System.String |
sortOrder |
|
Explicit Interface Implementations
Declaration
IEnumerator<SearchResult> IEnumerable<SearchResult>.GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<SearchResult> |
|
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable