-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f57b7b
commit 7407a75
Showing
18 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<html> | ||
Contains an array of strings that specify the collections where you want to run the query. | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<html> | ||
Use the <strong style="color: #6aab73">consistency</strong> object to control the consistency behavior for a Search | ||
index<br><br> | ||
It contains a <strong style="color: #6aab73">vectors</strong> object, the <strong style="color: #6aab73">level</strong> | ||
and <strong style="color: #6aab73">results</strong> properties. | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html> | ||
|
||
Use the <strong style="color: #6aab73">ctl</strong> object to make sure that the Search Service runs your Search query | ||
against the latest version of the | ||
documents in your database.<br><br> | ||
|
||
The <strong style="color: #6aab73">ctl</strong> object and its properties cause the Search Service to run your query | ||
against the latest version of a document written to a vBucket. The Search Service uses a consistency vector to | ||
synchronize the last document write to a vBucket from the Data Service with the Search index. | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<html> | ||
To create an explanation for a search result’s score in search results, set <strong | ||
style="color: #6aab73">explain</strong> to true.<br><br> | ||
|
||
To turn off explanations for search result scoring, set <strong style="color: #6aab73">explain</strong> to false. | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<html> | ||
Contains <strong style="color: #6aab73">{facet-name}</strong> objects to define each facet you want to return with | ||
search results.<br><br> | ||
|
||
The Search Service supports the following facet types:<br><br> | ||
|
||
→ <strong>Term Facet</strong>: Counts the documents that have the same value for a specified field.<br><br> | ||
|
||
→ <strong>Numeric Range Facet</strong>: Counts the documents with numeric field values that are greater than or | ||
less than a specified range or ranges.<br><br> | ||
|
||
→ <strong>Date Range Facet</strong>: Counts the documents with date field values that are earlier or later than a | ||
specified range or ranges.<br><br> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<html> | ||
Use the <strong style="color: #6aab73">highlight</strong> object to control how the Search Service highlights matches in | ||
search results. | ||
|
||
<pre> | ||
"highlight": { | ||
"style": "html", | ||
"fields": ["textField"] | ||
}, | ||
</pre> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<html> | ||
To return the position of each occurrence of a search term inside a document, set <strong style="color: #6aab73">includeLocations</strong> | ||
to true.<br><br> | ||
|
||
<strong>Note</strong>: You must have <i>Include Term Vectors</i> enabled or the <strong style="color: #6aab73">include_term_vectors</strong> | ||
property set to true on a field to use <strong style="color: #6aab73">includeLocations</strong>. For more information | ||
about how to enable term vectors, see Child Field Options or Search Index JSON Properties.<br><br> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<html> | ||
|
||
Set the consistency to bounded or unbounded consistency:<br><br> | ||
|
||
→ <strong style="color: #6aab73">at_plus</strong>: The Search query executes but requires that the Search index | ||
matches the timestamp of the last document update. | ||
You must provide a <strong style="color: #6aab73">vectors</strong> object<br><br> | ||
|
||
→ <strong style="color: #6aab73">not_bounded</strong>: The Search query executes without a consistency requirement. | ||
<strong style="color: #6aab73">not_bounded</strong> is faster than <strong style="color: #6aab73">at_plus</strong>, as | ||
it doesn't rely on a <strong style="color: #6aab73">vectors</strong> object or wait for the Search index to match the | ||
Data Service index.<br><br> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<html> | ||
To display an error instead of partial results if any index partitions are unavailable on a node, set <strong | ||
style="color: #6aab73">results</strong> to | ||
<strong style="color: #6aab73">complete</strong>.<br><br> | ||
|
||
To return partial results from a query if a node is unreachable, remove the <strong | ||
style="color: #6aab73">results</strong> property. | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html xmlns="http://www.w3.org/1999/html"> | ||
To turn off document relevancy scoring in search results, set <strong style="color: #6aab73">score</strong> to none. | ||
<br><br> | ||
|
||
To turn on document relevancy scoring in search results, remove the <strong style="color: #6aab73">score</strong> | ||
property. | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<html> | ||
Use <strong style="color: #6aab73">search_after</strong> with <strong style="color: #6aab73">from</strong>/<strong | ||
style="color: #6aab73">offset</strong> and sort to control pagination in search results.<br><br> | ||
|
||
Give a value for each string or JSON object in the <strong style="color: #6aab73">sort</strong> array to the <strong | ||
style="color: #6aab73">search_after</strong> array. The Search Service starts | ||
search result pagination after the document with those values.<br><br> | ||
|
||
You must provide the values in the same order that they appear in the <strong style="color: #6aab73">sort</strong> | ||
array.<br><br> | ||
|
||
For example, if you had a set of 10 documents to sort based on _id values of 1-10, with <strong style="color: #6aab73">from</strong> | ||
set to 2 and <strong style="color: #6aab73">search_after</strong> set to 8, documents 9-10 appear on the same page. | ||
<br> | ||
<br> | ||
<hr style="border: 0; height: 1px; background-color: dimgray;"> | ||
<br> | ||
<strong>Note</strong>: If you use <strong style="color: #6aab73">search_after</strong> in a search request, you can’t | ||
use <strong style="color: #6aab73">search_before</strong>. Both properties are included in the example code to show the | ||
correct syntax. | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<html> | ||
Use <strong style="color: #6aab73">search_before</strong> with <strong style="color: #6aab73">from</strong>/<strong | ||
style="color: #6aab73">offset</strong> and sort to control pagination in search results.<br><br> | ||
|
||
Give a value for each string or JSON object in the <strong style="color: #6aab73">sort</strong> array to the <strong | ||
style="color: #6aab73">search_before</strong> array. The Search Service starts | ||
search result pagination before the document with those values.<br><br> | ||
|
||
You must provide the values in the same order that they appear in the <strong style="color: #6aab73">sort</strong> | ||
array.<br><br> | ||
|
||
For example, if you had a set of 10 documents to sort based on _id values of 1-10, with <strong style="color: #6aab73">from</strong> | ||
set to 2 and <strong style="color: #6aab73">search_before</strong> set to 8, documents 2-6 appear on the same page. | ||
<br> | ||
<br> | ||
<hr style="border: 0; height: 1px; background-color: dimgray;"> | ||
<br> | ||
<strong>Note</strong>: If you use <strong style="color: #6aab73">search_before</strong> in a search request, you can’t | ||
use <strong style="color: #6aab73">search_after</strong>. Both properties are included in the example code to show the | ||
correct syntax. | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<html> | ||
Contains an array of strings or JSON objects to set how to sort search results.<br><br> | ||
|
||
The strings can be:<br><br> | ||
|
||
→ <strong>{field_name}</strong>: Specify the name of a field to use to sort the search results.<br><br> | ||
|
||
→ <strong>_id</strong>: Use the document’s identifier to sort the search results.<br><br> | ||
|
||
→ <strong>_score</strong>: Use the document’s score from the Search query to sort the search results. | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<html> | ||
|
||
Sets how the Search Service highlights a match from a search query:<br><br> | ||
|
||
→ <strong style="color: #6aab73">ansi</strong>: The Search Service highlights matches with a yellow background | ||
(\u001b[43m).<br><br> | ||
|
||
→ <strong style="color: #6aab73">html</strong>: The Search Service surrounds matches with | ||
<mark> and</mark> | ||
HTML tags.<br><br> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<html> | ||
Set the maximum time, in milliseconds, that a Search query can execute on a Search index partition.<br><br> | ||
|
||
If the query time exceeds the <strong style="color: #6aab73">timeout</strong>, the Search Service cancels the query. The | ||
query might return partial results if | ||
any index partitions responded before the timeout. | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<html> | ||
An object that contains a <strong style="color: #6aab73">{search-index-name}</strong> object for each Search index in | ||
the query. | ||
</html> |