C# 클래스 SIL.FieldWorks.FDO.DomainServices.SemanticDomainSearch.SenseSearchStrategy

This strategy takes a LexSense and finds keywords from the sense's Gloss, Definition and Reversal Entries and uses them to search (primarily) for whole word matches in Semantic Domains.
상속: SemDomSearchStrategy
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddKeysFrom void
GetSearchKeysFromSense HashSet>.Dictionary
PutDomainInDesiredBucket void

공개 메소드들

메소드 설명
SenseSearchStrategy ( FdoCache cache, ILexSense sense ) : System

Create and setup a search for keywords from a LexSense in the Semantic Domain list.

보호된 메소드들

메소드 설명
DoesInputMatchWord ( IEnumerable wordsToLookIn ) : MatchingResult

Looks through a list of words and searches with multiple keys to find the best matching result between keys and words.

GetDomainNameString ( ICmSemanticDomain domain ) : string

Get the text from a Semantic Domain's Name field. This version uses AnalysisDefault ws which may not always have a value (i.e. be prepared for a null return value).

GetExampleWordTextFromDomainQuestion ( ICmDomainQ questionObject ) : string

For one Semantic Domain question, return the text of the Example Words field. This subclass version uses AnalysisDefault, which could have a null value (i.e. be prepared to handle a null return value).

비공개 메소드들

메소드 설명
AddKeysFrom ( IMultiAccessorBase ms, Dictionary results, int maxWords ) : void

For each ws in ms, add to the set of strings under that key in results the words from that alternative. If the alternative contains more than maxWords words, skip it.

GetSearchKeysFromSense ( ) : HashSet>.Dictionary
PutDomainInDesiredBucket ( ICmSemanticDomain domain ) : void

메소드 상세

DoesInputMatchWord() 보호된 메소드

Looks through a list of words and searches with multiple keys to find the best matching result between keys and words.
protected DoesInputMatchWord ( IEnumerable wordsToLookIn ) : MatchingResult
wordsToLookIn IEnumerable
리턴 MatchingResult

GetDomainNameString() 보호된 메소드

Get the text from a Semantic Domain's Name field. This version uses AnalysisDefault ws which may not always have a value (i.e. be prepared for a null return value).
protected GetDomainNameString ( ICmSemanticDomain domain ) : string
domain ICmSemanticDomain
리턴 string

GetExampleWordTextFromDomainQuestion() 보호된 메소드

For one Semantic Domain question, return the text of the Example Words field. This subclass version uses AnalysisDefault, which could have a null value (i.e. be prepared to handle a null return value).
protected GetExampleWordTextFromDomainQuestion ( ICmDomainQ questionObject ) : string
questionObject ICmDomainQ
리턴 string

SenseSearchStrategy() 공개 메소드

Create and setup a search for keywords from a LexSense in the Semantic Domain list.
public SenseSearchStrategy ( FdoCache cache, ILexSense sense ) : System
cache FdoCache
sense ILexSense
리턴 System