Ports Used by FTS

    +

    The following table lists the FTS port details:

    Table 1. FTS Ports
    Port name Default port number
    (un / encrypted)
    Description Node-to-node Client-to-node XDCR (cluster-to-cluster)

    fts_http_port / fts_ssl_port

    8094 / 18094

    Search Service REST/HTTP traffic

    No

    Yes

    No

    fts_grpc_port / fts_grpc_ssl_port

    9130 / 19130

    Search Service gRPC port used for scatter-gather operations between FTS nodes

    Yes

    No

    No

    Partial and Full Results

    The search service reserves the capability of delivering partial results when some of the nodes in the Couchbase system are unreachable. The search request provides an option for a user who wishes to obtain either the complete result set or none at all.

    Every search returns the number of partition indexes that succeeded, along with the search hits from those indexes. This information is merged and sorted into a single result-set, either partial or full, providing a fault tolerance mechanism.

    Full Results

    If the query successfully executes for the given attributes, the developer can use the full result option to display the complete result of the query, including all response objects.

    Example

    {
      "status":{"total":1,"failed":0,"successful":1},
      "request":{
        "query":{"query":"+name:air* +country:france"},"size":10,"from":0,"highlight":null,"fields":null,"facets":null,"explain":false,"sort":["-_score"],"includeLocations":false,"search_after":null,"search_before":null
      },
      "hits":[
        {"index":"DemoIndex_580e3ee6ba3ac900_4c1c5584","id":"hotel_19199","score":3.166810600229102,"sort":["_score"],"fields":{"_$c":"hotel"}}
      ],
      "total_hits":1,"max_score":3.166810600229102,"took":593704,"facets":null
    }

    Partial Results

    Suppose some of the partition indexes fail to respond before the timeout, or respond with an error. In that case, the developers can use the partial result option to display the result for partial execution of the query.

    Example

    "error":"rest_index: Query, indexName: DemoIndex, err: context deadline exceeded","request":{"ctl":{"timeout":2},"from":10,"query":{"field":"country","wildcard":"f*ce"},"size":10},"status":"fail"}