Class SearchResultsMerged
Represents a set of results returned by multiple translation memories after a search operation for a given input (segment/translation unit/string).
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()
Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public class SearchResultsMerged : SearchResults, IEnumerable<SearchResult>, IEnumerable
Constructors
SearchResultsMerged()
Initializes a new instance with default values.
Declaration
public SearchResultsMerged()
SearchResultsMerged(SearchResults)
Initializes a new instance with values from specified SearchResults.
Declaration
public SearchResultsMerged(SearchResults searchResults)
Parameters
Type | Name | Description |
---|---|---|
SearchResults | searchResults |
Properties
DocumentDetails
Declaration
public Dictionary<int, DocumentDetail> DocumentDetails { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.Int32, DocumentDetail> |
Methods
CopyFromSearchResults(SearchResults)
Declaration
public void CopyFromSearchResults(SearchResults other)
Parameters
Type | Name | Description |
---|---|---|
SearchResults | other |
Merge(SearchResults, Boolean, Int32)
Appends addtional search results to the current list of search results. Note that other fields, such as the source tokens or the source word count, are not merged (although they may differ for cross-TM searches).
Declaration
public void Merge(SearchResults other, bool removeDuplicates, int cascadeEntryIndex)
Parameters
Type | Name | Description |
---|---|---|
SearchResults | other | The search results to merge with the current results. |
System.Boolean | removeDuplicates | If true, a heuristics is applied to remove duplicates. The original sort order is preserved, but the multiple translations information is re-evaluated. |
System.Int32 | cascadeEntryIndex | corresponds to the search results cascade entry index property |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable