public static class EvernoteSearchHelper.Search
extends java.lang.Object
| Constructor and Description |
|---|
Search() |
| Modifier and Type | Method and Description |
|---|---|
EvernoteSearchHelper.Search |
addLinkedNotebook(LinkedNotebook linkedNotebook)
Specify in which notebooks notes are queried.
|
EvernoteSearchHelper.Search |
addScope(EvernoteSearchHelper.Scope scope)
If no scope is specified,
EvernoteSearchHelper.Scope.PERSONAL_NOTES is the default value. |
boolean |
isIgnoreExceptions() |
EvernoteSearchHelper.Search |
setIgnoreExceptions(boolean ignoreExceptions)
The default value is
false. |
EvernoteSearchHelper.Search |
setMaxNotes(int maxNotes)
The default value is
10. |
EvernoteSearchHelper.Search |
setNoteFilter(NoteFilter noteFilter)
If not filter is set, then the default value only sets
NoteSortOrder#UPDATED. |
EvernoteSearchHelper.Search |
setOffset(int offset)
The default value is
0. |
EvernoteSearchHelper.Search |
setPageSize(int pageSize)
The default value is
10. |
EvernoteSearchHelper.Search |
setResultSpec(NotesMetadataResultSpec resultSpec)
If no spec is set, then the default value will include the note's title and notebook GUID.
|
public EvernoteSearchHelper.Search addScope(EvernoteSearchHelper.Scope scope)
EvernoteSearchHelper.Scope.PERSONAL_NOTES is the default value.
EvernoteSearchHelper.Scope.LINKED_NOTEBOOKS or EvernoteSearchHelper.Scope.BUSINESS and
don't add a specific LinkedNotebook, then this search may be very intense.scope - Add this scope to the search.addLinkedNotebook(LinkedNotebook)public EvernoteSearchHelper.Search addLinkedNotebook(LinkedNotebook linkedNotebook)
EvernoteSearchHelper.Scope.BUSINESS is automatically added, otherwise EvernoteSearchHelper.Scope.LINKED_NOTEBOOKS is
added.
linkedNotebook - The desired linked notebook.#addScope(Scope)public EvernoteSearchHelper.Search setNoteFilter(NoteFilter noteFilter)
NoteSortOrder#UPDATED.noteFilter - The used filter for all queries.public EvernoteSearchHelper.Search setResultSpec(NotesMetadataResultSpec resultSpec)
resultSpec - The used result spec for all queries.public EvernoteSearchHelper.Search setOffset(int offset)
0.offset - The beginning offset for all queries.public EvernoteSearchHelper.Search setMaxNotes(int maxNotes)
10. Set this value to Integer.MAX_VALUE, if you want to query
all notes. The higher this value the more intense is the whole search.maxNotes - The maximum note count for all queries.public EvernoteSearchHelper.Search setPageSize(int pageSize)
10.pageSize - The page size for a single search.public EvernoteSearchHelper.Search setIgnoreExceptions(boolean ignoreExceptions)
false.ignoreExceptions - If true then most exceptions while running the search are caught and ignored.public boolean isIgnoreExceptions()