aylien_news_api 4.3.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/aylien_news_api.gemspec +1 -1
  3. data/docs/DefaultApi.md +205 -373
  4. data/docs/DeprecatedEntities.md +19 -0
  5. data/docs/DeprecatedEntity.md +33 -0
  6. data/docs/DeprecatedEntitySurfaceForm.md +21 -0
  7. data/docs/DeprecatedRelatedStories.md +27 -0
  8. data/docs/DeprecatedStories.md +25 -0
  9. data/docs/DeprecatedStory.md +61 -0
  10. data/docs/Entity.md +12 -10
  11. data/docs/EntityInText.md +19 -0
  12. data/docs/EntityMention.md +19 -0
  13. data/docs/EntityMentionIndex.md +19 -0
  14. data/docs/EntitySurfaceForm.md +4 -2
  15. data/docs/Parameter.md +12 -12
  16. data/docs/Story.md +1 -1
  17. data/lib/aylien_news_api.rb +4 -2
  18. data/lib/aylien_news_api/api/default_api.rb +297 -549
  19. data/lib/aylien_news_api/api_client.rb +1 -1
  20. data/lib/aylien_news_api/api_error.rb +1 -1
  21. data/lib/aylien_news_api/configuration.rb +1 -1
  22. data/lib/aylien_news_api/models/aggregated_sentiment.rb +1 -1
  23. data/lib/aylien_news_api/models/author.rb +1 -1
  24. data/lib/aylien_news_api/models/autocomplete.rb +1 -1
  25. data/lib/aylien_news_api/models/autocompletes.rb +1 -1
  26. data/lib/aylien_news_api/models/category.rb +1 -1
  27. data/lib/aylien_news_api/models/category_links.rb +1 -1
  28. data/lib/aylien_news_api/models/category_taxonomy.rb +1 -1
  29. data/lib/aylien_news_api/models/cluster.rb +1 -1
  30. data/lib/aylien_news_api/models/clusters.rb +1 -1
  31. data/lib/aylien_news_api/models/deprecated_entities.rb +221 -0
  32. data/lib/aylien_news_api/models/deprecated_entity.rb +314 -0
  33. data/lib/aylien_news_api/models/deprecated_entity_surface_form.rb +244 -0
  34. data/lib/aylien_news_api/models/deprecated_related_stories.rb +260 -0
  35. data/lib/aylien_news_api/models/deprecated_stories.rb +252 -0
  36. data/lib/aylien_news_api/models/deprecated_story.rb +429 -0
  37. data/lib/aylien_news_api/models/entity.rb +91 -45
  38. data/lib/aylien_news_api/models/entity_in_text.rb +217 -0
  39. data/lib/aylien_news_api/models/entity_links.rb +1 -1
  40. data/lib/aylien_news_api/models/entity_mention.rb +215 -0
  41. data/lib/aylien_news_api/models/entity_mention_index.rb +265 -0
  42. data/lib/aylien_news_api/models/entity_sentiment.rb +1 -1
  43. data/lib/aylien_news_api/models/entity_surface_form.rb +35 -10
  44. data/lib/aylien_news_api/models/error.rb +1 -1
  45. data/lib/aylien_news_api/models/error_links.rb +1 -1
  46. data/lib/aylien_news_api/models/errors.rb +1 -1
  47. data/lib/aylien_news_api/models/histogram_interval.rb +1 -1
  48. data/lib/aylien_news_api/models/histograms.rb +1 -1
  49. data/lib/aylien_news_api/models/location.rb +1 -1
  50. data/lib/aylien_news_api/models/logicals.rb +1 -1
  51. data/lib/aylien_news_api/models/media.rb +1 -1
  52. data/lib/aylien_news_api/models/media_format.rb +1 -1
  53. data/lib/aylien_news_api/models/media_type.rb +1 -1
  54. data/lib/aylien_news_api/models/nested_entity.rb +1 -1
  55. data/lib/aylien_news_api/models/parameter.rb +38 -38
  56. data/lib/aylien_news_api/models/query.rb +1 -1
  57. data/lib/aylien_news_api/models/rank.rb +1 -1
  58. data/lib/aylien_news_api/models/rankings.rb +1 -1
  59. data/lib/aylien_news_api/models/related_stories.rb +2 -1
  60. data/lib/aylien_news_api/models/representative_story.rb +1 -1
  61. data/lib/aylien_news_api/models/scope.rb +1 -1
  62. data/lib/aylien_news_api/models/scope_level.rb +1 -1
  63. data/lib/aylien_news_api/models/sentiment.rb +1 -1
  64. data/lib/aylien_news_api/models/sentiment_polarity.rb +1 -1
  65. data/lib/aylien_news_api/models/sentiments.rb +1 -1
  66. data/lib/aylien_news_api/models/share_count.rb +1 -1
  67. data/lib/aylien_news_api/models/share_counts.rb +1 -1
  68. data/lib/aylien_news_api/models/source.rb +1 -1
  69. data/lib/aylien_news_api/models/stories.rb +2 -1
  70. data/lib/aylien_news_api/models/story.rb +6 -3
  71. data/lib/aylien_news_api/models/story_cluster.rb +1 -1
  72. data/lib/aylien_news_api/models/story_links.rb +1 -1
  73. data/lib/aylien_news_api/models/story_translation.rb +1 -1
  74. data/lib/aylien_news_api/models/story_translations.rb +1 -1
  75. data/lib/aylien_news_api/models/summary.rb +1 -1
  76. data/lib/aylien_news_api/models/time_series.rb +1 -1
  77. data/lib/aylien_news_api/models/time_series_list.rb +1 -1
  78. data/lib/aylien_news_api/models/trend.rb +1 -1
  79. data/lib/aylien_news_api/models/trends.rb +1 -1
  80. data/lib/aylien_news_api/models/warning.rb +1 -1
  81. data/lib/aylien_news_api/version.rb +2 -2
  82. data/spec/api/default_api_spec.rb +109 -73
  83. data/spec/api_client_spec.rb +1 -1
  84. data/spec/configuration_spec.rb +1 -1
  85. data/spec/models/aggregated_sentiment_spec.rb +1 -1
  86. data/spec/models/author_spec.rb +1 -1
  87. data/spec/models/autocomplete_spec.rb +1 -1
  88. data/spec/models/autocompletes_spec.rb +1 -1
  89. data/spec/models/category_links_spec.rb +1 -1
  90. data/spec/models/category_spec.rb +1 -1
  91. data/spec/models/category_taxonomy_spec.rb +1 -1
  92. data/spec/models/cluster_spec.rb +1 -1
  93. data/spec/models/clusters_spec.rb +1 -1
  94. data/spec/models/deprecated_entities_spec.rb +47 -0
  95. data/spec/models/deprecated_entity_spec.rb +89 -0
  96. data/spec/models/deprecated_entity_surface_form_spec.rb +53 -0
  97. data/spec/models/deprecated_related_stories_spec.rb +71 -0
  98. data/spec/models/deprecated_stories_spec.rb +65 -0
  99. data/spec/models/deprecated_story_spec.rb +173 -0
  100. data/spec/models/entity_in_text_spec.rb +47 -0
  101. data/spec/models/entity_links_spec.rb +7 -1
  102. data/spec/models/entity_mention_index_spec.rb +47 -0
  103. data/spec/models/entity_mention_spec.rb +47 -0
  104. data/spec/models/entity_sentiment_spec.rb +1 -1
  105. data/spec/models/entity_spec.rb +24 -6
  106. data/spec/models/entity_surface_form_spec.rb +8 -2
  107. data/spec/models/error_links_spec.rb +1 -1
  108. data/spec/models/error_spec.rb +1 -1
  109. data/spec/models/errors_spec.rb +1 -1
  110. data/spec/models/histogram_interval_spec.rb +1 -1
  111. data/spec/models/histograms_spec.rb +1 -1
  112. data/spec/models/location_spec.rb +1 -1
  113. data/spec/models/logicals_spec.rb +1 -1
  114. data/spec/models/media_format_spec.rb +1 -1
  115. data/spec/models/media_spec.rb +1 -1
  116. data/spec/models/media_type_spec.rb +1 -1
  117. data/spec/models/nested_entity_spec.rb +20 -2
  118. data/spec/models/parameter_spec.rb +7 -7
  119. data/spec/models/query_spec.rb +1 -1
  120. data/spec/models/rank_spec.rb +1 -1
  121. data/spec/models/rankings_spec.rb +1 -1
  122. data/spec/models/related_stories_spec.rb +1 -1
  123. data/spec/models/representative_story_spec.rb +1 -1
  124. data/spec/models/scope_level_spec.rb +1 -1
  125. data/spec/models/scope_spec.rb +1 -1
  126. data/spec/models/sentiment_polarity_spec.rb +1 -1
  127. data/spec/models/sentiment_spec.rb +1 -1
  128. data/spec/models/sentiments_spec.rb +1 -1
  129. data/spec/models/share_count_spec.rb +1 -1
  130. data/spec/models/share_counts_spec.rb +1 -1
  131. data/spec/models/source_spec.rb +1 -1
  132. data/spec/models/stories_spec.rb +1 -1
  133. data/spec/models/story_cluster_spec.rb +1 -1
  134. data/spec/models/story_links_spec.rb +1 -1
  135. data/spec/models/story_spec.rb +7 -1
  136. data/spec/models/story_translation_spec.rb +1 -1
  137. data/spec/models/story_translations_spec.rb +1 -1
  138. data/spec/models/summary_spec.rb +1 -1
  139. data/spec/models/time_series_list_spec.rb +1 -1
  140. data/spec/models/time_series_spec.rb +7 -1
  141. data/spec/models/trend_spec.rb +7 -1
  142. data/spec/models/trends_spec.rb +1 -1
  143. data/spec/models/warning_spec.rb +1 -1
  144. data/spec/spec_helper.rb +1 -1
  145. metadata +38 -2
@@ -0,0 +1,19 @@
1
+ # AylienNewsApi::DeprecatedEntities
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **body** | [**Array<DeprecatedEntity>**](DeprecatedEntity.md) | An array of extracted entities from the story body | [optional]
8
+ **title** | [**Array<DeprecatedEntity>**](DeprecatedEntity.md) | An array of extracted entities from the story title | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'AylienNewsApi'
14
+
15
+ instance = AylienNewsApi::DeprecatedEntities.new(body: null,
16
+ title: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,33 @@
1
+ # AylienNewsApi::DeprecatedEntity
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | The unique ID of the entity | [optional]
8
+ **indices** | **Array<Array<Integer>>** | The indices of the entity text | [optional]
9
+ **links** | [**EntityLinks**](EntityLinks.md) | | [optional]
10
+ **text** | **String** | The entity text | [optional]
11
+ **stock_ticker** | **String** | The stock_ticker of the entity (might be null) | [optional]
12
+ **types** | **Array<String>** | An array of the entity types | [optional]
13
+ **sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional]
14
+ **surface_forms** | [**Array<DeprecatedEntitySurfaceForm>**](DeprecatedEntitySurfaceForm.md) | | [optional]
15
+ **prominence_score** | **Float** | Describes how relevant an entity is to the article | [optional]
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'AylienNewsApi'
21
+
22
+ instance = AylienNewsApi::DeprecatedEntity.new(id: null,
23
+ indices: null,
24
+ links: null,
25
+ text: null,
26
+ stock_ticker: null,
27
+ types: null,
28
+ sentiment: null,
29
+ surface_forms: null,
30
+ prominence_score: null)
31
+ ```
32
+
33
+
@@ -0,0 +1,21 @@
1
+ # AylienNewsApi::DeprecatedEntitySurfaceForm
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **text** | **String** | The entity text | [optional]
8
+ **indices** | **Array<Array<Integer>>** | The indices of the entity text | [optional]
9
+ **frequency** | **Integer** | Amount of entity surface form mentions in the article | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'AylienNewsApi'
15
+
16
+ instance = AylienNewsApi::DeprecatedEntitySurfaceForm.new(text: null,
17
+ indices: null,
18
+ frequency: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,27 @@
1
+ # AylienNewsApi::DeprecatedRelatedStories
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **related_stories** | [**Array<DeprecatedStory>**](DeprecatedStory.md) | An array of related stories for the input story | [optional]
8
+ **story_body** | **String** | The input story body | [optional]
9
+ **story_language** | **String** | The input story language | [optional]
10
+ **story_title** | **String** | The input story title | [optional]
11
+ **published_at_end** | **DateTime** | The end of a period in which searched stories were published | [optional]
12
+ **published_at_start** | **DateTime** | The start of a period in which searched stories were published | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'AylienNewsApi'
18
+
19
+ instance = AylienNewsApi::DeprecatedRelatedStories.new(related_stories: null,
20
+ story_body: null,
21
+ story_language: null,
22
+ story_title: null,
23
+ published_at_end: null,
24
+ published_at_start: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,25 @@
1
+ # AylienNewsApi::DeprecatedStories
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **next_page_cursor** | **String** | The next page cursor | [optional]
8
+ **stories** | [**Array<DeprecatedStory>**](DeprecatedStory.md) | An array of stories | [optional]
9
+ **published_at_end** | **DateTime** | The end of a period in which searched stories were published | [optional]
10
+ **published_at_start** | **DateTime** | The start of a period in which searched stories were published | [optional]
11
+ **warnings** | [**Array<Warning>**](Warning.md) | Notifies about possible issues that occurred when searching for stories | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'AylienNewsApi'
17
+
18
+ instance = AylienNewsApi::DeprecatedStories.new(next_page_cursor: null,
19
+ stories: null,
20
+ published_at_end: null,
21
+ published_at_start: null,
22
+ warnings: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,61 @@
1
+ # AylienNewsApi::DeprecatedStory
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **author** | [**Author**](Author.md) | | [optional]
8
+ **body** | **String** | Body of the story | [optional]
9
+ **categories** | [**Array<Category>**](Category.md) | Suggested categories for the story | [optional]
10
+ **characters_count** | **Integer** | Character count of the story body | [optional]
11
+ **clusters** | **Array<Integer>** | An array of clusters the story is associated with | [optional]
12
+ **entities** | [**DeprecatedEntities**](DeprecatedEntities.md) | | [optional]
13
+ **hashtags** | **Array<String>** | An array of suggested Story hashtags | [optional]
14
+ **id** | **Integer** | ID of the story which is a unique identification | [optional]
15
+ **keywords** | **Array<String>** | Extracted keywords mentioned in the story title or body | [optional]
16
+ **language** | **String** | Language of the story | [optional]
17
+ **links** | [**StoryLinks**](StoryLinks.md) | | [optional]
18
+ **media** | [**Array<Media>**](Media.md) | An array of extracted media such as images and videos | [optional]
19
+ **paragraphs_count** | **Integer** | Paragraph count of the story body | [optional]
20
+ **published_at** | **DateTime** | Published date of the story | [optional]
21
+ **sentences_count** | **Integer** | Sentence count of the story body | [optional]
22
+ **sentiment** | [**Sentiments**](Sentiments.md) | | [optional]
23
+ **social_shares_count** | [**ShareCounts**](ShareCounts.md) | | [optional]
24
+ **source** | [**Source**](Source.md) | | [optional]
25
+ **summary** | [**Summary**](Summary.md) | | [optional]
26
+ **title** | **String** | Title of the story | [optional]
27
+ **translations** | [**StoryTranslations**](StoryTranslations.md) | | [optional]
28
+ **words_count** | **Integer** | Word count of the story body | [optional]
29
+ **license_type** | **Integer** | License type of the story | [optional]
30
+
31
+ ## Code Sample
32
+
33
+ ```ruby
34
+ require 'AylienNewsApi'
35
+
36
+ instance = AylienNewsApi::DeprecatedStory.new(author: null,
37
+ body: null,
38
+ categories: null,
39
+ characters_count: null,
40
+ clusters: null,
41
+ entities: null,
42
+ hashtags: null,
43
+ id: null,
44
+ keywords: null,
45
+ language: null,
46
+ links: null,
47
+ media: null,
48
+ paragraphs_count: null,
49
+ published_at: null,
50
+ sentences_count: null,
51
+ sentiment: null,
52
+ social_shares_count: null,
53
+ source: null,
54
+ summary: null,
55
+ title: null,
56
+ translations: null,
57
+ words_count: null,
58
+ license_type: null)
59
+ ```
60
+
61
+
data/docs/Entity.md CHANGED
@@ -5,13 +5,14 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **id** | **String** | The unique ID of the entity | [optional]
8
- **indices** | **Array<Array<Integer>>** | The indices of the entity text | [optional]
9
8
  **links** | [**EntityLinks**](EntityLinks.md) | | [optional]
10
- **text** | **String** | The entity text | [optional]
11
- **stock_ticker** | **String** | The stock_ticker of the entity (might be null) | [optional]
9
+ **stock_tickers** | **Array<String>** | The stock tickers of the entity (might be empty) | [optional]
12
10
  **types** | **Array<String>** | An array of the entity types | [optional]
13
- **sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional]
14
- **surface_forms** | [**Array<EntitySurfaceForm>**](EntitySurfaceForm.md) | | [optional]
11
+ **overall_sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional]
12
+ **overall_prominence** | **Float** | Describes how relevant an entity is to the article | [optional]
13
+ **overall_frequency** | **Integer** | Amount of entity surface form mentions in the article | [optional]
14
+ **body** | [**EntityInText**](EntityInText.md) | | [optional]
15
+ **title** | [**EntityInText**](EntityInText.md) | | [optional]
15
16
 
16
17
  ## Code Sample
17
18
 
@@ -19,13 +20,14 @@ Name | Type | Description | Notes
19
20
  require 'AylienNewsApi'
20
21
 
21
22
  instance = AylienNewsApi::Entity.new(id: null,
22
- indices: null,
23
23
  links: null,
24
- text: null,
25
- stock_ticker: null,
24
+ stock_tickers: null,
26
25
  types: null,
27
- sentiment: null,
28
- surface_forms: null)
26
+ overall_sentiment: null,
27
+ overall_prominence: null,
28
+ overall_frequency: null,
29
+ body: null,
30
+ title: null)
29
31
  ```
30
32
 
31
33
 
@@ -0,0 +1,19 @@
1
+ # AylienNewsApi::EntityInText
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional]
8
+ **surface_forms** | [**Array<EntitySurfaceForm>**](EntitySurfaceForm.md) | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'AylienNewsApi'
14
+
15
+ instance = AylienNewsApi::EntityInText.new(sentiment: null,
16
+ surface_forms: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # AylienNewsApi::EntityMention
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **index** | [**EntityMentionIndex**](EntityMentionIndex.md) | | [optional]
8
+ **sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'AylienNewsApi'
14
+
15
+ instance = AylienNewsApi::EntityMention.new(index: null,
16
+ sentiment: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # AylienNewsApi::EntityMentionIndex
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **start** | **Integer** | Start index of a single entity mention in the text (counting from 0) |
8
+ **_end** | **Integer** | End index of a single entity mention in the text (counting from 0) |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'AylienNewsApi'
14
+
15
+ instance = AylienNewsApi::EntityMentionIndex.new(start: null,
16
+ _end: null)
17
+ ```
18
+
19
+
@@ -5,7 +5,8 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **text** | **String** | The entity text | [optional]
8
- **indices** | **Array<Array<Integer>>** | The indices of the entity text | [optional]
8
+ **frequency** | **Integer** | Amount of entity surface form mentions in the article | [optional]
9
+ **mentions** | [**Array<EntityMention>**](EntityMention.md) | Mentions of the entity text | [optional]
9
10
 
10
11
  ## Code Sample
11
12
 
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
13
14
  require 'AylienNewsApi'
14
15
 
15
16
  instance = AylienNewsApi::EntitySurfaceForm.new(text: null,
16
- indices: null)
17
+ frequency: null,
18
+ mentions: null)
17
19
  ```
18
20
 
19
21
 
data/docs/Parameter.md CHANGED
@@ -13,12 +13,12 @@ Name | Type | Description | Notes
13
13
  **categories_taxonomy** | [**Query**](Query.md) | | [optional]
14
14
  **clusters** | [**Query**](Query.md) | | [optional]
15
15
  **links_permalink** | [**Query**](Query.md) | | [optional]
16
- **entities_body_links_dbpedia** | [**Query**](Query.md) | | [optional]
17
- **entities_body_text** | [**Query**](Query.md) | | [optional]
18
- **entities_body_type** | [**Query**](Query.md) | | [optional]
19
- **entities_title_links_dbpedia** | [**Query**](Query.md) | | [optional]
20
- **entities_title_text** | [**Query**](Query.md) | | [optional]
21
- **entities_title_type** | [**Query**](Query.md) | | [optional]
16
+ **entities_id** | [**Query**](Query.md) | | [optional]
17
+ **entities_surface_forms_text** | [**Query**](Query.md) | | [optional]
18
+ **entities_links_wikipedia** | [**Query**](Query.md) | | [optional]
19
+ **entities_links_wikidata** | [**Query**](Query.md) | | [optional]
20
+ **entities_title_surface_forms_text** | [**Query**](Query.md) | | [optional]
21
+ **entities_body_surface_forms_text** | [**Query**](Query.md) | | [optional]
22
22
  **id** | [**Query**](Query.md) | | [optional]
23
23
  **language** | [**Query**](Query.md) | | [optional]
24
24
  **media_images_content_length_max** | [**Query**](Query.md) | | [optional]
@@ -75,12 +75,12 @@ instance = AylienNewsApi::Parameter.new(author_id: null,
75
75
  categories_taxonomy: null,
76
76
  clusters: null,
77
77
  links_permalink: null,
78
- entities_body_links_dbpedia: null,
79
- entities_body_text: null,
80
- entities_body_type: null,
81
- entities_title_links_dbpedia: null,
82
- entities_title_text: null,
83
- entities_title_type: null,
78
+ entities_id: null,
79
+ entities_surface_forms_text: null,
80
+ entities_links_wikipedia: null,
81
+ entities_links_wikidata: null,
82
+ entities_title_surface_forms_text: null,
83
+ entities_body_surface_forms_text: null,
84
84
  id: null,
85
85
  language: null,
86
86
  media_images_content_length_max: null,
data/docs/Story.md CHANGED
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
9
9
  **categories** | [**Array<Category>**](Category.md) | Suggested categories for the story | [optional]
10
10
  **characters_count** | **Integer** | Character count of the story body | [optional]
11
11
  **clusters** | **Array<Integer>** | An array of clusters the story is associated with | [optional]
12
- **entities** | [**Entities**](Entities.md) | | [optional]
12
+ **entities** | [**Array<Entity>**](Entity.md) | An array of entities | [optional]
13
13
  **hashtags** | **Array<String>** | An array of suggested Story hashtags | [optional]
14
14
  **id** | **Integer** | ID of the story which is a unique identification | [optional]
15
15
  **keywords** | **Array<String>** | Extracted keywords mentioned in the story title or body | [optional]
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 3.0
6
+ The version of the OpenAPI document: 5.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -26,9 +26,11 @@ require 'aylien_news_api/models/category_links'
26
26
  require 'aylien_news_api/models/category_taxonomy'
27
27
  require 'aylien_news_api/models/cluster'
28
28
  require 'aylien_news_api/models/clusters'
29
- require 'aylien_news_api/models/entities'
30
29
  require 'aylien_news_api/models/entity'
30
+ require 'aylien_news_api/models/entity_in_text'
31
31
  require 'aylien_news_api/models/entity_links'
32
+ require 'aylien_news_api/models/entity_mention'
33
+ require 'aylien_news_api/models/entity_mention_index'
32
34
  require 'aylien_news_api/models/entity_sentiment'
33
35
  require 'aylien_news_api/models/entity_surface_form'
34
36
  require 'aylien_news_api/models/error'
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 3.0
6
+ The version of the OpenAPI document: 5.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0-SNAPSHOT
@@ -154,7 +154,7 @@ module AylienNewsApi
154
154
  fail ArgumentError, "Missing the required parameter 'type' when calling DefaultApi.list_autocompletes"
155
155
  end
156
156
  # verify enum value
157
- allowable_values = ["source_names", "source_domains", "entity_types", "dbpedia_resources"]
157
+ allowable_values = ["source_names", "source_domains", "entity_types", "dbpedia_resources", "aylien_entities_names", "aylien_entities_types"]
158
158
  if @api_client.config.client_side_validation && !allowable_values.include?(type)
159
159
  fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
160
160
  end
@@ -381,38 +381,21 @@ module AylienNewsApi
381
381
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
382
382
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
383
383
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
384
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
385
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
386
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
387
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
388
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
389
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
390
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
391
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
392
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
393
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
394
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
395
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
396
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
397
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
398
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
399
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
400
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
401
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
384
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
385
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
386
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
387
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
388
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
389
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
390
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
391
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
392
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
393
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
402
394
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
403
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
404
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
405
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
406
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
407
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
408
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
409
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
410
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
411
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
412
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
413
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
414
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
415
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
395
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
396
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
397
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
398
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
416
399
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
417
400
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
418
401
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -467,6 +450,9 @@ module AylienNewsApi
467
450
  # @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
468
451
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
469
452
  # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
453
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
454
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query. (default to 'text')
455
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
470
456
  # @option opts [Integer] :interval_start This parameter is used for setting the start data point of histogram intervals.
471
457
  # @option opts [Integer] :interval_end This parameter is used for setting the end data point of histogram intervals.
472
458
  # @option opts [Integer] :interval_width This parameter is used for setting the width of histogram intervals.
@@ -502,38 +488,21 @@ module AylienNewsApi
502
488
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
503
489
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
504
490
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
505
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
506
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
507
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
508
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
509
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
510
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
511
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
512
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
513
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
514
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
515
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
516
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
517
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
518
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
519
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
520
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
521
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
522
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
491
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
492
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
493
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
494
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
495
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
496
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
497
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
498
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
499
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
500
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
523
501
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
524
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
525
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
526
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
527
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
528
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
529
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
530
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
531
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
532
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
533
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
534
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
535
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
536
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
502
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
503
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
504
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
505
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
537
506
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
538
507
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
539
508
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -588,6 +557,9 @@ module AylienNewsApi
588
557
  # @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
589
558
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
590
559
  # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
560
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
561
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query.
562
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
591
563
  # @option opts [Integer] :interval_start This parameter is used for setting the start data point of histogram intervals.
592
564
  # @option opts [Integer] :interval_end This parameter is used for setting the end data point of histogram intervals.
593
565
  # @option opts [Integer] :interval_width This parameter is used for setting the width of histogram intervals.
@@ -760,38 +732,21 @@ module AylienNewsApi
760
732
  query_params[:'!categories.label'] = opts[:'not_categories_label'] if !opts[:'not_categories_label'].nil?
761
733
  query_params[:'categories.level'] = opts[:'categories_level'] if !opts[:'categories_level'].nil?
762
734
  query_params[:'!categories.level'] = opts[:'not_categories_level'] if !opts[:'not_categories_level'].nil?
763
- query_params[:'entities.title.id'] = opts[:'entities_title_id'] if !opts[:'entities_title_id'].nil?
764
- query_params[:'!entities.title.id'] = opts[:'not_entities_title_id'] if !opts[:'not_entities_title_id'].nil?
735
+ query_params[:'entities.id'] = opts[:'entities_id'] if !opts[:'entities_id'].nil?
736
+ query_params[:'!entities.id'] = opts[:'not_entities_id'] if !opts[:'not_entities_id'].nil?
737
+ query_params[:'entities.links.wikipedia'] = opts[:'entities_links_wikipedia'] if !opts[:'entities_links_wikipedia'].nil?
738
+ query_params[:'!entities.links.wikipedia'] = opts[:'not_entities_links_wikipedia'] if !opts[:'not_entities_links_wikipedia'].nil?
739
+ query_params[:'entities.links.wikidata'] = opts[:'entities_links_wikidata'] if !opts[:'entities_links_wikidata'].nil?
740
+ query_params[:'!entities.links.wikidata'] = opts[:'not_entities_links_wikidata'] if !opts[:'not_entities_links_wikidata'].nil?
741
+ query_params[:'entities.types'] = opts[:'entities_types'] if !opts[:'entities_types'].nil?
742
+ query_params[:'!entities.types'] = opts[:'not_entities_types'] if !opts[:'not_entities_types'].nil?
743
+ query_params[:'entities.stock_tickers'] = opts[:'entities_stock_tickers'] if !opts[:'entities_stock_tickers'].nil?
744
+ query_params[:'!entities.body.stock_tickers'] = opts[:'entities_body_stock_tickers'] if !opts[:'entities_body_stock_tickers'].nil?
745
+ query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
746
+ query_params[:'!entities.surface_forms.text'] = opts[:'entities_surface_forms_text'] if !opts[:'entities_surface_forms_text'].nil?
765
747
  query_params[:'entities.title.surface_forms.text'] = opts[:'entities_title_surface_forms_text'] if !opts[:'entities_title_surface_forms_text'].nil?
766
748
  query_params[:'!entities.title.surface_forms.text'] = opts[:'not_entities_title_surface_forms_text'] if !opts[:'not_entities_title_surface_forms_text'].nil?
767
- query_params[:'entities.title.text'] = opts[:'entities_title_text'] if !opts[:'entities_title_text'].nil?
768
- query_params[:'!entities.title.text'] = opts[:'not_entities_title_text'] if !opts[:'not_entities_title_text'].nil?
769
- query_params[:'entities.title.type'] = opts[:'entities_title_type'] if !opts[:'entities_title_type'].nil?
770
- query_params[:'!entities.title.type'] = opts[:'not_entities_title_type'] if !opts[:'not_entities_title_type'].nil?
771
- query_params[:'entities.title.stock_ticker'] = opts[:'entities_title_stock_ticker'] if !opts[:'entities_title_stock_ticker'].nil?
772
- query_params[:'!entities.title.stock_ticker'] = opts[:'not_entities_title_stock_ticker'] if !opts[:'not_entities_title_stock_ticker'].nil?
773
- query_params[:'entities.title.links.dbpedia'] = opts[:'entities_title_links_dbpedia'] if !opts[:'entities_title_links_dbpedia'].nil?
774
- query_params[:'!entities.title.links.dbpedia'] = opts[:'not_entities_title_links_dbpedia'] if !opts[:'not_entities_title_links_dbpedia'].nil?
775
- query_params[:'entities.title.links.wikipedia'] = opts[:'entities_title_links_wikipedia'] if !opts[:'entities_title_links_wikipedia'].nil?
776
- query_params[:'!entities.title.links.wikipedia'] = opts[:'not_entities_title_links_wikipedia'] if !opts[:'not_entities_title_links_wikipedia'].nil?
777
- query_params[:'entities.title.links.wikidata'] = opts[:'entities_title_links_wikidata'] if !opts[:'entities_title_links_wikidata'].nil?
778
- query_params[:'!entities.title.links.wikidata'] = opts[:'not_entities_title_links_wikidata'] if !opts[:'not_entities_title_links_wikidata'].nil?
779
- query_params[:'entities.body.id'] = opts[:'entities_body_id'] if !opts[:'entities_body_id'].nil?
780
- query_params[:'!entities.body.id'] = opts[:'not_entities_body_id'] if !opts[:'not_entities_body_id'].nil?
781
- query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
782
749
  query_params[:'!entities.body.surface_forms.text'] = opts[:'not_entities_body_surface_forms_text'] if !opts[:'not_entities_body_surface_forms_text'].nil?
783
- query_params[:'entities.body.text'] = opts[:'entities_body_text'] if !opts[:'entities_body_text'].nil?
784
- query_params[:'!entities.body.text'] = opts[:'not_entities_body_text'] if !opts[:'not_entities_body_text'].nil?
785
- query_params[:'entities.body.type'] = opts[:'entities_body_type'] if !opts[:'entities_body_type'].nil?
786
- query_params[:'!entities.body.type'] = opts[:'not_entities_body_type'] if !opts[:'not_entities_body_type'].nil?
787
- query_params[:'entities.body.stock_ticker'] = opts[:'entities_body_stock_ticker'] if !opts[:'entities_body_stock_ticker'].nil?
788
- query_params[:'!entities.body.stock_ticker'] = opts[:'not_entities_body_stock_ticker'] if !opts[:'not_entities_body_stock_ticker'].nil?
789
- query_params[:'entities.body.links.dbpedia'] = opts[:'entities_body_links_dbpedia'] if !opts[:'entities_body_links_dbpedia'].nil?
790
- query_params[:'!entities.body.links.dbpedia'] = opts[:'not_entities_body_links_dbpedia'] if !opts[:'not_entities_body_links_dbpedia'].nil?
791
- query_params[:'entities.body.links.wikipedia'] = opts[:'entities_body_links_wikipedia'] if !opts[:'entities_body_links_wikipedia'].nil?
792
- query_params[:'!entities.body.links.wikipedia'] = opts[:'not_entities_body_links_wikipedia'] if !opts[:'not_entities_body_links_wikipedia'].nil?
793
- query_params[:'entities.body.links.wikidata'] = opts[:'entities_body_links_wikidata'] if !opts[:'entities_body_links_wikidata'].nil?
794
- query_params[:'!entities.body.links.wikidata'] = opts[:'not_entities_body_links_wikidata'] if !opts[:'not_entities_body_links_wikidata'].nil?
795
750
  query_params[:'sentiment.title.polarity'] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
796
751
  query_params[:'!sentiment.title.polarity'] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
797
752
  query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
@@ -846,6 +801,9 @@ module AylienNewsApi
846
801
  query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
847
802
  query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
848
803
  query_params[:'clusters'] = opts[:'clusters'] if !opts[:'clusters'].nil?
804
+ query_params[:'aql'] = opts[:'aql'] if !opts[:'aql'].nil?
805
+ query_params[:'aql_default_field'] = opts[:'aql_default_field'] if !opts[:'aql_default_field'].nil?
806
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
849
807
  query_params[:'interval.start'] = opts[:'interval_start'] if !opts[:'interval_start'].nil?
850
808
  query_params[:'interval.end'] = opts[:'interval_end'] if !opts[:'interval_end'].nil?
851
809
  query_params[:'interval.width'] = opts[:'interval_width'] if !opts[:'interval_width'].nil?
@@ -907,38 +865,21 @@ module AylienNewsApi
907
865
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
908
866
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
909
867
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
910
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
911
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
912
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
913
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
914
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
915
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
916
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
917
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
918
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
919
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
920
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
921
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
922
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
923
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
924
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
925
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
926
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
927
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
868
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
869
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
870
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
871
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
872
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
873
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
874
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
875
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
876
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
877
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
928
878
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
929
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
930
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
931
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
932
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
933
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
934
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
935
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
936
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
937
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
938
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
939
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
940
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
941
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
879
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
880
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
881
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
882
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
942
883
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
943
884
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
944
885
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -998,6 +939,9 @@ module AylienNewsApi
998
939
  # @option opts [String] :story_url An article or webpage
999
940
  # @option opts [String] :story_title Title of the article
1000
941
  # @option opts [String] :story_body Body of the article
942
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
943
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query. (default to 'text')
944
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
1001
945
  # @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
1002
946
  # @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes. (default to 'auto')
1003
947
  # @option opts [Integer] :per_page This parameter is used for specifying number of items in each page. (default to 3)
@@ -1030,38 +974,21 @@ module AylienNewsApi
1030
974
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1031
975
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1032
976
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1033
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1034
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1035
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1036
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1037
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1038
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1039
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1040
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1041
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1042
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1043
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1044
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1045
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1046
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1047
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1048
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1049
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1050
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
977
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
978
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
979
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
980
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
981
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
982
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
983
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
984
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
985
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
986
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1051
987
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1052
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1053
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1054
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1055
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1056
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1057
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1058
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1059
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1060
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1061
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1062
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1063
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1064
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
988
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
989
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
990
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
991
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1065
992
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
1066
993
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
1067
994
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -1121,6 +1048,9 @@ module AylienNewsApi
1121
1048
  # @option opts [String] :story_url An article or webpage
1122
1049
  # @option opts [String] :story_title Title of the article
1123
1050
  # @option opts [String] :story_body Body of the article
1051
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
1052
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query.
1053
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
1124
1054
  # @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
1125
1055
  # @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
1126
1056
  # @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
@@ -1308,38 +1238,21 @@ module AylienNewsApi
1308
1238
  query_params[:'!categories.label'] = opts[:'not_categories_label'] if !opts[:'not_categories_label'].nil?
1309
1239
  query_params[:'categories.level'] = opts[:'categories_level'] if !opts[:'categories_level'].nil?
1310
1240
  query_params[:'!categories.level'] = opts[:'not_categories_level'] if !opts[:'not_categories_level'].nil?
1311
- query_params[:'entities.title.id'] = opts[:'entities_title_id'] if !opts[:'entities_title_id'].nil?
1312
- query_params[:'!entities.title.id'] = opts[:'not_entities_title_id'] if !opts[:'not_entities_title_id'].nil?
1241
+ query_params[:'entities.id'] = opts[:'entities_id'] if !opts[:'entities_id'].nil?
1242
+ query_params[:'!entities.id'] = opts[:'not_entities_id'] if !opts[:'not_entities_id'].nil?
1243
+ query_params[:'entities.links.wikipedia'] = opts[:'entities_links_wikipedia'] if !opts[:'entities_links_wikipedia'].nil?
1244
+ query_params[:'!entities.links.wikipedia'] = opts[:'not_entities_links_wikipedia'] if !opts[:'not_entities_links_wikipedia'].nil?
1245
+ query_params[:'entities.links.wikidata'] = opts[:'entities_links_wikidata'] if !opts[:'entities_links_wikidata'].nil?
1246
+ query_params[:'!entities.links.wikidata'] = opts[:'not_entities_links_wikidata'] if !opts[:'not_entities_links_wikidata'].nil?
1247
+ query_params[:'entities.types'] = opts[:'entities_types'] if !opts[:'entities_types'].nil?
1248
+ query_params[:'!entities.types'] = opts[:'not_entities_types'] if !opts[:'not_entities_types'].nil?
1249
+ query_params[:'entities.stock_tickers'] = opts[:'entities_stock_tickers'] if !opts[:'entities_stock_tickers'].nil?
1250
+ query_params[:'!entities.body.stock_tickers'] = opts[:'entities_body_stock_tickers'] if !opts[:'entities_body_stock_tickers'].nil?
1251
+ query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
1252
+ query_params[:'!entities.surface_forms.text'] = opts[:'entities_surface_forms_text'] if !opts[:'entities_surface_forms_text'].nil?
1313
1253
  query_params[:'entities.title.surface_forms.text'] = opts[:'entities_title_surface_forms_text'] if !opts[:'entities_title_surface_forms_text'].nil?
1314
1254
  query_params[:'!entities.title.surface_forms.text'] = opts[:'not_entities_title_surface_forms_text'] if !opts[:'not_entities_title_surface_forms_text'].nil?
1315
- query_params[:'entities.title.text'] = opts[:'entities_title_text'] if !opts[:'entities_title_text'].nil?
1316
- query_params[:'!entities.title.text'] = opts[:'not_entities_title_text'] if !opts[:'not_entities_title_text'].nil?
1317
- query_params[:'entities.title.type'] = opts[:'entities_title_type'] if !opts[:'entities_title_type'].nil?
1318
- query_params[:'!entities.title.type'] = opts[:'not_entities_title_type'] if !opts[:'not_entities_title_type'].nil?
1319
- query_params[:'entities.title.stock_ticker'] = opts[:'entities_title_stock_ticker'] if !opts[:'entities_title_stock_ticker'].nil?
1320
- query_params[:'!entities.title.stock_ticker'] = opts[:'not_entities_title_stock_ticker'] if !opts[:'not_entities_title_stock_ticker'].nil?
1321
- query_params[:'entities.title.links.dbpedia'] = opts[:'entities_title_links_dbpedia'] if !opts[:'entities_title_links_dbpedia'].nil?
1322
- query_params[:'!entities.title.links.dbpedia'] = opts[:'not_entities_title_links_dbpedia'] if !opts[:'not_entities_title_links_dbpedia'].nil?
1323
- query_params[:'entities.title.links.wikipedia'] = opts[:'entities_title_links_wikipedia'] if !opts[:'entities_title_links_wikipedia'].nil?
1324
- query_params[:'!entities.title.links.wikipedia'] = opts[:'not_entities_title_links_wikipedia'] if !opts[:'not_entities_title_links_wikipedia'].nil?
1325
- query_params[:'entities.title.links.wikidata'] = opts[:'entities_title_links_wikidata'] if !opts[:'entities_title_links_wikidata'].nil?
1326
- query_params[:'!entities.title.links.wikidata'] = opts[:'not_entities_title_links_wikidata'] if !opts[:'not_entities_title_links_wikidata'].nil?
1327
- query_params[:'entities.body.id'] = opts[:'entities_body_id'] if !opts[:'entities_body_id'].nil?
1328
- query_params[:'!entities.body.id'] = opts[:'not_entities_body_id'] if !opts[:'not_entities_body_id'].nil?
1329
- query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
1330
1255
  query_params[:'!entities.body.surface_forms.text'] = opts[:'not_entities_body_surface_forms_text'] if !opts[:'not_entities_body_surface_forms_text'].nil?
1331
- query_params[:'entities.body.text'] = opts[:'entities_body_text'] if !opts[:'entities_body_text'].nil?
1332
- query_params[:'!entities.body.text'] = opts[:'not_entities_body_text'] if !opts[:'not_entities_body_text'].nil?
1333
- query_params[:'entities.body.type'] = opts[:'entities_body_type'] if !opts[:'entities_body_type'].nil?
1334
- query_params[:'!entities.body.type'] = opts[:'not_entities_body_type'] if !opts[:'not_entities_body_type'].nil?
1335
- query_params[:'entities.body.stock_ticker'] = opts[:'entities_body_stock_ticker'] if !opts[:'entities_body_stock_ticker'].nil?
1336
- query_params[:'!entities.body.stock_ticker'] = opts[:'not_entities_body_stock_ticker'] if !opts[:'not_entities_body_stock_ticker'].nil?
1337
- query_params[:'entities.body.links.dbpedia'] = opts[:'entities_body_links_dbpedia'] if !opts[:'entities_body_links_dbpedia'].nil?
1338
- query_params[:'!entities.body.links.dbpedia'] = opts[:'not_entities_body_links_dbpedia'] if !opts[:'not_entities_body_links_dbpedia'].nil?
1339
- query_params[:'entities.body.links.wikipedia'] = opts[:'entities_body_links_wikipedia'] if !opts[:'entities_body_links_wikipedia'].nil?
1340
- query_params[:'!entities.body.links.wikipedia'] = opts[:'not_entities_body_links_wikipedia'] if !opts[:'not_entities_body_links_wikipedia'].nil?
1341
- query_params[:'entities.body.links.wikidata'] = opts[:'entities_body_links_wikidata'] if !opts[:'entities_body_links_wikidata'].nil?
1342
- query_params[:'!entities.body.links.wikidata'] = opts[:'not_entities_body_links_wikidata'] if !opts[:'not_entities_body_links_wikidata'].nil?
1343
1256
  query_params[:'sentiment.title.polarity'] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
1344
1257
  query_params[:'!sentiment.title.polarity'] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
1345
1258
  query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
@@ -1399,6 +1312,9 @@ module AylienNewsApi
1399
1312
  query_params[:'story_url'] = opts[:'story_url'] if !opts[:'story_url'].nil?
1400
1313
  query_params[:'story_title'] = opts[:'story_title'] if !opts[:'story_title'].nil?
1401
1314
  query_params[:'story_body'] = opts[:'story_body'] if !opts[:'story_body'].nil?
1315
+ query_params[:'aql'] = opts[:'aql'] if !opts[:'aql'].nil?
1316
+ query_params[:'aql_default_field'] = opts[:'aql_default_field'] if !opts[:'aql_default_field'].nil?
1317
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
1402
1318
  query_params[:'boost_by'] = opts[:'boost_by'] if !opts[:'boost_by'].nil?
1403
1319
  query_params[:'story_language'] = opts[:'story_language'] if !opts[:'story_language'].nil?
1404
1320
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
@@ -1459,38 +1375,21 @@ module AylienNewsApi
1459
1375
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1460
1376
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1461
1377
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1462
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1463
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1464
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1465
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1466
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1467
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1468
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1469
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1470
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1471
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1472
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1473
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1474
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1475
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1476
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1477
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1478
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1479
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1378
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1379
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1380
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1381
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1382
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1383
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1384
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1385
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1386
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1387
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1480
1388
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1481
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1482
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1483
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1484
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1485
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1486
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1487
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1488
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1489
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1490
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1491
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1492
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1493
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1389
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1390
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1391
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1392
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1494
1393
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
1495
1394
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
1496
1395
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -1550,6 +1449,9 @@ module AylienNewsApi
1550
1449
  # @option opts [String] :story_url An article or webpage
1551
1450
  # @option opts [String] :story_title Title of the article
1552
1451
  # @option opts [String] :story_body Body of the article
1452
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
1453
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query. (default to 'text')
1454
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
1553
1455
  # @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
1554
1456
  # @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes. (default to 'auto')
1555
1457
  # @option opts [Integer] :per_page This parameter is used for specifying number of items in each page. (default to 3)
@@ -1582,38 +1484,21 @@ module AylienNewsApi
1582
1484
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1583
1485
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1584
1486
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1585
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1586
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1587
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1588
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1589
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1590
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1591
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1592
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1593
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1594
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1595
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1596
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1597
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1598
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1599
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1600
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1601
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1602
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1487
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1488
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1489
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1490
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1491
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1492
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1493
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1494
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1495
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1496
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1603
1497
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1604
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1605
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1606
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1607
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1608
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1609
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1610
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1611
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1612
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1613
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1614
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1615
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1616
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1498
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1499
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1500
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1501
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1617
1502
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
1618
1503
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
1619
1504
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -1673,6 +1558,9 @@ module AylienNewsApi
1673
1558
  # @option opts [String] :story_url An article or webpage
1674
1559
  # @option opts [String] :story_title Title of the article
1675
1560
  # @option opts [String] :story_body Body of the article
1561
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
1562
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query.
1563
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
1676
1564
  # @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
1677
1565
  # @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
1678
1566
  # @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
@@ -1860,38 +1748,21 @@ module AylienNewsApi
1860
1748
  query_params[:'!categories.label'] = opts[:'not_categories_label'] if !opts[:'not_categories_label'].nil?
1861
1749
  query_params[:'categories.level'] = opts[:'categories_level'] if !opts[:'categories_level'].nil?
1862
1750
  query_params[:'!categories.level'] = opts[:'not_categories_level'] if !opts[:'not_categories_level'].nil?
1863
- query_params[:'entities.title.id'] = opts[:'entities_title_id'] if !opts[:'entities_title_id'].nil?
1864
- query_params[:'!entities.title.id'] = opts[:'not_entities_title_id'] if !opts[:'not_entities_title_id'].nil?
1751
+ query_params[:'entities.id'] = opts[:'entities_id'] if !opts[:'entities_id'].nil?
1752
+ query_params[:'!entities.id'] = opts[:'not_entities_id'] if !opts[:'not_entities_id'].nil?
1753
+ query_params[:'entities.links.wikipedia'] = opts[:'entities_links_wikipedia'] if !opts[:'entities_links_wikipedia'].nil?
1754
+ query_params[:'!entities.links.wikipedia'] = opts[:'not_entities_links_wikipedia'] if !opts[:'not_entities_links_wikipedia'].nil?
1755
+ query_params[:'entities.links.wikidata'] = opts[:'entities_links_wikidata'] if !opts[:'entities_links_wikidata'].nil?
1756
+ query_params[:'!entities.links.wikidata'] = opts[:'not_entities_links_wikidata'] if !opts[:'not_entities_links_wikidata'].nil?
1757
+ query_params[:'entities.types'] = opts[:'entities_types'] if !opts[:'entities_types'].nil?
1758
+ query_params[:'!entities.types'] = opts[:'not_entities_types'] if !opts[:'not_entities_types'].nil?
1759
+ query_params[:'entities.stock_tickers'] = opts[:'entities_stock_tickers'] if !opts[:'entities_stock_tickers'].nil?
1760
+ query_params[:'!entities.body.stock_tickers'] = opts[:'entities_body_stock_tickers'] if !opts[:'entities_body_stock_tickers'].nil?
1761
+ query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
1762
+ query_params[:'!entities.surface_forms.text'] = opts[:'entities_surface_forms_text'] if !opts[:'entities_surface_forms_text'].nil?
1865
1763
  query_params[:'entities.title.surface_forms.text'] = opts[:'entities_title_surface_forms_text'] if !opts[:'entities_title_surface_forms_text'].nil?
1866
1764
  query_params[:'!entities.title.surface_forms.text'] = opts[:'not_entities_title_surface_forms_text'] if !opts[:'not_entities_title_surface_forms_text'].nil?
1867
- query_params[:'entities.title.text'] = opts[:'entities_title_text'] if !opts[:'entities_title_text'].nil?
1868
- query_params[:'!entities.title.text'] = opts[:'not_entities_title_text'] if !opts[:'not_entities_title_text'].nil?
1869
- query_params[:'entities.title.type'] = opts[:'entities_title_type'] if !opts[:'entities_title_type'].nil?
1870
- query_params[:'!entities.title.type'] = opts[:'not_entities_title_type'] if !opts[:'not_entities_title_type'].nil?
1871
- query_params[:'entities.title.stock_ticker'] = opts[:'entities_title_stock_ticker'] if !opts[:'entities_title_stock_ticker'].nil?
1872
- query_params[:'!entities.title.stock_ticker'] = opts[:'not_entities_title_stock_ticker'] if !opts[:'not_entities_title_stock_ticker'].nil?
1873
- query_params[:'entities.title.links.dbpedia'] = opts[:'entities_title_links_dbpedia'] if !opts[:'entities_title_links_dbpedia'].nil?
1874
- query_params[:'!entities.title.links.dbpedia'] = opts[:'not_entities_title_links_dbpedia'] if !opts[:'not_entities_title_links_dbpedia'].nil?
1875
- query_params[:'entities.title.links.wikipedia'] = opts[:'entities_title_links_wikipedia'] if !opts[:'entities_title_links_wikipedia'].nil?
1876
- query_params[:'!entities.title.links.wikipedia'] = opts[:'not_entities_title_links_wikipedia'] if !opts[:'not_entities_title_links_wikipedia'].nil?
1877
- query_params[:'entities.title.links.wikidata'] = opts[:'entities_title_links_wikidata'] if !opts[:'entities_title_links_wikidata'].nil?
1878
- query_params[:'!entities.title.links.wikidata'] = opts[:'not_entities_title_links_wikidata'] if !opts[:'not_entities_title_links_wikidata'].nil?
1879
- query_params[:'entities.body.id'] = opts[:'entities_body_id'] if !opts[:'entities_body_id'].nil?
1880
- query_params[:'!entities.body.id'] = opts[:'not_entities_body_id'] if !opts[:'not_entities_body_id'].nil?
1881
- query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
1882
1765
  query_params[:'!entities.body.surface_forms.text'] = opts[:'not_entities_body_surface_forms_text'] if !opts[:'not_entities_body_surface_forms_text'].nil?
1883
- query_params[:'entities.body.text'] = opts[:'entities_body_text'] if !opts[:'entities_body_text'].nil?
1884
- query_params[:'!entities.body.text'] = opts[:'not_entities_body_text'] if !opts[:'not_entities_body_text'].nil?
1885
- query_params[:'entities.body.type'] = opts[:'entities_body_type'] if !opts[:'entities_body_type'].nil?
1886
- query_params[:'!entities.body.type'] = opts[:'not_entities_body_type'] if !opts[:'not_entities_body_type'].nil?
1887
- query_params[:'entities.body.stock_ticker'] = opts[:'entities_body_stock_ticker'] if !opts[:'entities_body_stock_ticker'].nil?
1888
- query_params[:'!entities.body.stock_ticker'] = opts[:'not_entities_body_stock_ticker'] if !opts[:'not_entities_body_stock_ticker'].nil?
1889
- query_params[:'entities.body.links.dbpedia'] = opts[:'entities_body_links_dbpedia'] if !opts[:'entities_body_links_dbpedia'].nil?
1890
- query_params[:'!entities.body.links.dbpedia'] = opts[:'not_entities_body_links_dbpedia'] if !opts[:'not_entities_body_links_dbpedia'].nil?
1891
- query_params[:'entities.body.links.wikipedia'] = opts[:'entities_body_links_wikipedia'] if !opts[:'entities_body_links_wikipedia'].nil?
1892
- query_params[:'!entities.body.links.wikipedia'] = opts[:'not_entities_body_links_wikipedia'] if !opts[:'not_entities_body_links_wikipedia'].nil?
1893
- query_params[:'entities.body.links.wikidata'] = opts[:'entities_body_links_wikidata'] if !opts[:'entities_body_links_wikidata'].nil?
1894
- query_params[:'!entities.body.links.wikidata'] = opts[:'not_entities_body_links_wikidata'] if !opts[:'not_entities_body_links_wikidata'].nil?
1895
1766
  query_params[:'sentiment.title.polarity'] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
1896
1767
  query_params[:'!sentiment.title.polarity'] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
1897
1768
  query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
@@ -1951,6 +1822,9 @@ module AylienNewsApi
1951
1822
  query_params[:'story_url'] = opts[:'story_url'] if !opts[:'story_url'].nil?
1952
1823
  query_params[:'story_title'] = opts[:'story_title'] if !opts[:'story_title'].nil?
1953
1824
  query_params[:'story_body'] = opts[:'story_body'] if !opts[:'story_body'].nil?
1825
+ query_params[:'aql'] = opts[:'aql'] if !opts[:'aql'].nil?
1826
+ query_params[:'aql_default_field'] = opts[:'aql_default_field'] if !opts[:'aql_default_field'].nil?
1827
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
1954
1828
  query_params[:'boost_by'] = opts[:'boost_by'] if !opts[:'boost_by'].nil?
1955
1829
  query_params[:'story_language'] = opts[:'story_language'] if !opts[:'story_language'].nil?
1956
1830
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
@@ -2013,38 +1887,21 @@ module AylienNewsApi
2013
1887
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2014
1888
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2015
1889
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2016
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2017
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2018
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2019
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2020
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2021
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2022
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2023
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2024
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2025
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2026
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2027
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2028
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2029
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2030
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2031
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2032
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2033
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1890
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1891
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1892
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1893
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1894
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1895
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1896
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1897
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1898
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1899
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2034
1900
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2035
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2036
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2037
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2038
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2039
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2040
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2041
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2042
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2043
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2044
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2045
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2046
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2047
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1901
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1902
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1903
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1904
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2048
1905
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
2049
1906
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
2050
1907
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -2100,6 +1957,9 @@ module AylienNewsApi
2100
1957
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
2101
1958
  # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
2102
1959
  # @option opts [Array<String>] :_return This parameter is used for specifying return fields.
1960
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
1961
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query. (default to 'text')
1962
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
2103
1963
  # @option opts [String] :sort_by This parameter is used for changing the order column of the results. You can read about sorting results [here](https://newsapi.aylien.com/docs/sorting-results). (default to 'published_at')
2104
1964
  # @option opts [String] :sort_direction This parameter is used for changing the order direction of the result. You can read about sorting results [here](https://newsapi.aylien.com/docs/sorting-results). (default to 'desc')
2105
1965
  # @option opts [String] :cursor This parameter is used for finding a specific page. You can read more about pagination of results [here](https://newsapi.aylien.com/docs/pagination-of-results). (default to '*')
@@ -2135,38 +1995,21 @@ module AylienNewsApi
2135
1995
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2136
1996
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2137
1997
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2138
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2139
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2140
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2141
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2142
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2143
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2144
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2145
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2146
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2147
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2148
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2149
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2150
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2151
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2152
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2153
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2154
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2155
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1998
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1999
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2000
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2001
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2002
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2003
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2004
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2005
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2006
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2007
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2156
2008
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2157
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2158
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2159
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2160
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2161
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2162
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2163
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2164
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2165
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2166
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2167
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2168
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2169
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2009
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2010
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2011
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2012
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2170
2013
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
2171
2014
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
2172
2015
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -2222,6 +2065,9 @@ module AylienNewsApi
2222
2065
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
2223
2066
  # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
2224
2067
  # @option opts [Array<String>] :_return This parameter is used for specifying return fields.
2068
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
2069
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query.
2070
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
2225
2071
  # @option opts [String] :sort_by This parameter is used for changing the order column of the results. You can read about sorting results [here](https://newsapi.aylien.com/docs/sorting-results).
2226
2072
  # @option opts [String] :sort_direction This parameter is used for changing the order direction of the result. You can read about sorting results [here](https://newsapi.aylien.com/docs/sorting-results).
2227
2073
  # @option opts [String] :cursor This parameter is used for finding a specific page. You can read more about pagination of results [here](https://newsapi.aylien.com/docs/pagination-of-results).
@@ -2410,38 +2256,21 @@ module AylienNewsApi
2410
2256
  query_params[:'!categories.label'] = opts[:'not_categories_label'] if !opts[:'not_categories_label'].nil?
2411
2257
  query_params[:'categories.level'] = opts[:'categories_level'] if !opts[:'categories_level'].nil?
2412
2258
  query_params[:'!categories.level'] = opts[:'not_categories_level'] if !opts[:'not_categories_level'].nil?
2413
- query_params[:'entities.title.id'] = opts[:'entities_title_id'] if !opts[:'entities_title_id'].nil?
2414
- query_params[:'!entities.title.id'] = opts[:'not_entities_title_id'] if !opts[:'not_entities_title_id'].nil?
2259
+ query_params[:'entities.id'] = opts[:'entities_id'] if !opts[:'entities_id'].nil?
2260
+ query_params[:'!entities.id'] = opts[:'not_entities_id'] if !opts[:'not_entities_id'].nil?
2261
+ query_params[:'entities.links.wikipedia'] = opts[:'entities_links_wikipedia'] if !opts[:'entities_links_wikipedia'].nil?
2262
+ query_params[:'!entities.links.wikipedia'] = opts[:'not_entities_links_wikipedia'] if !opts[:'not_entities_links_wikipedia'].nil?
2263
+ query_params[:'entities.links.wikidata'] = opts[:'entities_links_wikidata'] if !opts[:'entities_links_wikidata'].nil?
2264
+ query_params[:'!entities.links.wikidata'] = opts[:'not_entities_links_wikidata'] if !opts[:'not_entities_links_wikidata'].nil?
2265
+ query_params[:'entities.types'] = opts[:'entities_types'] if !opts[:'entities_types'].nil?
2266
+ query_params[:'!entities.types'] = opts[:'not_entities_types'] if !opts[:'not_entities_types'].nil?
2267
+ query_params[:'entities.stock_tickers'] = opts[:'entities_stock_tickers'] if !opts[:'entities_stock_tickers'].nil?
2268
+ query_params[:'!entities.body.stock_tickers'] = opts[:'entities_body_stock_tickers'] if !opts[:'entities_body_stock_tickers'].nil?
2269
+ query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
2270
+ query_params[:'!entities.surface_forms.text'] = opts[:'entities_surface_forms_text'] if !opts[:'entities_surface_forms_text'].nil?
2415
2271
  query_params[:'entities.title.surface_forms.text'] = opts[:'entities_title_surface_forms_text'] if !opts[:'entities_title_surface_forms_text'].nil?
2416
2272
  query_params[:'!entities.title.surface_forms.text'] = opts[:'not_entities_title_surface_forms_text'] if !opts[:'not_entities_title_surface_forms_text'].nil?
2417
- query_params[:'entities.title.text'] = opts[:'entities_title_text'] if !opts[:'entities_title_text'].nil?
2418
- query_params[:'!entities.title.text'] = opts[:'not_entities_title_text'] if !opts[:'not_entities_title_text'].nil?
2419
- query_params[:'entities.title.type'] = opts[:'entities_title_type'] if !opts[:'entities_title_type'].nil?
2420
- query_params[:'!entities.title.type'] = opts[:'not_entities_title_type'] if !opts[:'not_entities_title_type'].nil?
2421
- query_params[:'entities.title.stock_ticker'] = opts[:'entities_title_stock_ticker'] if !opts[:'entities_title_stock_ticker'].nil?
2422
- query_params[:'!entities.title.stock_ticker'] = opts[:'not_entities_title_stock_ticker'] if !opts[:'not_entities_title_stock_ticker'].nil?
2423
- query_params[:'entities.title.links.dbpedia'] = opts[:'entities_title_links_dbpedia'] if !opts[:'entities_title_links_dbpedia'].nil?
2424
- query_params[:'!entities.title.links.dbpedia'] = opts[:'not_entities_title_links_dbpedia'] if !opts[:'not_entities_title_links_dbpedia'].nil?
2425
- query_params[:'entities.title.links.wikipedia'] = opts[:'entities_title_links_wikipedia'] if !opts[:'entities_title_links_wikipedia'].nil?
2426
- query_params[:'!entities.title.links.wikipedia'] = opts[:'not_entities_title_links_wikipedia'] if !opts[:'not_entities_title_links_wikipedia'].nil?
2427
- query_params[:'entities.title.links.wikidata'] = opts[:'entities_title_links_wikidata'] if !opts[:'entities_title_links_wikidata'].nil?
2428
- query_params[:'!entities.title.links.wikidata'] = opts[:'not_entities_title_links_wikidata'] if !opts[:'not_entities_title_links_wikidata'].nil?
2429
- query_params[:'entities.body.id'] = opts[:'entities_body_id'] if !opts[:'entities_body_id'].nil?
2430
- query_params[:'!entities.body.id'] = opts[:'not_entities_body_id'] if !opts[:'not_entities_body_id'].nil?
2431
- query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
2432
2273
  query_params[:'!entities.body.surface_forms.text'] = opts[:'not_entities_body_surface_forms_text'] if !opts[:'not_entities_body_surface_forms_text'].nil?
2433
- query_params[:'entities.body.text'] = opts[:'entities_body_text'] if !opts[:'entities_body_text'].nil?
2434
- query_params[:'!entities.body.text'] = opts[:'not_entities_body_text'] if !opts[:'not_entities_body_text'].nil?
2435
- query_params[:'entities.body.type'] = opts[:'entities_body_type'] if !opts[:'entities_body_type'].nil?
2436
- query_params[:'!entities.body.type'] = opts[:'not_entities_body_type'] if !opts[:'not_entities_body_type'].nil?
2437
- query_params[:'entities.body.stock_ticker'] = opts[:'entities_body_stock_ticker'] if !opts[:'entities_body_stock_ticker'].nil?
2438
- query_params[:'!entities.body.stock_ticker'] = opts[:'not_entities_body_stock_ticker'] if !opts[:'not_entities_body_stock_ticker'].nil?
2439
- query_params[:'entities.body.links.dbpedia'] = opts[:'entities_body_links_dbpedia'] if !opts[:'entities_body_links_dbpedia'].nil?
2440
- query_params[:'!entities.body.links.dbpedia'] = opts[:'not_entities_body_links_dbpedia'] if !opts[:'not_entities_body_links_dbpedia'].nil?
2441
- query_params[:'entities.body.links.wikipedia'] = opts[:'entities_body_links_wikipedia'] if !opts[:'entities_body_links_wikipedia'].nil?
2442
- query_params[:'!entities.body.links.wikipedia'] = opts[:'not_entities_body_links_wikipedia'] if !opts[:'not_entities_body_links_wikipedia'].nil?
2443
- query_params[:'entities.body.links.wikidata'] = opts[:'entities_body_links_wikidata'] if !opts[:'entities_body_links_wikidata'].nil?
2444
- query_params[:'!entities.body.links.wikidata'] = opts[:'not_entities_body_links_wikidata'] if !opts[:'not_entities_body_links_wikidata'].nil?
2445
2274
  query_params[:'sentiment.title.polarity'] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
2446
2275
  query_params[:'!sentiment.title.polarity'] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
2447
2276
  query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
@@ -2497,6 +2326,9 @@ module AylienNewsApi
2497
2326
  query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
2498
2327
  query_params[:'clusters'] = opts[:'clusters'] if !opts[:'clusters'].nil?
2499
2328
  query_params[:'return'] = opts[:'_return'] if !opts[:'_return'].nil?
2329
+ query_params[:'aql'] = opts[:'aql'] if !opts[:'aql'].nil?
2330
+ query_params[:'aql_default_field'] = opts[:'aql_default_field'] if !opts[:'aql_default_field'].nil?
2331
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
2500
2332
  query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
2501
2333
  query_params[:'sort_direction'] = opts[:'sort_direction'] if !opts[:'sort_direction'].nil?
2502
2334
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
@@ -2556,38 +2388,21 @@ module AylienNewsApi
2556
2388
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2557
2389
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2558
2390
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2559
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2560
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2561
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2562
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2563
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2564
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2565
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2566
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2567
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2568
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2569
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2570
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2571
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2572
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2573
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2574
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2575
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2576
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2391
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2392
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2393
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2394
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2395
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2396
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2397
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2398
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2399
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2400
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2577
2401
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2578
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2579
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2580
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2581
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2582
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2583
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2584
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2585
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2586
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2587
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2588
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2589
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2590
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2402
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2403
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2404
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2405
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2591
2406
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
2592
2407
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
2593
2408
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -2642,6 +2457,9 @@ module AylienNewsApi
2642
2457
  # @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
2643
2458
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
2644
2459
  # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
2460
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
2461
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query. (default to 'text')
2462
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
2645
2463
  # @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates). (default to 'NOW-7DAYS/DAY')
2646
2464
  # @option opts [String] :published_at_end This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates). (default to 'NOW/DAY')
2647
2465
  # @option opts [String] :period The size of each date range is expressed as an interval to be added to the lower bound. It supports Date Math Syntax. Valid options are &#x60;+&#x60; following an integer number greater than 0 and one of the Date Math keywords. e.g. &#x60;+1DAY&#x60;, &#x60;+2MINUTES&#x60; and &#x60;+1MONTH&#x60;. Here are [Supported keywords](https://newsapi.aylien.com/docs/working-with-dates#date-math). (default to '+1DAY')
@@ -2672,38 +2490,21 @@ module AylienNewsApi
2672
2490
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2673
2491
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2674
2492
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
2675
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2676
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2677
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2678
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2679
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2680
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2681
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2682
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2683
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2684
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2685
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2686
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2687
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2688
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2689
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2690
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2691
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2692
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2493
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2494
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2495
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2496
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2497
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2498
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2499
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2500
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2501
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2502
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2693
2503
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2694
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2695
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2696
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2697
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2698
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2699
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2700
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2701
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2702
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2703
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2704
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2705
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2706
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2504
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2505
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2506
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2507
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2707
2508
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
2708
2509
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
2709
2510
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -2758,6 +2559,9 @@ module AylienNewsApi
2758
2559
  # @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
2759
2560
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
2760
2561
  # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
2562
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
2563
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query.
2564
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
2761
2565
  # @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
2762
2566
  # @option opts [String] :published_at_end This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
2763
2567
  # @option opts [String] :period The size of each date range is expressed as an interval to be added to the lower bound. It supports Date Math Syntax. Valid options are &#x60;+&#x60; following an integer number greater than 0 and one of the Date Math keywords. e.g. &#x60;+1DAY&#x60;, &#x60;+2MINUTES&#x60; and &#x60;+1MONTH&#x60;. Here are [Supported keywords](https://newsapi.aylien.com/docs/working-with-dates#date-math).
@@ -2921,38 +2725,21 @@ module AylienNewsApi
2921
2725
  query_params[:'!categories.label'] = opts[:'not_categories_label'] if !opts[:'not_categories_label'].nil?
2922
2726
  query_params[:'categories.level'] = opts[:'categories_level'] if !opts[:'categories_level'].nil?
2923
2727
  query_params[:'!categories.level'] = opts[:'not_categories_level'] if !opts[:'not_categories_level'].nil?
2924
- query_params[:'entities.title.id'] = opts[:'entities_title_id'] if !opts[:'entities_title_id'].nil?
2925
- query_params[:'!entities.title.id'] = opts[:'not_entities_title_id'] if !opts[:'not_entities_title_id'].nil?
2728
+ query_params[:'entities.id'] = opts[:'entities_id'] if !opts[:'entities_id'].nil?
2729
+ query_params[:'!entities.id'] = opts[:'not_entities_id'] if !opts[:'not_entities_id'].nil?
2730
+ query_params[:'entities.links.wikipedia'] = opts[:'entities_links_wikipedia'] if !opts[:'entities_links_wikipedia'].nil?
2731
+ query_params[:'!entities.links.wikipedia'] = opts[:'not_entities_links_wikipedia'] if !opts[:'not_entities_links_wikipedia'].nil?
2732
+ query_params[:'entities.links.wikidata'] = opts[:'entities_links_wikidata'] if !opts[:'entities_links_wikidata'].nil?
2733
+ query_params[:'!entities.links.wikidata'] = opts[:'not_entities_links_wikidata'] if !opts[:'not_entities_links_wikidata'].nil?
2734
+ query_params[:'entities.types'] = opts[:'entities_types'] if !opts[:'entities_types'].nil?
2735
+ query_params[:'!entities.types'] = opts[:'not_entities_types'] if !opts[:'not_entities_types'].nil?
2736
+ query_params[:'entities.stock_tickers'] = opts[:'entities_stock_tickers'] if !opts[:'entities_stock_tickers'].nil?
2737
+ query_params[:'!entities.body.stock_tickers'] = opts[:'entities_body_stock_tickers'] if !opts[:'entities_body_stock_tickers'].nil?
2738
+ query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
2739
+ query_params[:'!entities.surface_forms.text'] = opts[:'entities_surface_forms_text'] if !opts[:'entities_surface_forms_text'].nil?
2926
2740
  query_params[:'entities.title.surface_forms.text'] = opts[:'entities_title_surface_forms_text'] if !opts[:'entities_title_surface_forms_text'].nil?
2927
2741
  query_params[:'!entities.title.surface_forms.text'] = opts[:'not_entities_title_surface_forms_text'] if !opts[:'not_entities_title_surface_forms_text'].nil?
2928
- query_params[:'entities.title.text'] = opts[:'entities_title_text'] if !opts[:'entities_title_text'].nil?
2929
- query_params[:'!entities.title.text'] = opts[:'not_entities_title_text'] if !opts[:'not_entities_title_text'].nil?
2930
- query_params[:'entities.title.type'] = opts[:'entities_title_type'] if !opts[:'entities_title_type'].nil?
2931
- query_params[:'!entities.title.type'] = opts[:'not_entities_title_type'] if !opts[:'not_entities_title_type'].nil?
2932
- query_params[:'entities.title.stock_ticker'] = opts[:'entities_title_stock_ticker'] if !opts[:'entities_title_stock_ticker'].nil?
2933
- query_params[:'!entities.title.stock_ticker'] = opts[:'not_entities_title_stock_ticker'] if !opts[:'not_entities_title_stock_ticker'].nil?
2934
- query_params[:'entities.title.links.dbpedia'] = opts[:'entities_title_links_dbpedia'] if !opts[:'entities_title_links_dbpedia'].nil?
2935
- query_params[:'!entities.title.links.dbpedia'] = opts[:'not_entities_title_links_dbpedia'] if !opts[:'not_entities_title_links_dbpedia'].nil?
2936
- query_params[:'entities.title.links.wikipedia'] = opts[:'entities_title_links_wikipedia'] if !opts[:'entities_title_links_wikipedia'].nil?
2937
- query_params[:'!entities.title.links.wikipedia'] = opts[:'not_entities_title_links_wikipedia'] if !opts[:'not_entities_title_links_wikipedia'].nil?
2938
- query_params[:'entities.title.links.wikidata'] = opts[:'entities_title_links_wikidata'] if !opts[:'entities_title_links_wikidata'].nil?
2939
- query_params[:'!entities.title.links.wikidata'] = opts[:'not_entities_title_links_wikidata'] if !opts[:'not_entities_title_links_wikidata'].nil?
2940
- query_params[:'entities.body.id'] = opts[:'entities_body_id'] if !opts[:'entities_body_id'].nil?
2941
- query_params[:'!entities.body.id'] = opts[:'not_entities_body_id'] if !opts[:'not_entities_body_id'].nil?
2942
- query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
2943
2742
  query_params[:'!entities.body.surface_forms.text'] = opts[:'not_entities_body_surface_forms_text'] if !opts[:'not_entities_body_surface_forms_text'].nil?
2944
- query_params[:'entities.body.text'] = opts[:'entities_body_text'] if !opts[:'entities_body_text'].nil?
2945
- query_params[:'!entities.body.text'] = opts[:'not_entities_body_text'] if !opts[:'not_entities_body_text'].nil?
2946
- query_params[:'entities.body.type'] = opts[:'entities_body_type'] if !opts[:'entities_body_type'].nil?
2947
- query_params[:'!entities.body.type'] = opts[:'not_entities_body_type'] if !opts[:'not_entities_body_type'].nil?
2948
- query_params[:'entities.body.stock_ticker'] = opts[:'entities_body_stock_ticker'] if !opts[:'entities_body_stock_ticker'].nil?
2949
- query_params[:'!entities.body.stock_ticker'] = opts[:'not_entities_body_stock_ticker'] if !opts[:'not_entities_body_stock_ticker'].nil?
2950
- query_params[:'entities.body.links.dbpedia'] = opts[:'entities_body_links_dbpedia'] if !opts[:'entities_body_links_dbpedia'].nil?
2951
- query_params[:'!entities.body.links.dbpedia'] = opts[:'not_entities_body_links_dbpedia'] if !opts[:'not_entities_body_links_dbpedia'].nil?
2952
- query_params[:'entities.body.links.wikipedia'] = opts[:'entities_body_links_wikipedia'] if !opts[:'entities_body_links_wikipedia'].nil?
2953
- query_params[:'!entities.body.links.wikipedia'] = opts[:'not_entities_body_links_wikipedia'] if !opts[:'not_entities_body_links_wikipedia'].nil?
2954
- query_params[:'entities.body.links.wikidata'] = opts[:'entities_body_links_wikidata'] if !opts[:'entities_body_links_wikidata'].nil?
2955
- query_params[:'!entities.body.links.wikidata'] = opts[:'not_entities_body_links_wikidata'] if !opts[:'not_entities_body_links_wikidata'].nil?
2956
2743
  query_params[:'sentiment.title.polarity'] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
2957
2744
  query_params[:'!sentiment.title.polarity'] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
2958
2745
  query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
@@ -3007,6 +2794,9 @@ module AylienNewsApi
3007
2794
  query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
3008
2795
  query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
3009
2796
  query_params[:'clusters'] = opts[:'clusters'] if !opts[:'clusters'].nil?
2797
+ query_params[:'aql'] = opts[:'aql'] if !opts[:'aql'].nil?
2798
+ query_params[:'aql_default_field'] = opts[:'aql_default_field'] if !opts[:'aql_default_field'].nil?
2799
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
3010
2800
  query_params[:'published_at.start'] = opts[:'published_at_start'] if !opts[:'published_at_start'].nil?
3011
2801
  query_params[:'published_at.end'] = opts[:'published_at_end'] if !opts[:'published_at_end'].nil?
3012
2802
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
@@ -3070,38 +2860,21 @@ module AylienNewsApi
3070
2860
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
3071
2861
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
3072
2862
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
3073
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3074
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3075
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3076
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3077
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3078
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3079
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3080
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3081
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3082
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3083
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3084
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3085
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3086
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3087
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3088
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3089
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3090
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2863
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2864
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2865
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2866
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2867
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2868
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2869
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2870
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2871
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2872
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3091
2873
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3092
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3093
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3094
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3095
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3096
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3097
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3098
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3099
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3100
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3101
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3102
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3103
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3104
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2874
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2875
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2876
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2877
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3105
2878
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
3106
2879
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
3107
2880
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -3156,6 +2929,9 @@ module AylienNewsApi
3156
2929
  # @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
3157
2930
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
3158
2931
  # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
2932
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
2933
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query. (default to 'text')
2934
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
3159
2935
  # @return [Trends]
3160
2936
  def list_trends(field, opts = {})
3161
2937
  data, _status_code, _headers = list_trends_with_http_info(field, opts)
@@ -3188,38 +2964,21 @@ module AylienNewsApi
3188
2964
  # @option opts [Array<String>] :not_categories_label This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
3189
2965
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
3190
2966
  # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
3191
- # @option opts [Array<String>] :entities_title_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the title of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3192
- # @option opts [Array<String>] :not_entities_title_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3193
- # @option opts [Array<String>] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3194
- # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3195
- # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3196
- # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3197
- # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3198
- # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3199
- # @option opts [Array<String>] :entities_title_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3200
- # @option opts [Array<String>] :not_entities_title_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3201
- # @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3202
- # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3203
- # @option opts [Array<String>] :entities_title_links_wikipedia This parameter is used to find stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3204
- # @option opts [Array<String>] :not_entities_title_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3205
- # @option opts [Array<String>] :entities_title_links_wikidata This parameter is used to find stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3206
- # @option opts [Array<String>] :not_entities_title_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3207
- # @option opts [Array<String>] :entities_body_id This parameter is used to find stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3208
- # @option opts [Array<String>] :not_entities_body_id This parameter is used to exclude stories based on the specified entities &#x60;id&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2967
+ # @option opts [Array<String>] :entities_id This parameter is used to find stories based on the specified entities &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2968
+ # @option opts [Array<String>] :not_entities_id This parameter is used to exclude stories based on the specified entity&#39;s &#x60;id&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2969
+ # @option opts [Array<String>] :entities_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2970
+ # @option opts [Array<String>] :not_entities_links_wikipedia This parameter is used to exclude stories based on the specified entity&#39;s Wikipedia URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2971
+ # @option opts [Array<String>] :entities_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2972
+ # @option opts [Array<String>] :not_entities_links_wikidata This parameter is used to exclude stories based on the specified entity&#39;s Wikidata URL. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2973
+ # @option opts [Array<String>] :entities_types This parameter is used to find stories based on the specified entities &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2974
+ # @option opts [Array<String>] :not_entities_types This parameter is used to exclude stories based on the specified entity&#39;s &#x60;types&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2975
+ # @option opts [Array<String>] :entities_stock_tickers This parameter is used to find stories based on the specified entities &#x60;stock_tickers&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2976
+ # @option opts [Array<String>] :entities_body_stock_tickers This parameter is used to exclude stories based on the specified entity&#39;s &#x60;stock_tickers&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3209
2977
  # @option opts [Array<String>] :entities_body_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3210
- # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entities &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3211
- # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3212
- # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3213
- # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3214
- # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3215
- # @option opts [Array<String>] :entities_body_stock_ticker This parameter is used to find stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3216
- # @option opts [Array<String>] :not_entities_body_stock_ticker This parameter is used to exclude stories based on the specified entities &#x60;stock_ticker&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3217
- # @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3218
- # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3219
- # @option opts [Array<String>] :entities_body_links_wikipedia This parameter is used to find stories based on the specified entities wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3220
- # @option opts [Array<String>] :not_entities_body_links_wikipedia This parameter is used to exclude stories based on the specified entities Wikipedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3221
- # @option opts [Array<String>] :entities_body_links_wikidata This parameter is used to find stories based on the specified entities wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3222
- # @option opts [Array<String>] :not_entities_body_links_wikidata This parameter is used to exclude stories based on the specified entities Wikidata URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2978
+ # @option opts [Array<String>] :entities_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60;. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2979
+ # @option opts [String] :entities_title_surface_forms_text This parameter is used to find stories based on the specified entities &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2980
+ # @option opts [Array<String>] :not_entities_title_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2981
+ # @option opts [Array<String>] :not_entities_body_surface_forms_text This parameter is used to exclude stories based on the specified entity&#39;s &#x60;surface_form&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
3223
2982
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
3224
2983
  # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
3225
2984
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
@@ -3274,6 +3033,9 @@ module AylienNewsApi
3274
3033
  # @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
3275
3034
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
3276
3035
  # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
3036
+ # @option opts [String] :aql This parameter is used to supply a query in AYLIEN Query Language.
3037
+ # @option opts [String] :aql_default_field This parameter is used to supply an optional default field name used in the AQL query.
3038
+ # @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
3277
3039
  # @return [Array<(Trends, Integer, Hash)>] Trends data, response status code and response headers
3278
3040
  def list_trends_with_http_info(field, opts = {})
3279
3041
  if @api_client.config.debugging
@@ -3284,7 +3046,7 @@ module AylienNewsApi
3284
3046
  fail ArgumentError, "Missing the required parameter 'field' when calling DefaultApi.list_trends"
3285
3047
  end
3286
3048
  # verify enum value
3287
- allowable_values = ["author.name", "source.name", "source.domain", "keywords", "entities.title.text", "entities.title.type", "entities.title.links.dbpedia", "entities.body.text", "entities.body.type", "entities.body.links.dbpedia", "entities.title.sentiment", "entities.body.sentiment", "entities.sentiment", "hashtags", "categories.id", "sentiment.title.polarity", "sentiment.body.polarity", "clusters"]
3049
+ allowable_values = ["author.name", "source.name", "source.domain", "keywords", "entities.id", "entities.surface_forms.text", "entities.links.wikipedia", "entities.links.wikidata", "entities.title.surface_forms.text", "entities.body.surface_forms.text", "hashtags", "categories.id", "sentiment.title.polarity", "sentiment.body.polarity", "clusters"]
3288
3050
  if @api_client.config.client_side_validation && !allowable_values.include?(field)
3289
3051
  fail ArgumentError, "invalid value for \"field\", must be one of #{allowable_values}"
3290
3052
  end
@@ -3448,38 +3210,21 @@ module AylienNewsApi
3448
3210
  query_params[:'!categories.label'] = opts[:'not_categories_label'] if !opts[:'not_categories_label'].nil?
3449
3211
  query_params[:'categories.level'] = opts[:'categories_level'] if !opts[:'categories_level'].nil?
3450
3212
  query_params[:'!categories.level'] = opts[:'not_categories_level'] if !opts[:'not_categories_level'].nil?
3451
- query_params[:'entities.title.id'] = opts[:'entities_title_id'] if !opts[:'entities_title_id'].nil?
3452
- query_params[:'!entities.title.id'] = opts[:'not_entities_title_id'] if !opts[:'not_entities_title_id'].nil?
3213
+ query_params[:'entities.id'] = opts[:'entities_id'] if !opts[:'entities_id'].nil?
3214
+ query_params[:'!entities.id'] = opts[:'not_entities_id'] if !opts[:'not_entities_id'].nil?
3215
+ query_params[:'entities.links.wikipedia'] = opts[:'entities_links_wikipedia'] if !opts[:'entities_links_wikipedia'].nil?
3216
+ query_params[:'!entities.links.wikipedia'] = opts[:'not_entities_links_wikipedia'] if !opts[:'not_entities_links_wikipedia'].nil?
3217
+ query_params[:'entities.links.wikidata'] = opts[:'entities_links_wikidata'] if !opts[:'entities_links_wikidata'].nil?
3218
+ query_params[:'!entities.links.wikidata'] = opts[:'not_entities_links_wikidata'] if !opts[:'not_entities_links_wikidata'].nil?
3219
+ query_params[:'entities.types'] = opts[:'entities_types'] if !opts[:'entities_types'].nil?
3220
+ query_params[:'!entities.types'] = opts[:'not_entities_types'] if !opts[:'not_entities_types'].nil?
3221
+ query_params[:'entities.stock_tickers'] = opts[:'entities_stock_tickers'] if !opts[:'entities_stock_tickers'].nil?
3222
+ query_params[:'!entities.body.stock_tickers'] = opts[:'entities_body_stock_tickers'] if !opts[:'entities_body_stock_tickers'].nil?
3223
+ query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
3224
+ query_params[:'!entities.surface_forms.text'] = opts[:'entities_surface_forms_text'] if !opts[:'entities_surface_forms_text'].nil?
3453
3225
  query_params[:'entities.title.surface_forms.text'] = opts[:'entities_title_surface_forms_text'] if !opts[:'entities_title_surface_forms_text'].nil?
3454
3226
  query_params[:'!entities.title.surface_forms.text'] = opts[:'not_entities_title_surface_forms_text'] if !opts[:'not_entities_title_surface_forms_text'].nil?
3455
- query_params[:'entities.title.text'] = opts[:'entities_title_text'] if !opts[:'entities_title_text'].nil?
3456
- query_params[:'!entities.title.text'] = opts[:'not_entities_title_text'] if !opts[:'not_entities_title_text'].nil?
3457
- query_params[:'entities.title.type'] = opts[:'entities_title_type'] if !opts[:'entities_title_type'].nil?
3458
- query_params[:'!entities.title.type'] = opts[:'not_entities_title_type'] if !opts[:'not_entities_title_type'].nil?
3459
- query_params[:'entities.title.stock_ticker'] = opts[:'entities_title_stock_ticker'] if !opts[:'entities_title_stock_ticker'].nil?
3460
- query_params[:'!entities.title.stock_ticker'] = opts[:'not_entities_title_stock_ticker'] if !opts[:'not_entities_title_stock_ticker'].nil?
3461
- query_params[:'entities.title.links.dbpedia'] = opts[:'entities_title_links_dbpedia'] if !opts[:'entities_title_links_dbpedia'].nil?
3462
- query_params[:'!entities.title.links.dbpedia'] = opts[:'not_entities_title_links_dbpedia'] if !opts[:'not_entities_title_links_dbpedia'].nil?
3463
- query_params[:'entities.title.links.wikipedia'] = opts[:'entities_title_links_wikipedia'] if !opts[:'entities_title_links_wikipedia'].nil?
3464
- query_params[:'!entities.title.links.wikipedia'] = opts[:'not_entities_title_links_wikipedia'] if !opts[:'not_entities_title_links_wikipedia'].nil?
3465
- query_params[:'entities.title.links.wikidata'] = opts[:'entities_title_links_wikidata'] if !opts[:'entities_title_links_wikidata'].nil?
3466
- query_params[:'!entities.title.links.wikidata'] = opts[:'not_entities_title_links_wikidata'] if !opts[:'not_entities_title_links_wikidata'].nil?
3467
- query_params[:'entities.body.id'] = opts[:'entities_body_id'] if !opts[:'entities_body_id'].nil?
3468
- query_params[:'!entities.body.id'] = opts[:'not_entities_body_id'] if !opts[:'not_entities_body_id'].nil?
3469
- query_params[:'entities.body.surface_forms.text'] = opts[:'entities_body_surface_forms_text'] if !opts[:'entities_body_surface_forms_text'].nil?
3470
3227
  query_params[:'!entities.body.surface_forms.text'] = opts[:'not_entities_body_surface_forms_text'] if !opts[:'not_entities_body_surface_forms_text'].nil?
3471
- query_params[:'entities.body.text'] = opts[:'entities_body_text'] if !opts[:'entities_body_text'].nil?
3472
- query_params[:'!entities.body.text'] = opts[:'not_entities_body_text'] if !opts[:'not_entities_body_text'].nil?
3473
- query_params[:'entities.body.type'] = opts[:'entities_body_type'] if !opts[:'entities_body_type'].nil?
3474
- query_params[:'!entities.body.type'] = opts[:'not_entities_body_type'] if !opts[:'not_entities_body_type'].nil?
3475
- query_params[:'entities.body.stock_ticker'] = opts[:'entities_body_stock_ticker'] if !opts[:'entities_body_stock_ticker'].nil?
3476
- query_params[:'!entities.body.stock_ticker'] = opts[:'not_entities_body_stock_ticker'] if !opts[:'not_entities_body_stock_ticker'].nil?
3477
- query_params[:'entities.body.links.dbpedia'] = opts[:'entities_body_links_dbpedia'] if !opts[:'entities_body_links_dbpedia'].nil?
3478
- query_params[:'!entities.body.links.dbpedia'] = opts[:'not_entities_body_links_dbpedia'] if !opts[:'not_entities_body_links_dbpedia'].nil?
3479
- query_params[:'entities.body.links.wikipedia'] = opts[:'entities_body_links_wikipedia'] if !opts[:'entities_body_links_wikipedia'].nil?
3480
- query_params[:'!entities.body.links.wikipedia'] = opts[:'not_entities_body_links_wikipedia'] if !opts[:'not_entities_body_links_wikipedia'].nil?
3481
- query_params[:'entities.body.links.wikidata'] = opts[:'entities_body_links_wikidata'] if !opts[:'entities_body_links_wikidata'].nil?
3482
- query_params[:'!entities.body.links.wikidata'] = opts[:'not_entities_body_links_wikidata'] if !opts[:'not_entities_body_links_wikidata'].nil?
3483
3228
  query_params[:'sentiment.title.polarity'] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
3484
3229
  query_params[:'!sentiment.title.polarity'] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
3485
3230
  query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
@@ -3534,6 +3279,9 @@ module AylienNewsApi
3534
3279
  query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
3535
3280
  query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
3536
3281
  query_params[:'clusters'] = opts[:'clusters'] if !opts[:'clusters'].nil?
3282
+ query_params[:'aql'] = opts[:'aql'] if !opts[:'aql'].nil?
3283
+ query_params[:'aql_default_field'] = opts[:'aql_default_field'] if !opts[:'aql_default_field'].nil?
3284
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
3537
3285
 
3538
3286
  # header parameters
3539
3287
  header_params = opts[:header_params] || {}