Class SearchResultsMerged
Represents a set of results returned by the translation memory after a search operation for a given input (segment/translation unit/string).
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
[DataContract]
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
[DataMember]
public Dictionary<int, DocumentDetail> DocumentDetails { get; set; }
Property Value
Type | Description |
---|---|
DictionaryintDocumentDetail |
Methods
CopyFromSearchResults(SearchResults)
Declaration
public void CopyFromSearchResults(SearchResults other)
Parameters
Type | Name | Description |
---|---|---|
SearchResults | other |
Merge(SearchResults, bool, int)
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. |
bool | removeDuplicates | If true, a heuristics is applied to remove duplicates. The original sort order is preserved, but the multiple translations information is re-evaluated. |
int | cascadeEntryIndex | corresponds to the search results cascade entry index property |