Search Results for

    Show / Hide Table of Contents

    Class SearchResult

    Encapsulates the result of a search operation, a memory translation unit, possiby annotated with score, placeables and context information.

    Inheritance
    object
    SearchResult
    SubsegmentSearchResult
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    [DataContract]
    public class SearchResult

    Constructors

    SearchResult(TranslationUnit)

    Initializes a new instance of the SearchResult class.

    Declaration
    public SearchResult(TranslationUnit tmTu)
    Parameters
    Type Name Description
    TranslationUnit tmTu

    The translation unit found by the search operation.

    Properties

    CascadeEntryIndex

    Gets or sets the cascade entry index.

    Declaration
    [DataMember]
    public int CascadeEntryIndex { get; set; }
    Property Value
    Type Description
    int
    Remarks

    The cascade entry index corresponds to a position in the cascade's cascade entries list (Cascade.CascadeEntries). If the cascade entry index is -1 then the search result was not created in a cascade.

    ContextData

    Gets or sets the context information for this translation unit.

    Declaration
    [DataMember]
    public TuContext ContextData { get; set; }
    Property Value
    Type Description
    TuContext

    MatchingPlaceholderTokens

    Gets or sets the matching tokens. MatchingPlaceholderTokens attribute counts the number of placeholders that match by value. Upon comparing two segments, if the placeholders value is different, the Scorer will still give 100% match, even if the placeholders value is different for example:

    • first segment: {Birth}{' '}{year}{' '}{is}{' '}{NumberToken(1980)}
    • second segment: {Birth}{' '}{year}{' '}{is}{' '}{NumberToken(1985)} The above segments will be considerred equal, even if they are not. This info is used upon ordering of TM entries so that on the first position to appear the segment that match by token value too
    Declaration
    public int MatchingPlaceholderTokens { get; set; }
    Property Value
    Type Description
    int
    Remarks

    This field is used internally upon ordering of TM entries so that on the first position to appear the segment that match by token value too.

    MemoryPlaceables

    Gets or sets the list of placeables which are found in the memory segment.

    Declaration
    [DataMember]
    public List<Placeable> MemoryPlaceables { get; set; }
    Property Value
    Type Description
    List<Placeable>

    MemoryTranslationUnit

    The translation unit found by the search, used to compute the translation proposal.

    Declaration
    [DataMember]
    public TranslationUnit MemoryTranslationUnit { get; set; }
    Property Value
    Type Description
    TranslationUnit

    MetaData

    Used in various flows to hold data related to SearchResult

    Declaration
    public Dictionary<string, object> MetaData { get; set; }
    Property Value
    Type Description
    Dictionary<string, object>

    PlaceableAssociations

    Gets or sets the list of placeables which are found in the memory segment.

    Declaration
    [DataMember]
    public List<PlaceableAssociation> PlaceableAssociations { get; set; }
    Property Value
    Type Description
    List<PlaceableAssociation>

    ScoringResult

    Gets or sets the scoring for this result.

    Declaration
    [DataMember]
    public ScoringResult ScoringResult { get; set; }
    Property Value
    Type Description
    ScoringResult

    TranslationProposal

    Gets or sets the translation proposal TU, which is a copy of the memory translation unit in which all placeables have been resolved.

    Declaration
    [DataMember]
    public TranslationUnit TranslationProposal { get; set; }
    Property Value
    Type Description
    TranslationUnit
    In this article
    • Constructors
      • SearchResult(TranslationUnit)
    • Properties
      • CascadeEntryIndex
      • ContextData
      • MatchingPlaceholderTokens
      • MemoryPlaceables
      • MemoryTranslationUnit
      • MetaData
      • PlaceableAssociations
      • ScoringResult
      • TranslationProposal
    Back to top Generated by DocFX