Search Results for

    Show / Hide Table of Contents

    Sdl.MultiTerm.TMO.Interop.HitTerm class

    Name

    Sdl.MultiTerm.TMO.Interop.HitTerm — Provides programmatic access to a particular hit term.

    Description

    This class allows you to retrieve a particular hit term. You will usually avail of this class to retrieve information such as the actual hit term content, the associated entry id, etc. This is useful, for example, to fill a list control with the hit terms found.

    Properties

    • Index: Returns the name of the index in which a hit term has been found.
    • ParentEntryID: Returns the entry id associated with a particular hit term.
    • SearchScore: Returns the fuzziness score for a particular hit term.
    • Termbase: Returns the name of the termbase in which a hit term was found.
    • Text: Returns the actual hit term.

    Methods

    None

    Sample

    Termbase oTb = oTbs["Termbase name"];
    TermbaseSearch oSearch = oTb.Search;
    oSearch.Direction=Sdl.MultiTerm.TMO.Interop.MtSearchDirection.mtSearchDown;
    oSearch.MaximumHits=10;
    oSearch.SourceIndex="English";
    oSearch.SearchExpression ="starship";
    
    HitTerms oHits = oSearch.Execute();
    HitTerm oHit;
    for(int i=0;i<oHits.Count;i++)
    {
       	oHit = oHits[i];
       	Debug.WriteLine(oHit.Text);
       	Debug.WriteLine(oHit.Termbase);
       	Debug.WriteLine(oHit.Index);
       	Debug.WriteLine(oHit.ParentEntryID);
    }
    
    • Improve this Doc
    In this article
    Back to top Generated by DocFX