clojurewerkz.elastisch.rest.document__init.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infosquito Show documentation
Show all versions of infosquito Show documentation
An ICAT database crawler used to index the contents of iRODS.
???? 1^ *clojurewerkz/elastisch/rest/document__init java/lang/Object load ()V const__0 Lclojure/lang/Var; clojure/lang/Var
getRawRoot ()Ljava/lang/Object;
clojure/lang/IFn const__1 Lclojure/lang/AFn; invoke &(Ljava/lang/Object;)Ljava/lang/Object; :clojurewerkz/elastisch/rest/document$loading__4910__auto__
clojure/lang/Symbol " const__2 $ % equals (Ljava/lang/Object;)Z ' (
# ) -clojurewerkz/elastisch/rest/document$fn__2820 +
, java/util/concurrent/Callable . clojure/lang/LockingTransaction 0 runInTransaction 3(Ljava/util/concurrent/Callable;)Ljava/lang/Object; 2 3
1 4 const__3 6 7 const__12 9 : clojure/lang/IPersistentMap < setMeta (Lclojure/lang/IPersistentMap;)V > ?
@ +clojurewerkz/elastisch/rest/document$create B
C bindRoot (Ljava/lang/Object;)V E F
G const__13 I J const__16 L M (clojurewerkz/elastisch/rest/document$put O
P const__17 R S const__20 U V 7clojurewerkz/elastisch/rest/document$update_with_script X
Y const__21 [ \ const__24 ^ _ (clojurewerkz/elastisch/rest/document$get a
b const__25 d e const__28 g h +clojurewerkz/elastisch/rest/document$delete j
k const__29 m n const__32 p q 3clojurewerkz/elastisch/rest/document$present_QMARK_ s
t const__33 v w const__36 y z .clojurewerkz/elastisch/rest/document$multi_get |
} const__37 ? const__40 ? ? +clojurewerkz/elastisch/rest/document$search ?
? const__41 ? ? const__44 ? ? 5clojurewerkz/elastisch/rest/document$search_all_types ?
? const__45 ? ? const__48 ? ? Aclojurewerkz/elastisch/rest/document$search_all_indexes_and_types ?
? const__49 ? ? const__52 ? ? +clojurewerkz/elastisch/rest/document$scroll ?
? const__53 ? ? const__56 ? ? /clojurewerkz/elastisch/rest/document$scroll_seq ?
? const__57 ? ? const__60 ? ? ,clojurewerkz/elastisch/rest/document$replace ?
? const__61 ? ? const__64 ? ? *clojurewerkz/elastisch/rest/document$count ?
? const__65 ? ? const__68 ? ? const__73 ? ? const__74 ? ? const__77 ? ? 4clojurewerkz/elastisch/rest/document$delete_by_query ?
? const__78 ? ? const__81 ? ? Eclojurewerkz/elastisch/rest/document$delete_by_query_across_all_types ?
? const__82 ? ? const__85 ? ? Qclojurewerkz/elastisch/rest/document$delete_by_query_across_all_indexes_and_types ?
? const__86 ? ? const__89 ? ? 3clojurewerkz/elastisch/rest/document$more_like_this ?
? const__90 ? ? const__93 ? ? 3clojurewerkz/elastisch/rest/document$validate_query ?
? const__4 Lclojure/lang/Keyword; const__5 const__6 Ljava/lang/Object; const__7 const__8 const__9 const__10 const__11 const__14 const__15 const__18 const__19 const__22 const__23 const__26 const__27 const__30 const__31 const__34 const__35 const__38 const__39 const__42 const__43 const__46 const__47 const__50 const__51 const__54 const__55 const__58 const__59 const__62 const__63 const__66 const__67 const__69 const__70 const__71 const__72 const__75 const__76 const__79 const__80 const__83 const__84 const__87 const__88 const__91 const__92 __init0 clojure.core) in-ns+ clojure/lang/RT- var 8(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Var;/0
.1 $clojurewerkz.elastisch.rest.document3 intern ;(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Symbol;56
#7 clojure/lang/AFn9 create; file= keyword <(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Keyword;?@
.A clojure/lang/KeywordC ? ? E columnG ? ? I java/lang/IntegerK valueOf (I)Ljava/lang/Integer;MN
LO ? ? Q lineS ? ? U ? ? W arglistsY ? ? [ index] mapping-type_ documenta &c ase paramsg map 2([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;ij
.k vector 5([Ljava/lang/Object;)Lclojure/lang/IPersistentVector;mn
.o java/util/Arraysq asList %([Ljava/lang/Object;)Ljava/util/List;st
ru clojure/lang/PersistentListw 0(Ljava/util/List;)Lclojure/lang/IPersistentList;;y
xz ? ? | doc~ ? ? ?SAdds document to the search index. Document id will be generated automatically.
Options:
* :id (string): unique document id. If not provided, it will be generated by ElasticSearch
* :timestamp (string): document timestamp either as millis since the epoch,
or, in the configured date format
* :ttl (long): document TTL in milliseconds. Must be > 0
* :refresh (boolean, default: false): should a refresh be executed post this index operation?
* :version (long): document version
* :version-type (string, default: "internal"): "internal" or "external"
* :content-type (string): document content type
* :routing (string): controls the shard routing of the request. Using this value to hash the shard
and not the id
* :percolate (string): the percolate query to use to reduce the percolated queries that are going to run against this doc.
Can be set to "*" which means "all queries"
* :parent (string): parent document id
Examples:
(require '[clojurewerkz.elastisch.rest.document :as doc])
(doc/create "people" "person" {:first-name "John" :last-name "Appleseed" :age 28})
(doc/create "people" "person" {:first-name "John" :last-name "Appleseed" :age 28} :id "1825c5432775b8d1a477acfae57e91ac8c767aed")? (clojurewerkz/elastisch/rest/document.clj? put? ? ? ? id? ? ? ? QCreates or updates a document in the search index, using the provided document id? update-with-script? ? ? script? ? ? !Updates a document using a script? get? ? ? ? ? ?Fetches and returns a document by id or nil if it does not exist.
Examples:
(require '[clojurewerkz.elastisch.rest.document :as doc])
(doc/get "people" "person" "1825c5432775b8d1a477acfae57e91ac8c767aed")? delete? ? ? ? ? ?Deletes document from the index.
Related ElasticSearch documentation guide: http://www.elasticsearch.org/guide/reference/api/delete.html? present?? ? ? ? ? mReturns true if a document with the given id is present in the provided index
with the given mapping type.? multi-get? ? ? query? ? ??Multi get returns only documents that are found (exist).
Queries can passed as a collection of maps with three keys: :_index,
:_type and :_id:
(doc/multi-get [{:_index index-name :_type mapping-type :_id "1"}
{:_index index-name :_type mapping-type :_id "2"}])
2-argument version accepts an index name that eliminates the need to include
:_index in every query map:
(doc/multi-get index-name [{:_type mapping-type :_id "1"}
{:_type mapping-type :_id "2"}])
3-argument version also accepts a mapping type that eliminates the need to include
:_type in every query map:
(doc/multi-get index-name mapping-type [{:_id "1"}
{:_id "2"}])? search?
? ? options? ? ?[Performs a search query across one or more indexes and one or more mapping types.
Passing index name as "_all" means searching across all indexes.
Examples:
(require '[clojurewerkz.elastisch.rest.document :as doc])
(require '[clojurewerkz.elastisch.query :as q])
(doc/search "people" "person" :query (q/prefix :username "appl"))? search-all-types? ? ?
? ? IPerforms a search query across one or more indexes and all mapping types.? search-all-indexes-and-types? ? ? ? ? ?Performs a search query across all indexes and all mapping types. This may put very high load on your
ElasticSearch cluster so use this function with care.? scroll? ? ? scroll-id? ? ? \Performs a scroll query, fetching the next page of results from a
query given a scroll id?
scroll-seq? ? ? prev-resp? ? ? AReturns a lazy sequence of all documents for a given scroll query? replace? ? ? ? ? .Replaces document with given id with a new one? count? ? ? ? ?`Performs a count query.
Examples:
(require '[clojurewerkz.elastisch.rest.document :as doc])
(require '[clojurewerkz.elastisch.query :as q])
(doc/count "people" "person")
(doc/count "people" "person" (q/prefix :username "appl"))
Related ElasticSearch documentation guide: http://www.elasticsearch.org/guide/reference/api/count.html? optional-delete-query-parameters? ? ? const? ? java/lang/Boolean TRUE Ljava/lang/Boolean; ?Optional parameters that all query-based delete functions share df
? analyzer ? default_operator ? consistency ? delete-by-query ? ? ?Performs a delete-by-query operation.
Related ElasticSearch documentation guide: http://www.elasticsearch.org/guide/reference/api/delete-by-query.html delete-by-query-across-all-types" ? $! ? & ?Performs a delete-by-query operation across all mapping types.
Related ElasticSearch documentation guide: http://www.elasticsearch.org/guide/reference/api/delete-by-query.html( ,delete-by-query-across-all-indexes-and-types*" ? ,# ? .Performs a delete-by-query operation across all indexes and mapping types.
This may put very high load on your ElasticSearch cluster so use this function with care.
Related ElasticSearch documentation guide: http://www.elasticsearch.org/guide/reference/api/delete-by-query.html0 more-like-this2$ ? 4% ? 6 ?Performs a More Like This (MLT) query.
Related ElasticSearch documentation guide: http://www.elasticsearch.org/guide/reference/api/more-like-this.html8 validate-query:&