Skip to content

Commit b3dba4a

Browse files
committed
[API] Added support for the realtime parameter to the Term Vectors APIs
1 parent 95b7f8f commit b3dba4a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ module Actions
2424
# @option arguments [Boolean] :payloads Whether term payloads should be returned
2525
# @option arguments [String] :preference Specify the node or shard the operation should be performed on
2626
# (default: random)
27+
# @option arguments [String] :realtime Specifies if requests are real-time as opposed to near-real-time
28+
# (default: true)
2729
# @option arguments [String] :routing Specific routing value
2830
# @option arguments [String] :parent Parent ID of documents
2931
#
@@ -42,6 +44,7 @@ def mtermvectors(arguments={})
4244
:positions,
4345
:payloads,
4446
:preference,
47+
:realtime,
4548
:routing,
4649
:parent ]
4750

elasticsearch-api/lib/elasticsearch/api/actions/termvector.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ module Actions
3939
# @option arguments [Boolean] :payloads Whether term payloads should be returned
4040
# @option arguments [String] :preference Specify the node or shard the operation should be performed on
4141
# (default: random)
42+
# @option arguments [String] :realtime Specifies if requests are real-time as opposed to near-real-time
43+
# (default: true)
4244
# @option arguments [String] :routing Specific routing value
4345
# @option arguments [String] :parent Parent ID of the documents
4446
#
@@ -57,6 +59,7 @@ def termvector(arguments={})
5759
:positions,
5860
:payloads,
5961
:preference,
62+
:realtime,
6063
:routing,
6164
:parent ]
6265

0 commit comments

Comments
 (0)