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

JAVA SDK - Full Text Search using the SDK

    XMLWordPrintable

Details

    Description

      https://docs.couchbase.com/java-sdk/current/howtos/full-text-searching-with-sdk.html
      does not provide fully usable copy/paste snippets.

      Before starting, it doesn't provide all imports used in the examples.
      If you interpret the first sentence of the section Getting Started, "After familiarizing yourself with how to create and query a Search index in the UI you can query it from the SDK." to use the import from the Query section(https://docs.couchbase.com/java-sdk/current/howtos/n1ql-queries-with-sdk.html) all examples will fail.

      If a customer goes beyond the above SDK FTS example URL and finds https://docs.couchbase.com/sdk-api/couchbase-java-client/ they might add
      import com.couchbase.client.java.*;
      import com.couchbase.client.java.search.SearchOptions;
      import com.couchbase.client.java.search.SearchQuery;
      import com.couchbase.client.java.search.result.SearchResult;
      import com.couchbase.client.core.error.CouchbaseException;

      Please update the Examples with the following changes.
      SearchOptions.searchOptions() should be used vs searchOptions()

      Attachments

        Issue Links

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

          Activity

            richard.lewis Richard Lewis (Inactive) created issue -
            richard.smedley Richard Smedley made changes -
            Field Original Value New Value
            Link This issue relates to DOC-8185 [ DOC-8185 ]
            richard.smedley Richard Smedley made changes -
            Component/s server dev guide and SDKs [ 11814 ]
            Component/s sdk [ 14110 ]
            Epic Link DOC-8196 [ 152156 ]
            Fix Version/s sdk3.1-backlog [ 17244 ]
            Fix Version/s sdk3.2-backlog [ 17245 ]
            Page URL https://docs.couchbase.com/java-sdk/current/howtos/full-text-searching-with-sdk.html
            Affects Version/s SDK-3.1 [ 17058 ]
            Affects Version/s 3.0.x [ 12418 ]
            Affects Version/s 3.1.x [ 13106 ]
            Assignee Amarantha Kulkarni [ amarantha.kulkarni ] Richard Smedley [ richard smedley ]
            Labels fts search
            richard.smedley Richard Smedley made changes -
            Labels fts search SDKDOC-improvement fts search
            hakim.cassimally Hakim Cassimally made changes -
            Assignee Richard Smedley [ richard smedley ] Hakim Cassimally [ JIRAUSER25269 ]

            People

              hakim.cassimally Hakim Cassimally
              richard.lewis Richard Lewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty