Skip to content

Commit b2f53ed

Browse files
DOC-9574: Add a note that N1QL can select any qualifying FTS index
1 parent 8e2024b commit b2f53ed

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

modules/fts/pages/fts-searching-from-N1QL.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ Order pushdown is possible only if query ORDER BY has only <<search_score>> on t
194194
Offset and Limit pushdown is possible if the query only has a SEARCH() predicate, using a single search index -- no IntersectScan or OrderIntersectScan.
195195
Group aggregates and projection are not pushed.
196196

197+
[NOTE]
198+
--
199+
If the "index" setting isn't specified within the options argument of the _SEARCH_ function, N1QL can pick any FTS index available in the system that qualifies for the query. If a number of FTS indexes qualify, then one that is defined most precise will be chosen.
200+
--
201+
197202
=== Examples
198203

199204
.Search using a query string
@@ -682,4 +687,4 @@ WHERE reviews.content LIKE "%travel%";
682687
SELECT META().id
683688
FROM `travel-sample`.`inventory`.`hotel` t USE INDEX(USING FTS)
684689
WHERE content LIKE "%travel%";
685-
----
690+
----

modules/n1ql/pages/n1ql-language-reference/searchfun.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ Order pushdown is possible only if query ORDER BY has only <<search_score>> on t
202202
Offset and Limit pushdown is possible if the query only has a SEARCH() predicate, using a single search index -- no IntersectScan or OrderIntersectScan.
203203
Group aggregates and projection are not pushed.
204204

205+
[NOTE]
206+
--
207+
If the "index" setting isn't specified within the options argument of the _SEARCH_ function, N1QL can pick any FTS index available in the system that qualifies for the query. If a number of FTS indexes qualify, then one that is defined most precise will be chosen.
208+
--
209+
205210
=== Examples
206211

207212
.Search using a query string

0 commit comments

Comments
 (0)