Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-8186

JAVA FTS SDK Results Cap

    XMLWordPrintable

Details

    Description

      https://docs.couchbase.com/java-sdk/current/howtos/full-text-searching-with-sdk.html#getting-started
      provides the below example, please update the document to state that Full Text Search will cap the results of "Found row: " to 10.

      try {
      final SearchResult result = cluster
      .searchQuery("index", SearchQuery.queryString("query"));

      for (SearchRow row : result.rows())

      { System.out.println("Found row: " + row); }

      System.out.println("Reported total rows: "
      + result.metaData().metrics().totalRows());
      } catch (CouchbaseException ex)

      { ex.printStackTrace(); }

      Attachments

        Activity

          People

            richard.smedley Richard Smedley
            richard.lewis Richard Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              PagerDuty