com
.
github
.
eduardofcbg
.
plugin
.
es
.
scala
Finder
Related Doc:
package scala
class
Finder
[
T <:
Indexable
]
extends
AnyRef
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
Finder
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Instance Constructors
new
Finder
(
typeName:
String
,
parentType:
String
=
null
,
nResultsPerPage:
Int
=
5
,
indexName:
String
=
null
)
(
implicit
esFormat:
Format
[
T
]
,
esClient:
ES
,
ec:
ExecutionContext
=
ExecutionContext.global
)
Type Members
class
JavaFinder
extends
es.Finder
[
T
]
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
object
Search
def
apply
(
id:
String
)
:
Future
[
Option
[
T
]]
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
conditionalUpdate
(
id:
String
,
f: (
T
) ⇒
Option
[
T
]
)
:
Future
[
Option
[
UpdateResponse
]]
def
delete
(
id:
String
)
:
Future
[
DeleteResponse
]
def
deleteChild
(
id:
String
,
parentId:
String
)
:
Future
[
DeleteResponse
]
implicit
val
ec
:
ExecutionContext
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
implicit
var
esClient
:
ES
implicit
val
esFormat
:
Format
[
T
]
def
expire
(
key:
String
)
(
f: (
Finder
[
T
]) ⇒
Any
)
(
implicit
cache:
CacheApi
)
:
Any
def
expirePaginated
(
key:
String
)
(
f: (
Finder
[
T
]) ⇒
Any
)
(
implicit
cache:
CacheApi
)
:
Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
get
(
id:
String
)
:
Future
[
Option
[
T
]]
def
getChild
(
id:
String
,
parentId:
String
)
:
Future
[
Option
[
T
]]
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getMulti
(
ids:
String
*
)
:
Future
[
Seq
[
T
]]
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
lazy val
in
:
SearchDefinition
def
index
(
toIndex:
T
)
:
Future
[
IndexResponse
]
def
index
(
toIndex:
T
,
id:
String
)
:
Future
[
IndexResponse
]
def
indexCached
(
key:
String
,
toIndex:
T
)
(
implicit
cache:
CacheApi
)
:
Future
[
IndexResponse
]
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
val
jFinder
:
JavaFinder
lazy val
location
:
IndexAndType
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
sFinder
:
Finder
[
T
]
def
search
(
consumer: (
SearchRequestBuilder
) ⇒
Unit
=
all
)
(
implicit
page:
Int
=
0
)
:
Future
[
Seq
[
T
]]
def
searchNested
(
key:
String
,
queryDef:
QueryDefinition
,
sortDef:
FieldSortDefinition
=
Sort.byTimeStamp()
)
(
implicit
page:
Int
=
0
)
:
Future
[
Seq
[
T
]]
def
searchNestedTerm
(
key:
String
,
innerKey:
String
,
value:
String
,
sortDef:
FieldSortDefinition
=
Sort.byTimeStamp()
)
(
implicit
page:
Int
=
0
)
:
Future
[
Seq
[
T
]]
def
searchQuery
(
queryDef:
QueryDefinition
,
sortDef:
FieldSortDefinition
=
Sort.byTimeStamp()
)
(
implicit
page:
Int
=
0
)
:
Future
[
Seq
[
T
]]
def
searchWhere
(
key:
String
,
value:
String
)
(
implicit
page:
Int
=
0
)
:
Future
[
Seq
[
T
]]
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
update
(
id:
String
,
f: (
T
) ⇒
T
,
predicate: (
T
) ⇒
Boolean
=
_ => true
)
:
Future
[
Option
[
UpdateResponse
]]
def
updateChild
(
id:
String
,
parentId:
String
,
f: (
T
) ⇒
T
)
:
Future
[
UpdateResponse
]
def
updateJ
(
id:
String
,
f:
Function
[
T
,
T
]
)
:
CompletionStage
[
Optional
[
UpdateResponse
]]
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
AnyRef
Inherited from
Any
Ungrouped