relevanced_client 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19c974b07996b367ef0e48cec29bd2220209268a
4
- data.tar.gz: 3a2e2350ab3b91c47f9d115a1e8421accee98fe7
3
+ metadata.gz: 05bcd1aa5c14ed79a3b690a5b2fbc78edc2067ad
4
+ data.tar.gz: 90a02ca66006e62e0ace72451101cefc1cd60c20
5
5
  SHA512:
6
- metadata.gz: 0f1d0f3e597c1cbeb8eb4313a7353915440d972e6fc7d207e7521bc61feaffd9dc24877f3fb7204bb0a8c7e7afff87feccc296b8ca455ef2fc38cb9bee2ff3d5
7
- data.tar.gz: 8597fb8a57d762409e2bc45173b30a33a75284e6e343a40ed86afd86bd501d23fcfe8830ad8793e4adf453f7ce073b888a2b223e5c97758eafbfa78b21f54a01
6
+ metadata.gz: d13754123b64a38417b503181c19f4380de8d405554a43c61dae2bfd8e03aaaf1c0f3897d5116d900c9d5b8238db733038ca31cfbe10627d2938be40e36f75c5
7
+ data.tar.gz: 730059109099e811b2f3477873176463d51df97c65f2f0608e13d270e1ed70f959c5e31b35fb6e5c41757f466538380d0acf1c18d654eb012e7dd81c9f187550
@@ -57,6 +57,23 @@ module Relevanced
57
57
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getDocumentSimilarity failed: unknown result')
58
58
  end
59
59
 
60
+ def multiGetDocumentSimilarity(centroidIds, documentId)
61
+ send_multiGetDocumentSimilarity(centroidIds, documentId)
62
+ return recv_multiGetDocumentSimilarity()
63
+ end
64
+
65
+ def send_multiGetDocumentSimilarity(centroidIds, documentId)
66
+ send_message('multiGetDocumentSimilarity', MultiGetDocumentSimilarity_args, :centroidIds => centroidIds, :documentId => documentId)
67
+ end
68
+
69
+ def recv_multiGetDocumentSimilarity()
70
+ result = receive_message(MultiGetDocumentSimilarity_result)
71
+ return result.success unless result.success.nil?
72
+ raise result.centroidErr unless result.centroidErr.nil?
73
+ raise result.docErr unless result.docErr.nil?
74
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiGetDocumentSimilarity failed: unknown result')
75
+ end
76
+
60
77
  def multiGetTextSimilarity(centroidIds, text)
61
78
  send_multiGetTextSimilarity(centroidIds, text)
62
79
  return recv_multiGetTextSimilarity()
@@ -216,6 +233,38 @@ module Relevanced
216
233
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listAllDocumentsForCentroid failed: unknown result')
217
234
  end
218
235
 
236
+ def listCentroidDocumentRange(centroidId, offset, count)
237
+ send_listCentroidDocumentRange(centroidId, offset, count)
238
+ return recv_listCentroidDocumentRange()
239
+ end
240
+
241
+ def send_listCentroidDocumentRange(centroidId, offset, count)
242
+ send_message('listCentroidDocumentRange', ListCentroidDocumentRange_args, :centroidId => centroidId, :offset => offset, :count => count)
243
+ end
244
+
245
+ def recv_listCentroidDocumentRange()
246
+ result = receive_message(ListCentroidDocumentRange_result)
247
+ return result.success unless result.success.nil?
248
+ raise result.err unless result.err.nil?
249
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listCentroidDocumentRange failed: unknown result')
250
+ end
251
+
252
+ def listCentroidDocumentRangeFromID(centroidId, documentId, count)
253
+ send_listCentroidDocumentRangeFromID(centroidId, documentId, count)
254
+ return recv_listCentroidDocumentRangeFromID()
255
+ end
256
+
257
+ def send_listCentroidDocumentRangeFromID(centroidId, documentId, count)
258
+ send_message('listCentroidDocumentRangeFromID', ListCentroidDocumentRangeFromID_args, :centroidId => centroidId, :documentId => documentId, :count => count)
259
+ end
260
+
261
+ def recv_listCentroidDocumentRangeFromID()
262
+ result = receive_message(ListCentroidDocumentRangeFromID_result)
263
+ return result.success unless result.success.nil?
264
+ raise result.err unless result.err.nil?
265
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listCentroidDocumentRangeFromID failed: unknown result')
266
+ end
267
+
219
268
  def addDocumentToCentroid(centroidId, docId)
220
269
  send_addDocumentToCentroid(centroidId, docId)
221
270
  return recv_addDocumentToCentroid()
@@ -283,6 +332,36 @@ module Relevanced
283
332
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listAllCentroids failed: unknown result')
284
333
  end
285
334
 
335
+ def listCentroidRange(offset, count)
336
+ send_listCentroidRange(offset, count)
337
+ return recv_listCentroidRange()
338
+ end
339
+
340
+ def send_listCentroidRange(offset, count)
341
+ send_message('listCentroidRange', ListCentroidRange_args, :offset => offset, :count => count)
342
+ end
343
+
344
+ def recv_listCentroidRange()
345
+ result = receive_message(ListCentroidRange_result)
346
+ return result.success unless result.success.nil?
347
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listCentroidRange failed: unknown result')
348
+ end
349
+
350
+ def listCentroidRangeFromID(centroidId, count)
351
+ send_listCentroidRangeFromID(centroidId, count)
352
+ return recv_listCentroidRangeFromID()
353
+ end
354
+
355
+ def send_listCentroidRangeFromID(centroidId, count)
356
+ send_message('listCentroidRangeFromID', ListCentroidRangeFromID_args, :centroidId => centroidId, :count => count)
357
+ end
358
+
359
+ def recv_listCentroidRangeFromID()
360
+ result = receive_message(ListCentroidRangeFromID_result)
361
+ return result.success unless result.success.nil?
362
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listCentroidRangeFromID failed: unknown result')
363
+ end
364
+
286
365
  def listAllDocuments()
287
366
  send_listAllDocuments()
288
367
  return recv_listAllDocuments()
@@ -298,6 +377,36 @@ module Relevanced
298
377
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listAllDocuments failed: unknown result')
299
378
  end
300
379
 
380
+ def listDocumentRange(offset, count)
381
+ send_listDocumentRange(offset, count)
382
+ return recv_listDocumentRange()
383
+ end
384
+
385
+ def send_listDocumentRange(offset, count)
386
+ send_message('listDocumentRange', ListDocumentRange_args, :offset => offset, :count => count)
387
+ end
388
+
389
+ def recv_listDocumentRange()
390
+ result = receive_message(ListDocumentRange_result)
391
+ return result.success unless result.success.nil?
392
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listDocumentRange failed: unknown result')
393
+ end
394
+
395
+ def listDocumentRangeFromID(documentId, count)
396
+ send_listDocumentRangeFromID(documentId, count)
397
+ return recv_listDocumentRangeFromID()
398
+ end
399
+
400
+ def send_listDocumentRangeFromID(documentId, count)
401
+ send_message('listDocumentRangeFromID', ListDocumentRangeFromID_args, :documentId => documentId, :count => count)
402
+ end
403
+
404
+ def recv_listDocumentRangeFromID()
405
+ result = receive_message(ListDocumentRangeFromID_result)
406
+ return result.success unless result.success.nil?
407
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listDocumentRangeFromID failed: unknown result')
408
+ end
409
+
301
410
  def debugEraseAllData()
302
411
  send_debugEraseAllData()
303
412
  recv_debugEraseAllData()
@@ -376,6 +485,19 @@ module Relevanced
376
485
  write_result(result, oprot, 'getDocumentSimilarity', seqid)
377
486
  end
378
487
 
488
+ def process_multiGetDocumentSimilarity(seqid, iprot, oprot)
489
+ args = read_args(iprot, MultiGetDocumentSimilarity_args)
490
+ result = MultiGetDocumentSimilarity_result.new()
491
+ begin
492
+ result.success = @handler.multiGetDocumentSimilarity(args.centroidIds, args.documentId)
493
+ rescue ::ECentroidDoesNotExist => centroidErr
494
+ result.centroidErr = centroidErr
495
+ rescue ::EDocumentDoesNotExist => docErr
496
+ result.docErr = docErr
497
+ end
498
+ write_result(result, oprot, 'multiGetDocumentSimilarity', seqid)
499
+ end
500
+
379
501
  def process_multiGetTextSimilarity(seqid, iprot, oprot)
380
502
  args = read_args(iprot, MultiGetTextSimilarity_args)
381
503
  result = MultiGetTextSimilarity_result.new()
@@ -482,6 +604,28 @@ module Relevanced
482
604
  write_result(result, oprot, 'listAllDocumentsForCentroid', seqid)
483
605
  end
484
606
 
607
+ def process_listCentroidDocumentRange(seqid, iprot, oprot)
608
+ args = read_args(iprot, ListCentroidDocumentRange_args)
609
+ result = ListCentroidDocumentRange_result.new()
610
+ begin
611
+ result.success = @handler.listCentroidDocumentRange(args.centroidId, args.offset, args.count)
612
+ rescue ::ECentroidDoesNotExist => err
613
+ result.err = err
614
+ end
615
+ write_result(result, oprot, 'listCentroidDocumentRange', seqid)
616
+ end
617
+
618
+ def process_listCentroidDocumentRangeFromID(seqid, iprot, oprot)
619
+ args = read_args(iprot, ListCentroidDocumentRangeFromID_args)
620
+ result = ListCentroidDocumentRangeFromID_result.new()
621
+ begin
622
+ result.success = @handler.listCentroidDocumentRangeFromID(args.centroidId, args.documentId, args.count)
623
+ rescue ::ECentroidDoesNotExist => err
624
+ result.err = err
625
+ end
626
+ write_result(result, oprot, 'listCentroidDocumentRangeFromID', seqid)
627
+ end
628
+
485
629
  def process_addDocumentToCentroid(seqid, iprot, oprot)
486
630
  args = read_args(iprot, AddDocumentToCentroid_args)
487
631
  result = AddDocumentToCentroid_result.new()
@@ -530,6 +674,20 @@ module Relevanced
530
674
  write_result(result, oprot, 'listAllCentroids', seqid)
531
675
  end
532
676
 
677
+ def process_listCentroidRange(seqid, iprot, oprot)
678
+ args = read_args(iprot, ListCentroidRange_args)
679
+ result = ListCentroidRange_result.new()
680
+ result.success = @handler.listCentroidRange(args.offset, args.count)
681
+ write_result(result, oprot, 'listCentroidRange', seqid)
682
+ end
683
+
684
+ def process_listCentroidRangeFromID(seqid, iprot, oprot)
685
+ args = read_args(iprot, ListCentroidRangeFromID_args)
686
+ result = ListCentroidRangeFromID_result.new()
687
+ result.success = @handler.listCentroidRangeFromID(args.centroidId, args.count)
688
+ write_result(result, oprot, 'listCentroidRangeFromID', seqid)
689
+ end
690
+
533
691
  def process_listAllDocuments(seqid, iprot, oprot)
534
692
  args = read_args(iprot, ListAllDocuments_args)
535
693
  result = ListAllDocuments_result.new()
@@ -537,6 +695,20 @@ module Relevanced
537
695
  write_result(result, oprot, 'listAllDocuments', seqid)
538
696
  end
539
697
 
698
+ def process_listDocumentRange(seqid, iprot, oprot)
699
+ args = read_args(iprot, ListDocumentRange_args)
700
+ result = ListDocumentRange_result.new()
701
+ result.success = @handler.listDocumentRange(args.offset, args.count)
702
+ write_result(result, oprot, 'listDocumentRange', seqid)
703
+ end
704
+
705
+ def process_listDocumentRangeFromID(seqid, iprot, oprot)
706
+ args = read_args(iprot, ListDocumentRangeFromID_args)
707
+ result = ListDocumentRangeFromID_result.new()
708
+ result.success = @handler.listDocumentRangeFromID(args.documentId, args.count)
709
+ write_result(result, oprot, 'listDocumentRangeFromID', seqid)
710
+ end
711
+
540
712
  def process_debugEraseAllData(seqid, iprot, oprot)
541
713
  args = read_args(iprot, DebugEraseAllData_args)
542
714
  result = DebugEraseAllData_result.new()
@@ -669,6 +841,44 @@ module Relevanced
669
841
  ::Thrift::Struct.generate_accessors self
670
842
  end
671
843
 
844
+ class MultiGetDocumentSimilarity_args
845
+ include ::Thrift::Struct, ::Thrift::Struct_Union
846
+ CENTROIDIDS = 1
847
+ DOCUMENTID = 2
848
+
849
+ FIELDS = {
850
+ CENTROIDIDS => {:type => ::Thrift::Types::LIST, :name => 'centroidIds', :element => {:type => ::Thrift::Types::STRING}},
851
+ DOCUMENTID => {:type => ::Thrift::Types::STRING, :name => 'documentId'}
852
+ }
853
+
854
+ def struct_fields; FIELDS; end
855
+
856
+ def validate
857
+ end
858
+
859
+ ::Thrift::Struct.generate_accessors self
860
+ end
861
+
862
+ class MultiGetDocumentSimilarity_result
863
+ include ::Thrift::Struct, ::Thrift::Struct_Union
864
+ SUCCESS = 0
865
+ CENTROIDERR = 1
866
+ DOCERR = 2
867
+
868
+ FIELDS = {
869
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::MultiSimilarityResponse},
870
+ CENTROIDERR => {:type => ::Thrift::Types::STRUCT, :name => 'centroidErr', :class => ::ECentroidDoesNotExist},
871
+ DOCERR => {:type => ::Thrift::Types::STRUCT, :name => 'docErr', :class => ::EDocumentDoesNotExist}
872
+ }
873
+
874
+ def struct_fields; FIELDS; end
875
+
876
+ def validate
877
+ end
878
+
879
+ ::Thrift::Struct.generate_accessors self
880
+ end
881
+
672
882
  class MultiGetTextSimilarity_args
673
883
  include ::Thrift::Struct, ::Thrift::Struct_Union
674
884
  CENTROIDIDS = 1
@@ -1015,6 +1225,82 @@ module Relevanced
1015
1225
  ::Thrift::Struct.generate_accessors self
1016
1226
  end
1017
1227
 
