Package com.logicaldoc.core.searchengine
Class SearchOptions
java.lang.Object
com.logicaldoc.core.searchengine.SearchOptions
- All Implemented Interfaces:
Serializable
,Comparable<SearchOptions>
- Direct Known Subclasses:
FolderSearchOptions
,FulltextSearchOptions
Search options
- Author:
- Michael Scholz
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
getName()
int
getPage()
int
getType()
long
int
hashCode()
boolean
boolean
boolean
boolean
static SearchOptions
void
setCaseSensitive
(boolean caseSensitive) void
setDescription
(String description) void
setExpression
(String expr) void
setFilterIds
(Set<Long> filterIds) void
setFolderId
(Long folderId) void
setMaxHits
(int maxHits) void
void
setPage
(int page) void
setParameters
(Map<String, Object> parameters) void
setRetrieveAliases
(boolean retrieveAliases) void
setSearchInSubPath
(boolean searchInSubPath) void
setTemplate
(Long template) void
setTenantId
(Long tenantId) void
setTopOperator
(String topOperator) void
setType
(int type) void
setUserId
(long userId) void
-
Field Details
-
TYPE_FULLTEXT
public static final int TYPE_FULLTEXT- See Also:
-
TYPE_TAG
public static final int TYPE_TAG- See Also:
-
TYPE_PARAMETRIC
public static final int TYPE_PARAMETRIC- See Also:
-
TYPE_FOLDERS
public static final int TYPE_FOLDERS- See Also:
-
-
Constructor Details
-
SearchOptions
public SearchOptions(int type) Creates a new instance of SearchOptions- Parameters:
type
- the type of search
-
-
Method Details
-
getTemplate
-
setTemplate
-
setExpression
-
getType
public int getType() -
setType
public void setType(int type) -
read
- Throws:
IOException
ClassNotFoundException
-
write
- Throws:
IOException
-
getName
-
setName
-
getDescription
-
setDescription
-
getMaxHits
public int getMaxHits() -
setMaxHits
public void setMaxHits(int maxHits) -
isFulltext
public boolean isFulltext() -
getExpression
-
getUserId
public long getUserId() -
setUserId
public void setUserId(long userId) -
getTopOperator
-
setTopOperator
-
getFilterIds
-
setFilterIds
-
isCaseSensitive
public boolean isCaseSensitive() -
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive) -
getFolderId
-
setFolderId
-
isSearchInSubPath
public boolean isSearchInSubPath() -
setSearchInSubPath
public void setSearchInSubPath(boolean searchInSubPath) -
getTenantId
-
setTenantId
-
isRetrieveAliases
public boolean isRetrieveAliases() -
setRetrieveAliases
public void setRetrieveAliases(boolean retrieveAliases) -
getPage
public int getPage() -
setPage
public void setPage(int page) -
getParameters
-
setParameters
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SearchOptions>
-
equals
-
hashCode
public int hashCode()
-