Details
-
Bug
-
Resolution: Won't Fix
-
Test Blocker
-
sdk-3.1
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
- relates to
-
DOC-8185 Needs better example to have to extract Facet Data in Java SDK 3.x
- Closed