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

            roi.katz Roi Katz created issue -
            roi.katz Roi Katz made changes -
            Field Original Value New Value
            Summary [Java SDK 3] - Document FTS search and get the result keys in a flux [Java SDK 3] - Document FTS search and get the result docuemnts in a flux
            roi.katz Roi Katz made changes -
            Summary [Java SDK 3] - Document FTS search and get the result docuemnts in a flux [Java SDK 3] - Document FTS search and get the result docs in a flux
            richard.smedley Richard Smedley made changes -
            Assignee Amarantha Kulkarni [ amarantha.kulkarni ] Richard Smedley [ richard smedley ]
            richard.smedley Richard Smedley made changes -
            Link This issue relates to DOC-6993 [ DOC-6993 ]
            richard.smedley Richard Smedley made changes -
            Epic Link DOC-8196 [ 152156 ]
            Fix Version/s sdk3.1-backlog [ 17244 ]
            Fix Version/s sdk3.2-backlog [ 17245 ]
            Labels Java Java fts search
            richard.smedley Richard Smedley made changes -
            Labels Java fts search Java SDKDOC-improvement fts search

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty