public class SearchSettings extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_RESULTS_PER_RESULT_TYPE
How many results per result type are allowed.
|
static char |
SINGLE_WILDCARD_CHAR |
static char |
WILDCARD_CHAR |
Constructor and Description |
---|
SearchSettings() |
Modifier and Type | Method and Description |
---|---|
static SearchSettings |
arrayDesignSearch(String query)
Convenience method to get pre-configured settings.
|
static SearchSettings |
bibliographicReferenceSearch(String query)
Convenience method to get pre-configured settings.
|
static SearchSettings |
compositeSequenceSearch(String query,
ArrayDesign arrayDesign)
Convenience method to get pre-configured settings.
|
static SearchSettings |
expressionExperimentSearch(String query)
Convenience method to get pre-configured settings.
|
static SearchSettings |
expressionExperimentSearch(String query,
Taxon taxon)
Convenience method to get pre-configured settings.
|
static SearchSettings |
geneSearch(String query,
Taxon taxon)
Convenience method to get pre-configured settings.
|
String |
getQuery()
Get this query, trimmed.
|
String |
getRawQuery()
Get the original query that was set by
#setQuery(String) , untrimmed. |
String |
getTermUri()
Deprecated.
use
getQuery() and isTermQuery() instead. |
boolean |
hasResultType(Class<?> cls)
Check if this is configured to search a given result type.
|
boolean |
isTermQuery()
Indicate if the query refers to an ontology term.
|
boolean |
isWildcard()
Check if the query is a wildcard query.
|
void |
setTermUri(String termUri)
Deprecated.
URI can be set with
#setQuery(String) instead. |
public static final char WILDCARD_CHAR
public static final char SINGLE_WILDCARD_CHAR
public static final int DEFAULT_MAX_RESULTS_PER_RESULT_TYPE
public static SearchSettings arrayDesignSearch(String query)
query
- querypublic static SearchSettings bibliographicReferenceSearch(String query)
query
- querypublic static SearchSettings compositeSequenceSearch(String query, ArrayDesign arrayDesign)
query
- queryarrayDesign
- the array design to limit the search topublic static SearchSettings expressionExperimentSearch(String query)
query
- querypublic static SearchSettings expressionExperimentSearch(String query, Taxon taxon)
query
- querytaxon
- if you want to filter by taxon (can be null)public static SearchSettings geneSearch(String query, Taxon taxon)
query
- querytaxon
- the taxon to limit the search to (can be null)public String getQuery()
public String getRawQuery()
#setQuery(String)
, untrimmed.public boolean isTermQuery()
@Deprecated public String getTermUri()
getQuery()
and isTermQuery()
instead.@Deprecated public void setTermUri(String termUri)
#setQuery(String)
instead.termUri
- a valid term URI, or null or a blank stringpublic boolean isWildcard()
public boolean hasResultType(Class<?> cls)
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.