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

[Java SDK 3] - Document FTS search and get the result docs in a flux

    XMLWordPrintable

Details

    Description

      We need to add documentation about how to search with FTS and later fetch keys, like we have in the Query documentation.

      something like:

      List<GetResult> result = cluster
       .reactive()
       .searchQuery("indexName", SearchQuery.docId("docid1", "docid2"))
       .flatMapMany(ReactiveSearchResult::rows)
       .flatMap(row -> coll.reactive().get(row.id()))
       .collectList()
       .block();

      FlatMapMany:

      https://stackoverflow.com/questions/48254774/what-is-then-thenempty-thenmany-and-flatmapmany-in-spring-webflux

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              richard.smedley Richard Smedley
              roi.katz Roi Katz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty