public class SearchExtensionImpl extends AbstractExtendable implements SearchExtension
SearchExtension.MatchAlgorithm
Constructor and Description |
---|
SearchExtensionImpl() |
Modifier and Type | Method and Description |
---|---|
protected ExtensionDescription |
buildExtensionDescription()
Builds the extension description.
|
protected org.apache.lucene.search.BooleanQuery |
buildOnMatchAlgorithm(java.lang.String text,
SearchExtension.MatchAlgorithm matchAlgorithm) |
protected void |
doRegister(ExtensionRegistry registry,
ExtensionDescription description) |
protected java.util.Set<AbsoluteCodingSchemeVersionReference> |
resolveCodeSystemReferences(java.util.Set<CodingSchemeReference> references) |
ResolvedConceptReferencesIterator |
search(java.lang.String text,
SearchExtension.MatchAlgorithm matchAlgorithm)
Search based on a given text string over all coding schemes.
|
ResolvedConceptReferencesIterator |
search(java.lang.String text,
java.util.Set<CodingSchemeReference> codeSystems,
SearchExtension.MatchAlgorithm matchAlgorithm)
Search based on a given text string over given coding schemes.
|
ResolvedConceptReferencesIterator |
search(java.lang.String text,
java.util.Set<CodingSchemeReference> codeSystemsToInclude,
java.util.Set<CodingSchemeReference> codeSystemsToExclude,
SearchExtension.MatchAlgorithm matchAlgorithm)
Search based on a given text string over given coding schemes, excluding
the listed.
|
ResolvedConceptReferencesIterator |
search(java.lang.String text,
java.util.Set<CodingSchemeReference> codeSystemsToInclude,
java.util.Set<CodingSchemeReference> codeSystemsToExclude,
SearchExtension.MatchAlgorithm matchAlgorithm,
boolean includeAnonymous)
Search based on a given text string over given coding schemes, excluding
the listed.
|
ResolvedConceptReferencesIterator |
search(java.lang.String text,
java.util.Set<CodingSchemeReference> codeSystemsToInclude,
java.util.Set<CodingSchemeReference> codeSystemsToExclude,
SearchExtension.MatchAlgorithm matchAlgorithm,
boolean includeAnonymous,
boolean includeInactive)
Search based on a given text string over given coding schemes, excluding
the listed.
|
java.util.List<java.lang.String> |
tokenize(org.apache.lucene.analysis.Analyzer analyzer,
java.lang.String field,
java.lang.String keywords) |
getDescription, getExtensionDescription, getName, getProvider, getVersion, register
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getName, getProvider, getVersion
public ResolvedConceptReferencesIterator search(java.lang.String text, SearchExtension.MatchAlgorithm matchAlgorithm) throws LBParameterException
SearchExtension
search
in interface SearchExtension
text
- The search textmatchAlgorithm
- The match algorithm to use for matchingLBParameterException
public ResolvedConceptReferencesIterator search(java.lang.String text, java.util.Set<CodingSchemeReference> codeSystems, SearchExtension.MatchAlgorithm matchAlgorithm) throws LBParameterException
SearchExtension
search
in interface SearchExtension
text
- The search textcodeSystems
- The coding schemes to include in the searchmatchAlgorithm
- The match algorithm to use for matchingLBParameterException
public ResolvedConceptReferencesIterator search(java.lang.String text, java.util.Set<CodingSchemeReference> codeSystemsToInclude, java.util.Set<CodingSchemeReference> codeSystemsToExclude, SearchExtension.MatchAlgorithm matchAlgorithm) throws LBParameterException
SearchExtension
search
in interface SearchExtension
text
- The search textcodeSystemsToInclude
- The coding schemes to include in the searchcodeSystemsToExclude
- The coding schemes to include in the searchmatchAlgorithm
- The match algorithm to use for matchingLBParameterException
public ResolvedConceptReferencesIterator search(java.lang.String text, java.util.Set<CodingSchemeReference> codeSystemsToInclude, java.util.Set<CodingSchemeReference> codeSystemsToExclude, SearchExtension.MatchAlgorithm matchAlgorithm, boolean includeAnonymous) throws LBParameterException
SearchExtension
search
in interface SearchExtension
text
- The search textcodeSystemsToInclude
- The coding schemes to include in the searchcodeSystemsToExclude
- The coding schemes to include in the searchmatchAlgorithm
- The match algorithm to use for matchingincludeAnonymous
- Whether or not to include Anonymous Entities
Default: 'false'
NOTE: 'false' -> include "anonymous != 'true'"
'true' -> include allLBParameterException
public ResolvedConceptReferencesIterator search(java.lang.String text, java.util.Set<CodingSchemeReference> codeSystemsToInclude, java.util.Set<CodingSchemeReference> codeSystemsToExclude, SearchExtension.MatchAlgorithm matchAlgorithm, boolean includeAnonymous, boolean includeInactive) throws LBParameterException
SearchExtension
search
in interface SearchExtension
text
- The search textcodeSystemsToInclude
- The coding schemes to include in the searchcodeSystemsToExclude
- The coding schemes to include in the searchmatchAlgorithm
- The match algorithm to use for matchingincludeAnonymous
- Whether or not to include Anonymous Entities
Default: 'false'
NOTE: 'false' -> include "anonymous != 'true'"
'true' -> include allincludeInactive
- Whether or not to include Inactive Entities
Default: 'false'
NOTE: 'false' -> include "active != 'true'"
'true' -> include allLBParameterException
protected org.apache.lucene.search.BooleanQuery buildOnMatchAlgorithm(java.lang.String text, SearchExtension.MatchAlgorithm matchAlgorithm)
protected java.util.Set<AbsoluteCodingSchemeVersionReference> resolveCodeSystemReferences(java.util.Set<CodingSchemeReference> references) throws LBParameterException
LBParameterException
public java.util.List<java.lang.String> tokenize(org.apache.lucene.analysis.Analyzer analyzer, java.lang.String field, java.lang.String keywords) throws java.io.IOException
java.io.IOException
protected ExtensionDescription buildExtensionDescription()
AbstractExtendable
buildExtensionDescription
in class AbstractExtendable
protected void doRegister(ExtensionRegistry registry, ExtensionDescription description) throws LBParameterException
doRegister
in class AbstractExtendable
LBParameterException