|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.client.match.MatchOptions
public class MatchOptions
DTS provides capabilities (see
SearchQuery
) to search a
knowledgebase for concepts that meet these criteria:
In addition, DTS provides capabilities to perform searches for a specified search string within a specific knowledgebase "silo." Each silo is a repository of customized concept terminology data (concepts and associated terms) acquired from a knowledgebase, and optimized for searching. The DTS servers attempt to match specified search strings to concepts and their associated properties in a specific silo. A single silo might be defined, or there may be multiple silos.
The information that populates a silo is determined by data filter parameters in an installed configuration file. The Selectors & Extractors utility is a Java program that uses the filter specifications in this configuration file to "select and extract" desired concept data from a source knowledgebase. Selectors & Extractors then generates the silos and populates them with the customized data.
The DTS client uses the MatchOptions class to specify
the criteria by which a knowledgebase silo is searched for
concepts and associated terms that match the specified search string.
These options include three increasingly tolerant methods for
search "matching." Matching refers to the comparison of the specified
search string (called the "pattern" string) with each concept
term in the knowledgebase (called the "target" string). See
MatchType
for an explanation of Complete Match,
Under Match, and Partial Under Match.
When Under Match or Partial Under Match are activated, Best Match Only is available as a matching option.
If Under Match is activated, and Best Match Only also is switched on, the matching process stops when a complete match is found. If Best Match Only is turned off, the matching process continues even after a complete match is found.
If Partial Under Match is activated, and Best Match Only also is switched on, the matching process stops when an under match is found. If Best Match Only is turned off, the matching process continues even after an under match is found.
When Under Match or Partial Under Match are activated, Shortest Match is available as an additional matching option. When Shortest Match is switched on, only target strings that satisfy the matching criteria, and also provide the closest match to the pattern string are retrieved (i.e., only target strings containing the fewest extraneous words are returned from the search).
Spell Checking is another MatchPack matching option that is available for searching. In the event a misspelled pattern string is entered, spell checking generates suggested spelling variants against which matches can be attempted. Spell checking is available regardless of the matching option selected (Complete Match, Under Match, or Partial Under Match).
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
Constructor Summary | |
---|---|
MatchOptions()
The default constructor with default properties set. |
Method Summary | |
---|---|
ConceptAttributeSetDescriptor |
getAttributeSetDescriptor()
Gets the ConceptAttributeSetDescriptor to be used to set the amount
of information retrieved with the concepts returned by a search. |
boolean |
getBestMatchOnly()
Gets the status of the Best Match Only option. |
int |
getLimit()
Gets the limit on the number of matches to return. |
MatchType |
getMatchType()
Gets the current setting of match type. |
boolean |
getShortestMatch()
Deprecated. Shortest match is ignored by the server. This method will be removed from the API in future releases. |
String |
getSilo()
returns the silo name |
boolean |
getSpellCorrection()
Gets the current setting of the spelling correction option. |
void |
setAttributeSetDescriptor(ConceptAttributeSetDescriptor asd)
Sets the ConceptAttributeSetDescriptor to be used to set the amount
of information retrieved with the concepts returned by a search. |
void |
setBestMatchOnly(boolean bestMatchOnly)
Enables the Best Match Only option to retrieve only the best available matches from a search. |
void |
setLimit(int limit)
Sets the maximum number of DTS matching results that should be returned from a search. |
void |
setMatchType(MatchType match)
Sets the match type for searches. |
void |
setShortestMatch(boolean closeResult)
Deprecated. Shortest match is ignored by the server. This method will be removed from the API in future releases. |
void |
setSilo(String silo)
Specifies the silo in which matching will occur during searches. |
void |
setSpellCorrection(boolean spellCorrection)
Turns spelling correction on and off. |
String |
toString()
Returns a string describing the current search settings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MatchOptions()
true
. A complete
match is requested and other flags are set to false
.Default values:
Method Detail |
---|
public void setLimit(int limit)
limit
- the search limitpublic int getLimit()
public void setShortestMatch(boolean closeResult)
closeResult
- true to turn on shortest match, otherwise falsepublic boolean getShortestMatch()
public void setSpellCorrection(boolean spellCorrection)
spellCorrection
- public boolean getSpellCorrection()
public void setMatchType(MatchType match)
match
- match type.public MatchType getMatchType()
MatchType.COMPLETE_MATCH
,
MatchType.UNDERMATCH
,
MatchType.PARTIAL_UNDERMATCH
public void setSilo(String silo)
silo
- silo nameSilo
public void setBestMatchOnly(boolean bestMatchOnly)
When Partial Under Match is activated, and Best Match Only is turned on, the matching process stops when under matches are found. If Best Match Only is turned off, the matching process continues even after under matches are found.
bestMatchOnly
- true if Best Match Only is turned on, otherwise falsepublic boolean getBestMatchOnly()
public String getSilo()
public void setAttributeSetDescriptor(ConceptAttributeSetDescriptor asd)
ConceptAttributeSetDescriptor
to be used to set the amount
of information retrieved with the concepts returned by a search.
asd
- the ConceptAttributeSetDescriptor describing the
desired attributes to be retrievedpublic ConceptAttributeSetDescriptor getAttributeSetDescriptor()
ConceptAttributeSetDescriptor
to be used to set the amount
of information retrieved with the concepts returned by a search.
ConceptAttributeSetDescriptor
to be used to be used
in retrieving the search result concepts.public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |