alfresco 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/README.md +119 -0
  5. data/Rakefile +8 -0
  6. data/alfresco.gemspec +45 -0
  7. data/docs/ContentInfo.md +12 -0
  8. data/docs/Error.md +8 -0
  9. data/docs/ErrorError.md +13 -0
  10. data/docs/GenericBucket.md +13 -0
  11. data/docs/GenericBucketBucketInfo.md +11 -0
  12. data/docs/GenericFacetResponse.md +10 -0
  13. data/docs/GenericMetric.md +9 -0
  14. data/docs/Node.md +24 -0
  15. data/docs/Pagination.md +12 -0
  16. data/docs/PathElement.md +9 -0
  17. data/docs/PathInfo.md +10 -0
  18. data/docs/RequestDefaults.md +12 -0
  19. data/docs/RequestFacetField.md +18 -0
  20. data/docs/RequestFacetFields.md +8 -0
  21. data/docs/RequestFacetIntervals.md +9 -0
  22. data/docs/RequestFacetIntervalsIntervals.md +10 -0
  23. data/docs/RequestFacetQueries.md +7 -0
  24. data/docs/RequestFacetQueriesInner.md +9 -0
  25. data/docs/RequestFacetSet.md +12 -0
  26. data/docs/RequestFields.md +7 -0
  27. data/docs/RequestFilterQueries.md +7 -0
  28. data/docs/RequestFilterQueriesInner.md +9 -0
  29. data/docs/RequestHighlight.md +15 -0
  30. data/docs/RequestHighlightFields.md +13 -0
  31. data/docs/RequestInclude.md +7 -0
  32. data/docs/RequestLimits.md +9 -0
  33. data/docs/RequestLocalization.md +9 -0
  34. data/docs/RequestPagination.md +9 -0
  35. data/docs/RequestPivot.md +9 -0
  36. data/docs/RequestQuery.md +10 -0
  37. data/docs/RequestRange.md +16 -0
  38. data/docs/RequestScope.md +8 -0
  39. data/docs/RequestSortDefinition.md +7 -0
  40. data/docs/RequestSortDefinitionInner.md +10 -0
  41. data/docs/RequestSpellcheck.md +8 -0
  42. data/docs/RequestStats.md +23 -0
  43. data/docs/RequestTemplates.md +7 -0
  44. data/docs/RequestTemplatesInner.md +9 -0
  45. data/docs/ResponseConsistency.md +8 -0
  46. data/docs/ResultBuckets.md +9 -0
  47. data/docs/ResultBucketsBuckets.md +11 -0
  48. data/docs/ResultNode.md +29 -0
  49. data/docs/ResultSetContext.md +13 -0
  50. data/docs/ResultSetContextFacetQueries.md +10 -0
  51. data/docs/ResultSetContextSpellcheck.md +9 -0
  52. data/docs/ResultSetPaging.md +8 -0
  53. data/docs/ResultSetPagingList.md +10 -0
  54. data/docs/ResultSetRowEntry.md +8 -0
  55. data/docs/SearchApi.md +62 -0
  56. data/docs/SearchEntry.md +9 -0
  57. data/docs/SearchEntryHighlight.md +9 -0
  58. data/docs/SearchRequest.md +27 -0
  59. data/docs/UserInfo.md +9 -0
  60. data/git_push.sh +55 -0
  61. data/lib/alfresco.rb +92 -0
  62. data/lib/alfresco/api/search_api.rb +78 -0
  63. data/lib/alfresco/api_client.rb +389 -0
  64. data/lib/alfresco/api_error.rb +38 -0
  65. data/lib/alfresco/configuration.rb +209 -0
  66. data/lib/alfresco/models/content_info.rb +239 -0
  67. data/lib/alfresco/models/error.rb +188 -0
  68. data/lib/alfresco/models/error_error.rb +253 -0
  69. data/lib/alfresco/models/generic_bucket.rb +242 -0
  70. data/lib/alfresco/models/generic_bucket_bucket_info.rb +219 -0
  71. data/lib/alfresco/models/generic_facet_response.rb +211 -0
  72. data/lib/alfresco/models/generic_metric.rb +199 -0
  73. data/lib/alfresco/models/node.rb +403 -0
  74. data/lib/alfresco/models/pagination.rb +249 -0
  75. data/lib/alfresco/models/path_element.rb +197 -0
  76. data/lib/alfresco/models/path_info.rb +208 -0
  77. data/lib/alfresco/models/request_defaults.rb +283 -0
  78. data/lib/alfresco/models/request_facet_field.rb +333 -0
  79. data/lib/alfresco/models/request_facet_fields.rb +191 -0
  80. data/lib/alfresco/models/request_facet_intervals.rb +203 -0
  81. data/lib/alfresco/models/request_facet_intervals_intervals.rb +211 -0
  82. data/lib/alfresco/models/request_facet_queries.rb +179 -0
  83. data/lib/alfresco/models/request_facet_queries_inner.rb +199 -0
  84. data/lib/alfresco/models/request_facet_set.rb +233 -0
  85. data/lib/alfresco/models/request_fields.rb +179 -0
  86. data/lib/alfresco/models/request_filter_queries.rb +179 -0
  87. data/lib/alfresco/models/request_filter_queries_inner.rb +201 -0
  88. data/lib/alfresco/models/request_highlight.rb +261 -0
  89. data/lib/alfresco/models/request_highlight_fields.rb +234 -0
  90. data/lib/alfresco/models/request_include.rb +179 -0
  91. data/lib/alfresco/models/request_limits.rb +199 -0
  92. data/lib/alfresco/models/request_localization.rb +201 -0
  93. data/lib/alfresco/models/request_pagination.rb +231 -0
  94. data/lib/alfresco/models/request_pivot.rb +200 -0
  95. data/lib/alfresco/models/request_query.rb +249 -0
  96. data/lib/alfresco/models/request_range.rb +275 -0
  97. data/lib/alfresco/models/request_scope.rb +222 -0
  98. data/lib/alfresco/models/request_sort_definition.rb +179 -0
  99. data/lib/alfresco/models/request_sort_definition_inner.rb +246 -0
  100. data/lib/alfresco/models/request_spellcheck.rb +188 -0
  101. data/lib/alfresco/models/request_stats.rb +367 -0
  102. data/lib/alfresco/models/request_templates.rb +179 -0
  103. data/lib/alfresco/models/request_templates_inner.rb +199 -0
  104. data/lib/alfresco/models/response_consistency.rb +189 -0
  105. data/lib/alfresco/models/result_buckets.rb +201 -0
  106. data/lib/alfresco/models/result_buckets_buckets.rb +219 -0
  107. data/lib/alfresco/models/result_node.rb +448 -0
  108. data/lib/alfresco/models/result_set_context.rb +245 -0
  109. data/lib/alfresco/models/result_set_context_facet_queries.rb +207 -0
  110. data/lib/alfresco/models/result_set_context_spellcheck.rb +233 -0
  111. data/lib/alfresco/models/result_set_paging.rb +188 -0
  112. data/lib/alfresco/models/result_set_paging_list.rb +208 -0
  113. data/lib/alfresco/models/result_set_row_entry.rb +193 -0
  114. data/lib/alfresco/models/search_entry.rb +201 -0
  115. data/lib/alfresco/models/search_entry_highlight.rb +201 -0
  116. data/lib/alfresco/models/search_request.rb +373 -0
  117. data/lib/alfresco/models/user_info.rb +207 -0
  118. data/lib/alfresco/version.rb +15 -0
  119. data/spec/api/search_api_spec.rb +47 -0
  120. data/spec/api_client_spec.rb +226 -0
  121. data/spec/configuration_spec.rb +39 -0
  122. data/spec/models/content_info_spec.rb +66 -0
  123. data/spec/models/error_error_spec.rb +72 -0
  124. data/spec/models/error_spec.rb +42 -0
  125. data/spec/models/generic_bucket_bucket_info_spec.rb +60 -0
  126. data/spec/models/generic_bucket_spec.rb +72 -0
  127. data/spec/models/generic_facet_response_spec.rb +54 -0
  128. data/spec/models/generic_metric_spec.rb +48 -0
  129. data/spec/models/node_spec.rb +138 -0
  130. data/spec/models/pagination_spec.rb +66 -0
  131. data/spec/models/path_element_spec.rb +48 -0
  132. data/spec/models/path_info_spec.rb +54 -0
  133. data/spec/models/request_defaults_spec.rb +74 -0
  134. data/spec/models/request_facet_field_spec.rb +110 -0
  135. data/spec/models/request_facet_fields_spec.rb +42 -0
  136. data/spec/models/request_facet_intervals_intervals_spec.rb +54 -0
  137. data/spec/models/request_facet_intervals_spec.rb +48 -0
  138. data/spec/models/request_facet_queries_inner_spec.rb +48 -0
  139. data/spec/models/request_facet_queries_spec.rb +36 -0
  140. data/spec/models/request_facet_set_spec.rb +66 -0
  141. data/spec/models/request_fields_spec.rb +36 -0
  142. data/spec/models/request_filter_queries_inner_spec.rb +48 -0
  143. data/spec/models/request_filter_queries_spec.rb +36 -0
  144. data/spec/models/request_highlight_fields_spec.rb +72 -0
  145. data/spec/models/request_highlight_spec.rb +84 -0
  146. data/spec/models/request_include_spec.rb +36 -0
  147. data/spec/models/request_limits_spec.rb +48 -0
  148. data/spec/models/request_localization_spec.rb +48 -0
  149. data/spec/models/request_pagination_spec.rb +48 -0
  150. data/spec/models/request_pivot_spec.rb +48 -0
  151. data/spec/models/request_query_spec.rb +58 -0
  152. data/spec/models/request_range_spec.rb +90 -0
  153. data/spec/models/request_scope_spec.rb +46 -0
  154. data/spec/models/request_sort_definition_inner_spec.rb +58 -0
  155. data/spec/models/request_sort_definition_spec.rb +36 -0
  156. data/spec/models/request_spellcheck_spec.rb +42 -0
  157. data/spec/models/request_stats_spec.rb +132 -0
  158. data/spec/models/request_templates_inner_spec.rb +48 -0
  159. data/spec/models/request_templates_spec.rb +36 -0
  160. data/spec/models/response_consistency_spec.rb +42 -0
  161. data/spec/models/result_buckets_buckets_spec.rb +60 -0
  162. data/spec/models/result_buckets_spec.rb +48 -0
  163. data/spec/models/result_node_spec.rb +168 -0
  164. data/spec/models/result_set_context_facet_queries_spec.rb +54 -0
  165. data/spec/models/result_set_context_spec.rb +72 -0
  166. data/spec/models/result_set_context_spellcheck_spec.rb +52 -0
  167. data/spec/models/result_set_paging_list_spec.rb +54 -0
  168. data/spec/models/result_set_paging_spec.rb +42 -0
  169. data/spec/models/result_set_row_entry_spec.rb +42 -0
  170. data/spec/models/search_entry_highlight_spec.rb +48 -0
  171. data/spec/models/search_entry_spec.rb +48 -0
  172. data/spec/models/search_request_spec.rb +156 -0
  173. data/spec/models/user_info_spec.rb +48 -0
  174. data/spec/spec_helper.rb +111 -0
  175. metadata +455 -0
@@ -0,0 +1,8 @@
1
+ # Alfresco::RequestFacetFields
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **facets** | [**Array<RequestFacetField>**](RequestFacetField.md) | Define specifc fields on which to facet (adds SOLR facet.field and f.<field>.facet.* options) | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # Alfresco::RequestFacetIntervals
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **sets** | [**Array<RequestFacetSet>**](RequestFacetSet.md) | Sets the intervals for all fields. | [optional]
7
+ **intervals** | [**Array<RequestFacetIntervalsIntervals>**](RequestFacetIntervalsIntervals.md) | Specifies the fields to facet by interval. | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # Alfresco::RequestFacetIntervalsIntervals
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **field** | **String** | The field to facet on | [optional]
7
+ **label** | **String** | A label to use to identify the field facet | [optional]
8
+ **sets** | [**Array<RequestFacetSet>**](RequestFacetSet.md) | Sets the intervals for all fields. | [optional]
9
+
10
+
@@ -0,0 +1,7 @@
1
+ # Alfresco::RequestFacetQueries
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,9 @@
1
+ # Alfresco::RequestFacetQueriesInner
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **query** | **String** | A facet query | [optional]
7
+ **label** | **String** | A label to include in place of the facet query | [optional]
8
+
9
+
@@ -0,0 +1,12 @@
1
+ # Alfresco::RequestFacetSet
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **label** | **String** | A label to use to identify the set | [optional]
7
+ **start** | **String** | The start of the range | [optional]
8
+ **_end** | **String** | The end of the range | [optional]
9
+ **start_inclusive** | **BOOLEAN** | When true, the set will include values greater or equal to \"start\" | [optional] [default to true]
10
+ **end_inclusive** | **BOOLEAN** | When true, the set will include values less than or equal to \"end\" | [optional] [default to true]
11
+
12
+
@@ -0,0 +1,7 @@
1
+ # Alfresco::RequestFields
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,7 @@
1
+ # Alfresco::RequestFilterQueries
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,9 @@
1
+ # Alfresco::RequestFilterQueriesInner
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **query** | **String** | The filter query expression. For multi-select facets selected facets must be order together | [optional]
7
+ **tags** | **Array<String>** | Tags used exclude the filters from facet evaluation for multi-select facet support | [optional]
8
+
9
+
@@ -0,0 +1,15 @@
1
+ # Alfresco::RequestHighlight
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **prefix** | **String** | The string used to mark the start of a highlight in a fragment. | [optional]
7
+ **postfix** | **String** | The string used to mark the end of a highlight in a fragment. | [optional]
8
+ **snippet_count** | **Integer** | The maximum number of distinct highlight snippets to return for each highlight field. | [optional]
9
+ **fragment_size** | **Integer** | The character length of each snippet. | [optional]
10
+ **max_analyzed_chars** | **Integer** | The number of characters to be considered for highlighting. Matches after this count will not be shown. | [optional]
11
+ **merge_contiguous** | **BOOLEAN** | If fragments over lap they can be merged into one larger fragment | [optional]
12
+ **use_phrase_highlighter** | **BOOLEAN** | Should phrases be identified. | [optional]
13
+ **fields** | [**Array<RequestHighlightFields>**](RequestHighlightFields.md) | The fields to highlight and field specific configuration properties for each field | [optional]
14
+
15
+
@@ -0,0 +1,13 @@
1
+ # Alfresco::RequestHighlightFields
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **field** | **String** | The name of the field to highlight. | [optional]
7
+ **snippet_count** | **Integer** | | [optional]
8
+ **fragment_size** | **Integer** | | [optional]
9
+ **merge_contiguous** | **BOOLEAN** | | [optional]
10
+ **prefix** | **String** | | [optional]
11
+ **postfix** | **String** | | [optional]
12
+
13
+
@@ -0,0 +1,7 @@
1
+ # Alfresco::RequestInclude
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,9 @@
1
+ # Alfresco::RequestLimits
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **permission_evaluation_time** | **Integer** | Maximum time for post query permission evaluation | [optional]
7
+ **permission_evaluation_count** | **Integer** | Maximum count of post query permission evaluations | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # Alfresco::RequestLocalization
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **timezone** | **String** | A valid timezone id supported by @see java.time.ZoneId | [optional]
7
+ **locales** | **Array<String>** | A list of Locales definied by IETF BCP 47. The ordering is significant. The first locale (leftmost) is used for sort and query localization, whereas the remaining locales are used for query only. | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # Alfresco::RequestPagination
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **max_items** | **Integer** | The maximum number of items to return in the query results | [optional]
7
+ **skip_count** | **Integer** | The number of items to skip from the start of the query set | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # Alfresco::RequestPivot
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **key** | **String** | A key corresponding to a matching field facet label or stats. | [optional]
7
+ **pivots** | [**Array<RequestPivot>**](RequestPivot.md) | | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # Alfresco::RequestQuery
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **language** | **String** | The query language in which the query is written. | [optional] [default to "afts"]
7
+ **user_query** | **String** | The exact search request typed in by the user | [optional]
8
+ **query** | **String** | The query which may have been generated in some way from the userQuery |
9
+
10
+
@@ -0,0 +1,16 @@
1
+ # Alfresco::RequestRange
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **field** | **String** | The name of the field to perform range | [optional]
7
+ **start** | **String** | The start of the range | [optional]
8
+ **_end** | **String** | The end of the range | [optional]
9
+ **gap** | **String** | Bucket size | [optional]
10
+ **hardend** | **BOOLEAN** | If true means that the last bucket will end at “end” even if it is less than “gap” wide. | [optional]
11
+ **other** | **Array<String>** | before, after, between, non, all | [optional]
12
+ **include** | **Array<String>** | lower, upper, edge, outer, all | [optional]
13
+ **label** | **String** | A label to include as a pivot reference | [optional]
14
+ **exclude_filters** | **Array<String>** | Filter queries to exclude when calculating statistics | [optional]
15
+
16
+
@@ -0,0 +1,8 @@
1
+ # Alfresco::RequestScope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **locations** | **String** | The locations to include in the query | [optional]
7
+
8
+
@@ -0,0 +1,7 @@
1
+ # Alfresco::RequestSortDefinition
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,10 @@
1
+ # Alfresco::RequestSortDefinitionInner
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | How to order - using a field, when position of the document in the index, score/relevence. | [optional] [default to "FIELD"]
7
+ **field** | **String** | The name of the field | [optional]
8
+ **ascending** | **BOOLEAN** | The sort order. (The ordering of nulls is determined by the SOLR configuration) | [optional] [default to false]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # Alfresco::RequestSpellcheck
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **query** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,23 @@
1
+ # Alfresco::RequestStats
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **field** | **String** | The stats field | [optional]
7
+ **label** | **String** | A label to include for reference the stats field | [optional]
8
+ **min** | **BOOLEAN** | The minimum value of the field | [optional] [default to true]
9
+ **max** | **BOOLEAN** | The maximum value of the field | [optional] [default to true]
10
+ **sum** | **BOOLEAN** | The sum of all values of the field | [optional] [default to true]
11
+ **count_values** | **BOOLEAN** | The number which have a value for this field | [optional] [default to true]
12
+ **missing** | **BOOLEAN** | The number which do not have a value for this field | [optional] [default to true]
13
+ **mean** | **BOOLEAN** | The average | [optional] [default to true]
14
+ **stddev** | **BOOLEAN** | Standard deviation | [optional] [default to true]
15
+ **sum_of_squares** | **BOOLEAN** | Sum of all values squared | [optional] [default to true]
16
+ **distinct_values** | **BOOLEAN** | The set of all distinct values for the field (This can be very expensive to calculate) | [optional] [default to false]
17
+ **count_distinct** | **BOOLEAN** | The number of distinct values (This can be very expensive to calculate) | [optional] [default to false]
18
+ **cardinality** | **BOOLEAN** | A statistical approximation of the number of distinct values | [optional] [default to false]
19
+ **cardinality_accuracy** | **Float** | Number between 0.0 and 1.0 indicating how aggressively the algorithm should try to be accurate. Used with boolean cardinality flag. | [optional] [default to 0.3]
20
+ **exclude_filters** | **Array<String>** | A list of filters to exclude | [optional]
21
+ **percentiles** | **Array<Float>** | A list of percentile values, e.g. \"1,99,99.9\" | [optional]
22
+
23
+
@@ -0,0 +1,7 @@
1
+ # Alfresco::RequestTemplates
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,9 @@
1
+ # Alfresco::RequestTemplatesInner
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The template name | [optional]
7
+ **template** | **String** | The template | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # Alfresco::ResponseConsistency
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **last_tx_id** | **Integer** | The id of the last indexed transaction | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # Alfresco::ResultBuckets
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **label** | **String** | The field name or its explicit label, if provided on the request | [optional]
7
+ **buckets** | [**Array<ResultBucketsBuckets>**](ResultBucketsBuckets.md) | An array of buckets and values | [optional]
8
+
9
+
@@ -0,0 +1,11 @@
1
+ # Alfresco::ResultBucketsBuckets
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **label** | **String** | The bucket label | [optional]
7
+ **filter_query** | **String** | The filter query you can use to apply this facet | [optional]
8
+ **count** | **Integer** | The count for the bucket | [optional]
9
+ **display** | **Object** | An optional field for additional display information | [optional]
10
+
11
+
@@ -0,0 +1,29 @@
1
+ # Alfresco::ResultNode
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | |
7
+ **name** | **String** | The name must not contain spaces or the following special characters: * \" < > \\ / ? : and |. The character . must not be used at the end of the name. |
8
+ **node_type** | **String** | |
9
+ **is_folder** | **BOOLEAN** | |
10
+ **is_file** | **BOOLEAN** | |
11
+ **is_locked** | **BOOLEAN** | | [optional] [default to false]
12
+ **modified_at** | **DateTime** | |
13
+ **modified_by_user** | [**UserInfo**](UserInfo.md) | |
14
+ **created_at** | **DateTime** | |
15
+ **created_by_user** | [**UserInfo**](UserInfo.md) | |
16
+ **parent_id** | **String** | | [optional]
17
+ **is_link** | **BOOLEAN** | | [optional]
18
+ **content** | [**ContentInfo**](ContentInfo.md) | | [optional]
19
+ **aspect_names** | **Array<String>** | | [optional]
20
+ **properties** | **Object** | | [optional]
21
+ **allowable_operations** | **Array<String>** | | [optional]
22
+ **path** | [**PathInfo**](PathInfo.md) | | [optional]
23
+ **search** | [**SearchEntry**](SearchEntry.md) | | [optional]
24
+ **archived_by_user** | [**UserInfo**](UserInfo.md) | | [optional]
25
+ **archived_at** | **DateTime** | | [optional]
26
+ **version_label** | **String** | | [optional]
27
+ **version_comment** | **String** | | [optional]
28
+
29
+
@@ -0,0 +1,13 @@
1
+ # Alfresco::ResultSetContext
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **consistency** | [**ResponseConsistency**](ResponseConsistency.md) | | [optional]
7
+ **request** | [**SearchRequest**](SearchRequest.md) | | [optional]
8
+ **facet_queries** | [**Array<ResultSetContextFacetQueries>**](ResultSetContextFacetQueries.md) | The counts from facet queries | [optional]
9
+ **facets_fields** | [**Array<ResultBuckets>**](ResultBuckets.md) | The counts from field facets | [optional]
10
+ **facets** | [**Array<GenericFacetResponse>**](GenericFacetResponse.md) | The faceted response | [optional]
11
+ **spellcheck** | [**Array<ResultSetContextSpellcheck>**](ResultSetContextSpellcheck.md) | Suggested corrections If zero results were found for the original query then a single entry of type \"searchInsteadFor\" will be returned. If alternatives were found that return more results than the original query they are returned as \"didYouMean\" options. The highest quality suggestion is first. | [optional]
12
+
13
+
@@ -0,0 +1,10 @@
1
+ # Alfresco::ResultSetContextFacetQueries
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **label** | **String** | | [optional]
7
+ **filter_query** | **String** | The filter query you can use to apply this facet | [optional]
8
+ **count** | **Integer** | | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # Alfresco::ResultSetContextSpellcheck
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **suggestion** | **Array<String>** | A suggested alternative query | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # Alfresco::ResultSetPaging
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **list** | [**ResultSetPagingList**](ResultSetPagingList.md) | | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # Alfresco::ResultSetPagingList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
7
+ **context** | [**ResultSetContext**](ResultSetContext.md) | | [optional]
8
+ **entries** | [**Array<ResultSetRowEntry>**](ResultSetRowEntry.md) | | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # Alfresco::ResultSetRowEntry
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **entry** | [**ResultNode**](ResultNode.md) | |
7
+
8
+
@@ -0,0 +1,62 @@
1
+ # Alfresco::SearchApi
2
+
3
+ All URIs are relative to *https://localhost/alfresco/api/-default-/public/search/versions/1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**search**](SearchApi.md#search) | **POST** /search | Searches Alfresco
8
+
9
+
10
+ # **search**
11
+ > ResultSetPaging search(query_body)
12
+
13
+ Searches Alfresco
14
+
15
+ **Note**: this endpoint is available in Alfresco 5.2 and newer versions. **You specify all the parameters in this API in a JSON body**, URL parameters are not supported. A basic query looks like this: ```JSON { \"query\": { \"query\": \"foo\" } } ``` **Note:** These are the minimum possible query parameters. The default search language is **afts** ([Alfresco Full Text Search](http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-intro.html)), but you can also specify **cmis**, and **lucene**. A basic CMIS query looks like this: ```JSON { \"query\": { \"query\": \"select * from cmis:folder\", \"language\": \"cmis\" } } ``` By default, **results are limited to the first 100.** Results can be restricted using \"paging\". For example: ```JSON \"paging\": { \"maxItems\": \"50\", \"skipCount\": \"28\" } ``` This example would ensure that results are **limited by Final Size**, skipping the first 28 results and returning the next 50. Alternatively, you can limit the results by using the **limits JSON body parameter**. For example, ```JSON \"limits\": { \"permissionEvaluationTime\": 20000, \"permissionEvaluationCount\": 2000 } ``` You can use the **include JSON body parameter** to return additional information. This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example: ```JSON \"include\": [\"aspectNames\", \"properties\", \"isLink\"] ``` You can use the **fields JSON body parameter** to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example: ```JSON \"fields\": [\"id\", \"name\", \"search\"] ``` You can sort the results using the **sort JSON body parameter**, for example: ```JSON \"sort\": [{\"type\":\"FIELD\", \"field\":\"cm:description\", \"ascending\":\"true\"}] ``` **Note:** the **sort** parameter is not supported for CMIS queries. By default, search uses the **\"nodes\" location**, which is the **content store known as workspace://SpacesStore**. To change the scope to another location you can use the **locations JSON body parameter**. You can specify either **nodes** (the default), **versions** or **deleted-nodes**. For example, ```JSON \"scope\": { \"locations\": [\"deleted-nodes\"] } ``` You can specify templates using the **templates JSON body parameter**, for example: ```JSON \"templates\": [{\"name\": \"_PERSON\",\"template\": \"|%firstName OR |%lastName OR |%userName\"}, {\"name\": \"mytemplate\",\"template\": \"%cm:content\"}] ``` **Note: Spell checking only works on Search Services (Solr 6) if you have already enabled suggestions.** For **spell checking** you can use a query like this: ```JSON { \"query\": { \"query\": \"cm:title:alfrezco\" }, \"spellcheck\": {\"query\": \"alfrezco\"} } ``` If you are already specifying \"userQuery\" then the following may be easier and produces the same result : ```JSON { \"query\": { \"query\": \"cm:title:alfrezco\", \"userQuery\": \"alfrezco\" }, \"spellcheck\": {} } ``` The spellcheck response includes a spellCheck context like this: ```JSON \"context\": { \"spellCheck\": { \"type\": \"searchInsteadFor\", \"suggestions\": [\"alfresco\"] } }, ``` To specify defaults, you use a **defaults JSON body parameter**, for example: ```JSON \"defaults\": { \"textAttributes\": [ \"cm:content\", \"cm:name\" ], \"defaultFTSOperator\": \"AND\", \"defaultFTSFieldOperator\": \"OR\", \"namespace\": \"cm\", \"defaultFieldName\": \"PATH\" } ``` You can specify several filter queries using the **filterQueries JSON body parameter**, for example: ```JSON \"filterQueries\": [{\"query\": \"TYPE:'cm:folder'\"},{\"query\": \"cm:creator:mjackson\"}] ``` You can specify several facet queries using the **facetQueries JSON body parameter**, for example: ```JSON \"facetQueries\": [{\"query\": \"created:2016\",\"label\": \"CreatedThisYear\"}] ``` The response will contain a matching \"context\" section, the \"label\" will match the facet query. ```JSON \"context\": { \"facetQueries\": [ {\"label\": \"CreatedThisYear\",\"count\": 3} ] }, ``` A complete query for facetting via the content.size field looks this: ```JSON { \"query\": { \"query\": \"presentation\", \"language\": \"afts\" }, \"facetQueries\": [ {\"query\": \"content.size:[0 TO 10240]\", \"label\": \"xtra small\"}, {\"query\": \"content.size:[10240 TO 102400]\", \"label\": \"small\"}, {\"query\": \"content.size:[102400 TO 1048576]\", \"label\": \"medium\"}, {\"query\": \"content.size:[1048576 TO 16777216]\", \"label\": \"large\"}, {\"query\": \"content.size:[16777216 TO 134217728]\", \"label\": \"xtra large\"}, {\"query\": \"content.size:[134217728 TO MAX]\", \"label\": \"XX large\"} ], \"facetFields\": {\"facets\": [{\"field\": \"'content.size'\"}]} } ``` The response will contain a matching \"context\" section, the \"label\" will match the facet query. ```JSON \"context\": { \"facetQueries\": [ { \"label\": \"small\",\"count\": 2 }, { \"label\": \"large\",\"count\": 0 }, { \"label\": \"xtra small\",\"count\": 5 }, { \"label\": \"xtra large\",\"count\": 56}, { \"label\": \"medium\",\"count\": 4 }, { \"label\": \"XX large\", \"count\": 1 } ] }, ``` You can specify several facet fields using the **facetFields JSON body parameter**, for example: ```JSON \"facetFields\": {\"facets\": [{\"field\": \"creator\", \"mincount\": 1}, {\"field\": \"modifier\", \"mincount\": 1}]} ``` The response will contain a matching \"context\" section, the \"label\" will match the facet field. ```JSON \"context\": { \"facetsFields\": [ { \"label\": \"creator\", \"buckets\": [ { \"label\": \"System\", \"count\": 75 }, { \"label\": \"mjackson\", \"count\": 5 } ]}, { \"label\": \"modifier\", \"buckets\": [ { \"label\": \"System\", \"count\": 72 }, { \"label\": \"mjackson\", \"count\": 5 }, { \"label\": \"admin\", \"count\": 3 } ]} ] }, ``` Grouping facet queries that go together can be done by specifying the group label in the fact queries as follow: ```JSON { \"query\": { \"query\": \"presentation\" }, \"facetQueries\": [ {\"query\": \"content.size:[0 TO 102400]\", \"label\": \"small\", \"group\":\"foo\"}, {\"query\": \"content.size:[102400 TO 1048576]\", \"label\": \"medium\",\"group\":\"foo\"}, {\"query\": \"content.size:[1048576 TO 16777216]\", \"label\": \"large\",\"group\":\"foo\"} ] } ``` The above query returns the results a faceted field grouped under the label foo: ```JSON { \"context\": {\"facetsFields\": [{ \"label\": \"foo\", \"buckets\": [ { \"count\": 109, \"label\": \"small\", \"filterQuery\": \"content.size:[0 TO 102400]\" }, { \"count\": 0, \"label\": \"large\", \"filterQuery\": \"content.size:[1048576 TO 16777216]\" }, { \"count\": 0, \"label\": \"medium\", \"filterQuery\": \"content.size:[102400 TO 1048576]\" } ] }] } ``` Range Faceting is supported by the **ranges JSON body parameter**, for example: ```JSON { \"query\": { \"query\": \"presentation\" }, \"ranges\": [ { \"field\": \"content.size\", \"start\": \"0\", \"end\": \"100\", \"gap\": \"20\", \"hardend\": true }, { \"field\": \"created\", \"start\": \"2015-09-29T10:45:15.729Z\", \"end\": \"2016-09-29T10:45:15.729Z\", \"gap\": \"+100DAY\" }] } ``` An example query for **search highlighting** could look like this: ```JSON { \"query\": { \"query\": \"description:workflow\", \"userQuery\":\"workflow\" }, \"highlight\": { \"prefix\": \"¿\", \"postfix\": \"?\", \"mergeContiguous\": true, \"fields\": [ { \"field\": \"cm:title\" }, { \"field\": \"description\", \"prefix\": \"(\", \"postfix\": \")\" } ] } } ``` The example above changes the highlighting prefix and postfix from the default <em> for all fields to ¿? and just for the \"description\" field to (). The hightlight information is added in each node entry response; here is an example partial response: ``` \"entry\": { \"createdAt\": \"2016-10-12T15:24:31.202+0000\", \"isFolder\": true, \"search\": { \"score\": 1, \"highlight\": [ { \"field\": \"cm:title\", \"snippets\": [ \"Customized ¿Workflow? Process Definitions\" ] }, { \"field\": \"description\", \"snippets\": [ \"Customized (Workflow) Process Definitions\" ] } ] }, ```
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'alfresco'
21
+ # setup authorization
22
+ Alfresco.configure do |config|
23
+ # Configure HTTP basic authorization: basicAuth
24
+ config.username = 'YOUR USERNAME'
25
+ config.password = 'YOUR PASSWORD'
26
+ end
27
+
28
+ api_instance = Alfresco::SearchApi.new
29
+
30
+ query_body = Alfresco::SearchRequest.new # SearchRequest | Generic query API
31
+
32
+
33
+ begin
34
+ #Searches Alfresco
35
+ result = api_instance.search(query_body)
36
+ p result
37
+ rescue Alfresco::ApiError => e
38
+ puts "Exception when calling SearchApi->search: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+ Name | Type | Description | Notes
45
+ ------------- | ------------- | ------------- | -------------
46
+ **query_body** | [**SearchRequest**](SearchRequest.md)| Generic query API |
47
+
48
+ ### Return type
49
+
50
+ [**ResultSetPaging**](ResultSetPaging.md)
51
+
52
+ ### Authorization
53
+
54
+ [basicAuth](../README.md#basicAuth)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json
59
+ - **Accept**: application/json
60
+
61
+
62
+