A Search Endpoint in Search Tweak represents a specific interface to interact with a search service. Each endpoint encapsulates all the necessary details to perform a search request, including the endpoint's name, description, URL, method, mapper code, and http headers.
GET
, POST
, and PUT
.header: value
.Auto
) to reduce the time taken to fetch data from the endpoint. This feature is useful when dealing with large datasets or slow endpoints.
If yoo prefer to not overload the endpoint, you can choose Single
option. This will help to prevent the endpoint from being overwhelmed by too many requests at once. Here is an example of a search endpoint configuration:
Product Search
This endpoint handles search queries for products in the e-commerce database. It retrieves product details including name, price, availability, and category.
https://api.example.com/search/products
GET
id: data.items.*.id
name: data.items.*.name
image: data.items.*.image
For more details on how to write mapper code, please refer to the Mapper Code documentation.
Authorization: Bearer your-api-token
Content-Type: application/json
This configuration will send a GET request to https://api.example.com/search/products
with the specified headers and extract the required attributes from the response using the provided mapper code.
The Search Endpoints interface allows you to efficiently manage your search endpoints. The interface provides the following functionalities:
These features ensure that you have full control over your search endpoints, making it easy to maintain and optimize your search service configurations.
For more details and to manage your endpoints, visit the Search Endpoints in the application.
Feel free to explore other sections of the documentation to get a better understanding of how to set up and use Search Tweak effectively.