1228
+ class ListCentroidDocumentRange_args
1229
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1230
+ CENTROIDID = 1
1231
+ OFFSET = 2
1232
+ COUNT = 3
1233
+
1234
+ FIELDS = {
1235
+ CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'},
1236
+ OFFSET => {:type => ::Thrift::Types::I64, :name => 'offset'},
1237
+ COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
1238
+ }
1239
+
1240
+ def struct_fields; FIELDS; end
1241
+
1242
+ def validate
1243
+ end
1244
+
1245
+ ::Thrift::Struct.generate_accessors self
1246
+ end
1247
+
1248
+ class ListCentroidDocumentRange_result
1249
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1250
+ SUCCESS = 0
1251
+ ERR = 1
1252
+
1253
+ FIELDS = {
1254
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListCentroidDocumentsResponse},
1255
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
1256
+ }
1257
+
1258
+ def struct_fields; FIELDS; end
1259
+
1260
+ def validate
1261
+ end
1262
+
1263
+ ::Thrift::Struct.generate_accessors self
1264
+ end
1265
+
1266
+ class ListCentroidDocumentRangeFromID_args
1267
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1268
+ CENTROIDID = 1
1269
+ DOCUMENTID = 2
1270
+ COUNT = 3
1271
+
1272
+ FIELDS = {
1273
+ CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'},
1274
+ DOCUMENTID => {:type => ::Thrift::Types::STRING, :name => 'documentId'},
1275
+ COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
1276
+ }
1277
+
1278
+ def struct_fields; FIELDS; end
1279
+
1280
+ def validate
1281
+ end
1282
+
1283
+ ::Thrift::Struct.generate_accessors self
1284
+ end
1285
+
1286
+ class ListCentroidDocumentRangeFromID_result
1287
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1288
+ SUCCESS = 0
1289
+ ERR = 1
1290
+
1291
+ FIELDS = {
1292
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListCentroidDocumentsResponse},
1293
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
1294
+ }
1295
+
1296
+ def struct_fields; FIELDS; end
1297
+
1298
+ def validate
1299
+ end
1300
+
1301
+ ::Thrift::Struct.generate_accessors self
1302
+ end
1303
+
1018
1304
  class AddDocumentToCentroid_args
1019
1305
  include ::Thrift::Struct, ::Thrift::Struct_Union
1020
1306
  CENTROIDID = 1
@@ -1160,6 +1446,74 @@ module Relevanced
1160
1446
  ::Thrift::Struct.generate_accessors self
1161
1447
  end
1162
1448
 
1449
+ class ListCentroidRange_args
1450
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1451
+ OFFSET = 1
1452
+ COUNT = 2
1453
+
1454
+ FIELDS = {
1455
+ OFFSET => {:type => ::Thrift::Types::I64, :name => 'offset'},
1456
+ COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
1457
+ }
1458
+
1459
+ def struct_fields; FIELDS; end
1460
+
1461
+ def validate
1462
+ end
1463
+
1464
+ ::Thrift::Struct.generate_accessors self
1465
+ end
1466
+
1467
+ class ListCentroidRange_result
1468
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1469
+ SUCCESS = 0
1470
+
1471
+ FIELDS = {
1472
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListCentroidsResponse}
1473
+ }
1474
+
1475
+ def struct_fields; FIELDS; end
1476
+
1477
+ def validate
1478
+ end
1479
+
1480
+ ::Thrift::Struct.generate_accessors self
1481
+ end
1482
+
1483
+ class ListCentroidRangeFromID_args
1484
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1485
+ CENTROIDID = 1
1486
+ COUNT = 2
1487
+
1488
+ FIELDS = {
1489
+ CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'},
1490
+ COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
1491
+ }
1492
+
1493
+ def struct_fields; FIELDS; end
1494
+
1495
+ def validate
1496
+ end
1497
+
1498
+ ::Thrift::Struct.generate_accessors self
1499
+ end
1500
+
1501
+ class ListCentroidRangeFromID_result
1502
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1503
+ SUCCESS = 0
1504
+
1505
+ FIELDS = {
1506
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListCentroidsResponse}
1507
+ }
1508
+
1509
+ def struct_fields; FIELDS; end
1510
+
1511
+ def validate
1512
+ end
1513
+
1514
+ ::Thrift::Struct.generate_accessors self
1515
+ end
1516
+
1163
1517
  class ListAllDocuments_args
1164
1518
  include ::Thrift::Struct, ::Thrift::Struct_Union
1165
1519
 
@@ -1191,6 +1545,74 @@ module Relevanced
1191
1545
  ::Thrift::Struct.generate_accessors self
1192
1546
  end
1193
1547
 
1548
+ class ListDocumentRange_args
1549
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1550
+ OFFSET = 1
1551
+ COUNT = 2
1552
+
1553
+ FIELDS = {
1554
+ OFFSET => {:type => ::Thrift::Types::I64, :name => 'offset'},
1555
+ COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
1556
+ }
1557
+
1558
+ def struct_fields; FIELDS; end
1559
+
1560
+ def validate
1561
+ end
1562
+
1563
+ ::Thrift::Struct.generate_accessors self
1564
+ end
1565
+
1566
+ class ListDocumentRange_result
1567
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1568
+ SUCCESS = 0
1569
+
1570
+ FIELDS = {
1571
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListDocumentsResponse}
1572
+ }
1573
+
1574
+ def struct_fields; FIELDS; end
1575
+
1576
+ def validate
1577
+ end
1578
+
1579
+ ::Thrift::Struct.generate_accessors self
1580
+ end
1581
+
1582
+ class ListDocumentRangeFromID_args
1583
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1584
+ DOCUMENTID = 1
1585
+ COUNT = 2
1586
+
1587
+ FIELDS = {
1588
+ DOCUMENTID => {:type => ::Thrift::Types::STRING, :name => 'documentId'},
1589
+ COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
1590
+ }
1591
+
1592
+ def struct_fields; FIELDS; end
1593
+
1594
+ def validate
1595
+ end
1596
+
1597
+ ::Thrift::Struct.generate_accessors self
1598
+ end
1599
+
1600
+ class ListDocumentRangeFromID_result
1601
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1602
+ SUCCESS = 0
1603
+
1604
+ FIELDS = {
1605
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListDocumentsResponse}
1606
+ }
1607
+
1608
+ def struct_fields; FIELDS; end
1609
+
1610
+ def validate
1611
+ end
1612
+
1613
+ ::Thrift::Struct.generate_accessors self
1614
+ end
1615
+
1194
1616
  class DebugEraseAllData_args
1195
1617
  include ::Thrift::Struct, ::Thrift::Struct_Union
1196
1618
 
@@ -37,6 +37,12 @@ module RelevancedClient
37
37
  )
38
38
  end
39
39
 
40
+ def multi_get_document_similarity(centroid_id_list, document_id)
41
+ @thrift_client.multiGetDocumentSimilarity(
42
+ centroid_id_list, document_id
43
+ )
44
+ end
45
+
40
46
  def get_text_similarity(centroid_id, text)
41
47
  @thrift_client.getTextSimilarity(centroid_id, text)
42
48
  end
@@ -73,6 +79,14 @@ module RelevancedClient
73
79
  @thrift_client.listAllDocumentsForCentroid(centroid_id)
74
80
  end
75
81
 
82
+ def list_centroid_document_range(centroid_id, offset, count)
83
+ @thrift_client.listCentroidDocumentRange(centroid_id, offset, count)
84
+ end
85
+
86
+ def list_centroid_document_range_from_id(centroid_id, document_id, count)
87
+ @thrift_client.listCentroidDocumentRangeFromID(centroid_id, document_id, count)
88
+ end
89
+
76
90
  def add_document_to_centroid(centroid_id, document_id)
77
91
  @thrift_client.addDocumentToCentroid(
78
92
  centroid_id, document_id
@@ -93,9 +107,24 @@ module RelevancedClient
93
107
  @thrift_client.listAllCentroids()
94
108
  end
95
109
 
110
+ def list_centroid_range(offset, count)
111
+ @thrift_client.listCentroidRange(offset, count)
112
+ end
113
+
114
+ def list_centroid_range_from_id(centroid_id, count)
115
+ @thrift_client.listCentroidRangeFromID(centroid_id, count)
116
+ end
117
+
96
118
  def list_all_documents()
97
119
  @thrift_client.listAllDocuments()
98
120
  end
99
121
 
122
+ def list_document_range(offset, count)
123
+ @thrift_client.listDocumentRange(offset, count)
124
+ end
125
+
126
+ def list_document_range_from_id(document_id, count)
127
+ @thrift_client.listDocumentRangeFromID(document_id, count)
128
+ end
100
129
  end
101
130
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relevanced_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Ivey