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

            No work has yet been logged on this issue.

            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