SearchClient

public class SearchClient

Client for TG-Search

Author:Ubbo Veentjer

See also: TG-Search documentation

Fields

DEFAULT_NONPUBLIC_ENDPOINT

public static final String DEFAULT_NONPUBLIC_ENDPOINT

URL of the tgsearch endpoint for private data on textgrid production system (textgridlab.org), this is for searching authorized users data

DEFAULT_PUBLIC_ENDPOINT

public static final String DEFAULT_PUBLIC_ENDPOINT

URL of the tgsearch endpoint for published data on textgrid production system (textgridlab.org)

Constructors

SearchClient

public SearchClient(String endpoint)

Setup the tgsearch client As endpoint the DEFAULT_PUBLIC_ENDPOINT and DEFAULT_NONPUBLIC_ENDPOINT may be used to work with the textgrid production system textgridlab.org

Parameters:
  • endpoint
    • the http(s) url of tgsearch service

Methods

enableGzipCompression

public SearchClient enableGzipCompression()

Turn on GZIP compression for communication with service

facetQuery

public FacetQueryBuilder facetQuery()

Prepare a FacetQuery with TG-Search

See also: Search Query API

infoQuery

public InfoQuery infoQuery()

Prepare a InfoQuery with TG-Search

See also: Search Query API

relationQuery

public RelationQuery relationQuery()

Prepare a RelationQuery with TG-Search

See also: Search Query API

searchQuery

public SearchQueryBuilder searchQuery()

Prepare a SearchQuery with TG-Search

See also: Search Query API