Class Reference
%iFind.Transformation.Abstract
Server:irisdocs1
Instance:IRISLATEST
User:UnknownUser
 
-
  [%SYS] >  [%iFind] >  [Transformation] >  [Abstract]
Private  Storage

abstract class %iFind.Transformation.Abstract extends %RegisteredObject

This class abstracts a Word Transformation, an operation that translates a given actual word (as found in a document to be indexed) in some more "normalized" form. For example, stemming normalizes verbs, nouns and other conjugated words by transforming them into their base form (= normalized form). When a user then wants to search for a conjugated word, the search query will be processed by the same transformation used at indexing time and any conjugated form that maps to the same base form will be considered a match.

The transformation(s) to be applied at indexing time can be supplied through the TRANSFORMATIONSPEC index parameter (see %iFind.Index.Basic). At search time, the search option argument can be used to identify which transformation to apply to the search string. This can be either one of these transformation specification strings defined in the index parameter, an asterisk (*) to identify the default transformation of the index parameter or 0 to do an exact search on the non- transformed string.

Custom transformations can be created by implementing this class and implementing the Transform method. This class can then be referred in the TRANSFORMATIONSPEC index parameter as described above.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1


Summary

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
Transform

Subclasses

Methods

• abstract classmethod Transform(Output pTransformed As %String, ByRef pString As %String, pArguments As %String = "", pLanguage As %String = "") as %Status
This method transforms pString into a "normalized" form pTransformed, based on the language context pLanguage.
Implementations of this class can optionally be parameterized through the pArguments string, which can be supplied through the TRANSFORMATIONSPEC index parameter.


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.