@Deprecated @StableMinor(version="12.5", sinceVersion="4.0") public class SearchQuery extends Object
Constructor and Description |
---|
SearchQuery()
Deprecated.
|
SearchQuery(String query)
Deprecated.
|
SearchQuery(String query,
SearchAttributes attributes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
SearchAttributes |
getAttributes()
Deprecated.
Returns the query's
attributes , that define additional information
to be passed to the search engine. |
ISearchQueryFilter |
getControlFilter()
Deprecated.
Returns a query filter to be applied to the search.
|
String |
getControlQuery()
Deprecated.
Returns the control query, which is the system-defined portion of the
query , usually containing criteria related to some metadata indexed
with the content (e.g. |
int |
getMaxRows()
Deprecated.
|
int |
getStartAt()
Deprecated.
|
String |
getUserQuery()
Deprecated.
Returns the user query, which is the user-defined portion of the
query , usually entered by the final user using front-end interfaces. |
void |
setAttributes(SearchAttributes attributes)
Deprecated.
Sets the
query's attributes . |
void |
setControlFilter(ISearchQueryFilter controlFilter)
Deprecated.
Sets the query filter to be applied to the search.
|
void |
setControlQuery(String controlQuery)
Deprecated.
Sets the
control query . |
void |
setMaxRows(int maxRows)
Deprecated.
Sets the
maximum number of hits . |
void |
setStartAt(int startAt)
Deprecated.
Sets the
number of the first hit . |
void |
setUserQuery(String query)
Deprecated.
Sets the
user query . |
public SearchQuery()
public SearchQuery(String query)
query
- {@link #getUserQuery() user querypublic SearchQuery(String query, SearchAttributes attributes)
query
- user query
attributes
- attributes
public SearchAttributes getAttributes()
attributes
, that define additional information
to be passed to the search engine.attributes
public void setAttributes(SearchAttributes attributes)
query's attributes
.attributes
- the query's attributes
public String getUserQuery()
query
, usually entered by the final user using front-end interfaces.
The search engines can and usually perform a
tokenization in the
user query in the same way they do in the contents
during the indexing process.
lumis.search
public void setUserQuery(String query)
user query
.query
- the user query
public String getControlQuery()
query
, usually containing criteria related to some metadata indexed
with the content (e.g. service instance identifier).
The search engines must not perform a tokenization in the control query, because it usually consists in criteria for non-intelligible information (such as GUIDs).
getControlFilter()
public void setControlQuery(String controlQuery)
control query
.controlQuery
- the control query
setControlFilter(ISearchQueryFilter)
public int getMaxRows()
hits
to be returned by the
query
execution
.
Usually this setting is used to paginate the search results
.
public void setMaxRows(int maxRows)
maximum number of hits
.maxRows
- the maximum number of hitspublic int getStartAt()
hit
to be returned by the
query
execution
.
Usually this setting is used to paginate the search results
.
hit
public void setStartAt(int startAt)
number of the first hit
.startAt
- the number of the first hit
public ISearchQueryFilter getControlFilter()
null
if none was specified.lumis.search.filter
,
getControlQuery()
public void setControlFilter(ISearchQueryFilter controlFilter)
the
- query filter.lumis.search.filter
,
setControlQuery(String)
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.