Class SearchSettings
- Author:
- paul
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHow many results per result type are allowed. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchSettingsarrayDesignSearch(String query) Convenience method to get pre-configured settings.static SearchSettingsConvenience method to get pre-configured settings.builder()protected booleanstatic SearchSettingscompositeSequenceSearch(String query, ArrayDesign arrayDesign) Convenience method to get pre-configured settings.booleanstatic SearchSettingsexpressionExperimentSearch(String query) Convenience method to get pre-configured settings.static SearchSettingsexpressionExperimentSearch(String query, Taxon taxon) Convenience method to get pre-configured settings.static SearchSettingsgeneSearch(String query, Taxon taxon) Convenience method to get pre-configured settings.intLimit for the number of results per result type.getMode()Indicate the search mode to use.getQuery()Processed query for performing a search.Set<Class<? extends Identifiable>> Entities to retrieve.inthashCode()booleanhasResultType(Class<?> cls) Check if this is configured to search a given result type.booleanIndicate if result objects (i.e.booleanUse the database for finding results.booleanUse the full-text index for finding results.booleanInclude results from the Gene Ontology (GO).booleanUse the ontology and ontology inference for finding results.voidsetExperimentConstraint(ExpressionExperiment experimentConstraint) voidsetFillResults(boolean fillResults) Indicate if result objects (i.e.voidsetMaxResults(int maxResults) Limit for the number of results per result type.voidIndicate the search mode to use.voidsetPlatformConstraint(ArrayDesign platformConstraint) voidProcessed query for performing a search.voidsetResultTypes(Set<Class<? extends Identifiable>> resultTypes) Entities to retrieve.voidsetTaxonConstraint(Taxon taxonConstraint) voidsetUseDatabase(boolean useDatabase) Use the database for finding results.voidsetUseFullTextIndex(boolean useFullTextIndex) Use the full-text index for finding results.voidsetUseGeneOntology(boolean useGeneOntology) Include results from the Gene Ontology (GO).voidsetUseOntology(boolean useOntology) Use the ontology and ontology inference for finding results.toString()withExperimentConstraint(ExpressionExperiment experimentConstraint) withFillResults(boolean fillResults) Indicate if result objects (i.e.withMaxResults(int maxResults) Limit for the number of results per result type.Indicate the search mode to use.withPlatformConstraint(ArrayDesign platformConstraint) Processed query for performing a search.withResultTypes(Set<Class<? extends Identifiable>> resultTypes) Entities to retrieve.withTaxonConstraint(Taxon taxonConstraint) withUseDatabase(boolean useDatabase) Use the database for finding results.withUseFullTextIndex(boolean useFullTextIndex) Use the full-text index for finding results.withUseGeneOntology(boolean useGeneOntology) Include results from the Gene Ontology (GO).withUseOntology(boolean useOntology) Use the ontology and ontology inference for finding results.
-
Field Details
-
DEFAULT_MAX_RESULTS_PER_RESULT_TYPE
public static final int DEFAULT_MAX_RESULTS_PER_RESULT_TYPEHow many results per result type are allowed. This implies that if you search for multiple types of things, you can get more than this.- See Also:
-
-
Method Details
-
arrayDesignSearch
Convenience method to get pre-configured settings.- Parameters:
query- query- Returns:
- search settings
-
bibliographicReferenceSearch
Convenience method to get pre-configured settings.- Parameters:
query- query- Returns:
- search settings
-
compositeSequenceSearch
public static SearchSettings compositeSequenceSearch(String query, @Nullable ArrayDesign arrayDesign) Convenience method to get pre-configured settings.- Parameters:
query- queryarrayDesign- the array design to limit the search to- Returns:
- search settings
-
expressionExperimentSearch
Convenience method to get pre-configured settings.- Parameters:
query- query- Returns:
- search settings
-
expressionExperimentSearch
Convenience method to get pre-configured settings.- Parameters:
query- querytaxon- if you want to filter by taxon (can be null)- Returns:
- search settings
-
geneSearch
Convenience method to get pre-configured settings.- Parameters:
query- querytaxon- the taxon to limit the search to (can be null)- Returns:
- search settings
-
hasResultType
Check if this is configured to search a given result type. -
toString
-
builder
-
getQuery
Processed query for performing a search. -
getResultTypes
Entities to retrieve. -
getPlatformConstraint
-
getExperimentConstraint
-
getTaxonConstraint
-
isUseDatabase
public boolean isUseDatabase()Use the database for finding results. -
isUseOntology
public boolean isUseOntology()Use the ontology and ontology inference for finding results.Results from the Gene Ontology (GO) are not included in this setting, use
setUseGeneOntology(boolean)for that purpose. -
isUseGeneOntology
public boolean isUseGeneOntology()Include results from the Gene Ontology (GO). -
isUseFullTextIndex
public boolean isUseFullTextIndex()Use the full-text index for finding results. -
getMaxResults
public int getMaxResults()Limit for the number of results per result type.The default is relatively large and given by
DEFAULT_MAX_RESULTS_PER_RESULT_TYPE. Any value less than one indicate no limit. -
isFillResults
public boolean isFillResults()Indicate if result objects (i.e.SearchResult.getResultObject()should be filled, otherwise only the class and ID will be populated. -
getMode
Indicate the search mode to use.Defaults to balanced.
-
setQuery
Processed query for performing a search. -
setResultTypes
Entities to retrieve. -
setPlatformConstraint
-
setExperimentConstraint
-
setTaxonConstraint
-
setUseDatabase
public void setUseDatabase(boolean useDatabase) Use the database for finding results. -
setUseOntology
public void setUseOntology(boolean useOntology) Use the ontology and ontology inference for finding results.Results from the Gene Ontology (GO) are not included in this setting, use
setUseGeneOntology(boolean)for that purpose. -
setUseGeneOntology
public void setUseGeneOntology(boolean useGeneOntology) Include results from the Gene Ontology (GO). -
setUseFullTextIndex
public void setUseFullTextIndex(boolean useFullTextIndex) Use the full-text index for finding results. -
setMaxResults
public void setMaxResults(int maxResults) Limit for the number of results per result type.The default is relatively large and given by
DEFAULT_MAX_RESULTS_PER_RESULT_TYPE. Any value less than one indicate no limit. -
setFillResults
public void setFillResults(boolean fillResults) Indicate if result objects (i.e.SearchResult.getResultObject()should be filled, otherwise only the class and ID will be populated. -
setMode
Indicate the search mode to use.Defaults to balanced.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
withQuery
Processed query for performing a search.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withResultTypes
Entities to retrieve.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlatformConstraint
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withExperimentConstraint
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTaxonConstraint
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUseDatabase
Use the database for finding results.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUseOntology
Use the ontology and ontology inference for finding results.Results from the Gene Ontology (GO) are not included in this setting, use
setUseGeneOntology(boolean)for that purpose.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUseGeneOntology
Include results from the Gene Ontology (GO).- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUseFullTextIndex
Use the full-text index for finding results.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMaxResults
Limit for the number of results per result type.The default is relatively large and given by
DEFAULT_MAX_RESULTS_PER_RESULT_TYPE. Any value less than one indicate no limit.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFillResults
Indicate if result objects (i.e.SearchResult.getResultObject()should be filled, otherwise only the class and ID will be populated.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMode
Indicate the search mode to use.Defaults to balanced.
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-