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
public class SearchOptions extends Object implements Serializable, Comparable<SearchOptions>
Search options- Author:
- Michael Scholz
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_FOLDERS
static int
TYPE_FULLTEXT
static int
TYPE_PARAMETRIC
static int
TYPE_TAG
-
Constructor Summary
Constructors Constructor Description SearchOptions(int type)
Creates a new instance of SearchOptions
-
Method Summary
-
-
-
Field Detail
-
TYPE_FULLTEXT
public static final int TYPE_FULLTEXT
- See Also:
- Constant Field Values
-
TYPE_TAG
public static final int TYPE_TAG
- See Also:
- Constant Field Values
-
TYPE_PARAMETRIC
public static final int TYPE_PARAMETRIC
- See Also:
- Constant Field Values
-
TYPE_FOLDERS
public static final int TYPE_FOLDERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTemplate
public Long getTemplate()
-
setTemplate
public void setTemplate(Long template)
-
getParameters
public Object[] getParameters()
-
setParameters
public void setParameters(Object[] parameters)
-
setExpression
public void setExpression(String expr)
-
getType
public int getType()
-
setType
public void setType(int type)
-
read
public static SearchOptions read(File file) throws FileNotFoundException, IOException, ClassNotFoundException
-
write
public void write(File file) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
compareTo
public int compareTo(SearchOptions o)
- Specified by:
compareTo
in interfaceComparable<SearchOptions>
-
getMaxHits
public int getMaxHits()
-
setMaxHits
public void setMaxHits(int maxHits)
-
isFulltext
public boolean isFulltext()
-
getExpression
public String getExpression()
-
getUserId
public long getUserId()
-
setUserId
public void setUserId(long userId)
-
getTopOperator
public String getTopOperator()
-
setTopOperator
public void setTopOperator(String topOperator)
-
isCaseSensitive
public boolean isCaseSensitive()
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
-
getFolderId
public Long getFolderId()
-
setFolderId
public void setFolderId(Long folderId)
-
isSearchInSubPath
public boolean isSearchInSubPath()
-
setSearchInSubPath
public void setSearchInSubPath(boolean searchInSubPath)
-
getTenantId
public Long getTenantId()
-
setTenantId
public void setTenantId(Long tenantId)
-
isRetrieveAliases
public boolean isRetrieveAliases()
-
setRetrieveAliases
public void setRetrieveAliases(boolean retrieveAliases)
-
getPage
public int getPage()
-
setPage
public void setPage(int page)
-
-