Click or drag to resize
SearchSettings Class
Represents a set of settings relevant for search opeartions.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.TranslationMemorySearchSettings

Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntax
public class SearchSettings

The SearchSettings type exposes the following members.

Constructors
  NameDescription
Public methodSearchSettings
Initializes a new instance with default values. The default values are: ComputeTranslationProposal = falseIsDocumentSearch=falseMode=SearchMode.NormalSearchMinScore=70MaxResults=10CheckMatchingSublanguages = false
Top
Properties
  NameDescription
Public propertyAutoLocalizationSettings
Gets or sets the translation settings, which contains information about auto-localizations and other settings specific to the translation process. The value is only relevant if ComputeTranslationProposal is true, and never relevant for concordance searches. NOTE that this object is not created by default by the constructor of the class.
Public propertyCheckMatchingSublanguages
Gets or sets whether the TM should apply strict language direction validation of the search segment or TU. The default is false.
Public propertyComputeTranslationProposal
If true, compute a translation proposal with the match TU and include it in the result. If false, no proposal will be computed or included in the result.
Public propertyCurrentStructureContext
Gets or sets the current structure context which is used for the search. May be null.
Public propertyFilters
Gets or sets the filters.
Public propertyHardFilter
Gets or sets the hard filter. The hard filter is not evaluated on the storage level yet.
Public propertyIsConcordanceSearch
Gets a value indicating whether this instance is used for a concordance search.
Public propertyIsDocumentSearch
Gets or sets whether contextual information should be used during the search.
Public propertyMachineTranslationLookup
Specifies when to use machine translation.
Public propertyMaxResults
Gets or sets the maximum number of results to be retrieved by the search.

The minimum accepted value for MaxResults is 1.

Public propertyMinScore
Gets or sets the minimum score for retrieving the results.

Any candidates with a score lower than MinScore are not returned by the search.

The minimum accepted value for MinScore is MINSCORE_LOWERBOUND.

Public propertyMode
Gets or sets the search mode.
Public propertyPenalties
Gets or sets the penalties.
Public propertySortSpecification
Gets or sets the sort specification.
Top
Methods
  NameDescription
Public methodAddFilter
Adds the supplied filter to the list of filters.
Public methodAddPenalty
Adds the specified penalty to the list of penalties, unless already present (in which case nothing happens).
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindFilter
Attempts to find the filter with the specified name.
Public methodFindPenalty
Retrieves a penalty of a specified type.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveFilter
Attempts to remove the filter with the specified name.
Public methodRemovePenalty
Removes the specified penalty from the list of penalties, if present (otherwise nothing happens).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberMINSCORE_LOWERBOUND
The lower bound of the minimum match score supported by translation memories.
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments