1010.. License for the specific language governing permissions and limitations under
1111.. the License.
1212
13- .. _ views /search :
13+ .. _ ddoc/views /search :
1414
1515======
1616Search
@@ -144,12 +144,12 @@ The third, optional, parameter is a JavaScript object with the following fields:
144144 indexed without a boost value. Content with a boost value less than one is not so
145145 relevant. Value is a positive floating point number. Default is 1 (no boosting).
146146
147- * **facet ** - Creates a faceted index. See :ref: `Faceting <ddoc/view /faceting >`.
147+ * **facet ** - Creates a faceted index. See :ref: `Faceting <ddoc/views /faceting >`.
148148 Values are ``true `` or ``false ``. Default is ``false ``.
149149
150150* **index ** - Whether the data is indexed, and if so, how. If set to ``false ``, the data
151151 cannot be used for searches, but can still be retrieved from the index if ``store `` is
152- set to ``true ``. See :ref: `Analyzers <ddoc/view /analyzers >`.
152+ set to ``true ``. See :ref: `Analyzers <ddoc/views /analyzers >`.
153153 Values are ``true `` or ``false ``. Default is ``true ``
154154
155155* **store ** - If ``true ``, the value is returned in the search result; otherwise,
@@ -180,7 +180,7 @@ The third, optional, parameter is a JavaScript object with the following fields:
180180 }
181181 }
182182
183- .. _ api/ddoc/view /index_guard_clauses :
183+ .. _ ddoc/views /index_guard_clauses :
184184
185185Index guard clauses
186186-------------------
@@ -239,14 +239,14 @@ field is defined.
239239 ...
240240 }
241241
242- .. _ api/ddoc/view /analyzers :
242+ .. _ ddoc/views /analyzers :
243243
244244Analyzers
245245=========
246246
247247Analyzers are settings that define how to recognize terms within text.
248248Analyzers can be helpful if you need to
249- :ref: `index multiple languages <ddoc/view /language-specific-analyzers >`.
249+ :ref: `index multiple languages <ddoc/views /language-specific-analyzers >`.
250250
251251Here's the list of generic analyzers, and their descriptions, that are
252252supported by search:
@@ -274,7 +274,7 @@ supported by search:
274274 }
275275 }
276276
277- .. _ api/ddoc/view /language-specific-analyzers :
277+ .. _ ddoc/views /language-specific-analyzers :
278278
279279Language-specific analyzers
280280---------------------------
@@ -367,10 +367,10 @@ The name of the language is also the name of the analyzer.
367367 Language-specific analyzers are optimized for the specified language. You
368368 cannot combine a generic analyzer with a language-specific analyzer.
369369 Instead, you might use a
370- :ref: `per field analyzer <ddoc/view /per-field-analyzers >` to
370+ :ref: `per field analyzer <ddoc/views /per-field-analyzers >` to
371371 select different analyzers for different fields within the documents.
372372
373- .. _ api/ddoc/view /per-field-analyzers :
373+ .. _ ddoc/views /per-field-analyzers :
374374
375375Per-field analyzers
376376-------------------
@@ -535,12 +535,12 @@ Specify your search by using the ``query`` parameter.
535535 curl https://$HOST :5984/$DATABASE /_design/$DDOC /_search/$INDEX_NAME ?
536536 include_docs=true\& query=" *:*" \& limit=1 \
537537
538- .. _ api/ddoc/view /query_parameters :
538+ .. _ ddoc/views /query_parameters :
539539
540540Query Parameters
541541----------------
542542
543- You must enable :ref: `faceting <ddoc/view /faceting >` before you can use the
543+ You must enable :ref: `faceting <ddoc/views /faceting >` before you can use the
544544following parameters:
545545
546546- ``counts ``
@@ -561,7 +561,7 @@ Here's the list of arguments and their descriptions:
561561* **counts ** - This field defines an array of names of string fields, for which counts
562562 are requested. The response contains counts for each unique value of this field
563563 name among the documents that match the search query.
564- :ref: `Faceting <ddoc/view /faceting >` must be enabled for this parameter
564+ :ref: `Faceting <ddoc/views /faceting >` must be enabled for this parameter
565565 to function.
566566
567567 * Optional = yes
@@ -573,7 +573,7 @@ Here's the list of arguments and their descriptions:
573573 with a field name and a value. The search matches only documents containing the
574574 value that was provided in the named field. It differs from using
575575 ``"fieldname:value" `` in the ``q `` parameter only in that the values are not
576- analyzed. :ref: `Faceting <api/ ddoc/view /faceting >` must be enabled for this
576+ analyzed. :ref: `Faceting <ddoc/views /faceting >` must be enabled for this
577577 parameter to function.
578578
579579 * Optional = no
@@ -893,7 +893,7 @@ Use ``*:*`` to return all results.
893893Result sets from searches are limited to 200 rows,
894894and return 25 rows by default.
895895The number of rows that are returned can be changed
896- by using the :ref: `limit parameter <api/ ddoc/view /query_parameters >`.
896+ by using the :ref: `limit parameter <ddoc/views /query_parameters >`.
897897
898898If the search query does *not * specify the ``"group_field" `` argument,
899899the response contains a bookmark.
@@ -904,7 +904,7 @@ making it quick and easy to get the next set of results.
904904.. note ::
905905 The response never includes a bookmark if the ``"group_field" ``
906906 parameter is included in the search query.
907- See :ref: `group_field parameter <api/ ddoc/view /query_parameters >`.
907+ See :ref: `group_field parameter <ddoc/views /query_parameters >`.
908908
909909.. note ::
910910 The ``group_field ``, ``group_limit ``, and ``group_sort `` options
@@ -923,20 +923,20 @@ The response to a search query contains an ``order`` field
923923for each of the results.
924924The ` ` order` ` field is an array where the first element is
925925the field or fields that are specified
926- in the ` ` sort` ` parameter. See the :ref:` sort parameter <api/ ddoc/view /query_parameters>` .
926+ in the ` ` sort` ` parameter. See the :ref:` sort parameter <ddoc/views /query_parameters>` .
927927If no ` ` sort` ` parameter is included in the query,
928928then the ` ` order` ` field contains the
929929` Lucene relevance score <https://lucene.apache.org/core/3_6_0/scoring.html>` _.
930930If you use the ' sort by distance' feature as described
931- in :ref:` geographical searches <api/ ddoc/view /geographical_searches>` ,
931+ in :ref:` geographical searches <ddoc/views /geographical_searches>` ,
932932then the first element is the distance from a point.
933933The distance is measured by using either kilometers or miles.
934934
935935.. note::
936936 The second element in the order array can be ignored.
937937 It is used for troubleshooting purposes only.
938938
939- .. _api/ddoc/view /faceting:
939+ .. _ddoc/views /faceting:
940940
941941Faceting
942942--------
@@ -1084,7 +1084,7 @@ Exclusive range queries are denoted by curly brackets (``{``, ``}``).
10841084 }
10851085 }
10861086
1087- .. _api/ddoc/view /geographical_searches:
1087+ .. _ddoc/views /geographical_searches:
10881088
10891089Geographical searches
10901090=====================
0 commit comments