Package ubic.gemma.model.common.search
Class SearchSettings.SearchSettingsBuilder
java.lang.Object
ubic.gemma.model.common.search.SearchSettings.SearchSettingsBuilder
- Enclosing class:
SearchSettings
-
Method Summary
Modifier and TypeMethodDescriptionbuild()experimentConstraint(ExpressionExperiment experimentConstraint) fillResults(boolean fillResults) Indicate if result objects (i.e.maxResults(int maxResults) Limit for the number of results per result type.Indicate the search mode to use.platformConstraint(ArrayDesign platformConstraint) Processed query for performing a search.resultType(Class<? extends Identifiable> resultType) resultTypes(Collection<? extends Class<? extends Identifiable>> resultTypes) taxonConstraint(Taxon taxonConstraint) toString()useDatabase(boolean useDatabase) Use the database for finding results.useFullTextIndex(boolean useFullTextIndex) Use the full-text index for finding results.useGeneOntology(boolean useGeneOntology) Include results from the Gene Ontology (GO).useOntology(boolean useOntology) Use the ontology and ontology inference for finding results.
-
Method Details
-
query
Processed query for performing a search.- Returns:
this.
-
resultType
-
resultTypes
public SearchSettings.SearchSettingsBuilder resultTypes(Collection<? extends Class<? extends Identifiable>> resultTypes) -
clearResultTypes
-
platformConstraint
public SearchSettings.SearchSettingsBuilder platformConstraint(@Nullable ArrayDesign platformConstraint) - Returns:
this.
-
experimentConstraint
public SearchSettings.SearchSettingsBuilder experimentConstraint(@Nullable ExpressionExperiment experimentConstraint) - Returns:
this.
-
taxonConstraint
- Returns:
this.
-
useDatabase
Use the database for finding results.- Returns:
this.
-
useOntology
Use the ontology and ontology inference for finding results.Results from the Gene Ontology (GO) are not included in this setting, use
SearchSettings.setUseGeneOntology(boolean)for that purpose.- Returns:
this.
-
useGeneOntology
Include results from the Gene Ontology (GO).- Returns:
this.
-
useFullTextIndex
Use the full-text index for finding results.- Returns:
this.
-
maxResults
Limit for the number of results per result type.The default is relatively large and given by
SearchSettings.DEFAULT_MAX_RESULTS_PER_RESULT_TYPE. Any value less than one indicate no limit.- Returns:
this.
-
fillResults
Indicate if result objects (i.e.SearchResult.getResultObject()should be filled, otherwise only the class and ID will be populated.- Returns:
this.
-
mode
Indicate the search mode to use.Defaults to balanced.
- Returns:
this.
-
build
-
toString
-