Request for API Endpoint to Update Specific Products in Algolia Search Index

Đang mở
#561 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

@awaisdar001 đang làm issue này rồi.

Từ ngày 24/12/2023.

  • #334 của @awaisdar001 — đang mở

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api, search

Hướng nghiên cứu

Bắt đầu bằng việc xem xét API update_records hiện có của Python client và hành vi lập chỉ mục được mô tả trong issue. Xác định cách các product ID cụ thể sẽ được chọn và chia thành các batch cho các cập nhật dựa trên collection, sau đó kiểm tra hành vi với kịch bản 1.000 product và ghi lại contract của endpoint đã hoàn tất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

  • Algolia Client Version: 3.0.0
  • Language Version: 3.9
Description

As of now, I have approximately 2500 instances that require periodic updates in my Algolia search index. The updates are triggered whenever any collection of products is modified. These collections can vary in size, which leads to the following challenges:

Impracticality of Indexing All Products: It is not practical for me to index all individual products within a collection due to the potentially large number of products. Indexing each product individually would result in an excessive number of API requests, increasing the time and resources required.

Time-Consuming Indexing Process: Currently, indexing around 2500 products one by one is a time-consuming process. Each index operation necessitates an API call, and this accumulates to a significant amount of time and effort.

Given these challenges, I am looking for a solution that would allow me to update specific products within the index efficiently. I believe having an API endpoint that supports batch updates for specific products, possibly by providing a list of product IDs or another means of specifying which products to update, would greatly streamline the process.

The API has update_records for partially updating objects, but they are only practical to use when certain fields in the query set have changed. So this cannot be used in this context as well.

This functionality would not only save time and resources but also enhance the overall user experience, particularly for scenarios where only a subset of products within a collection needs updating.

I kindly request your support and consideration in implementing such an API endpoint. If this feature or a similar solution is already available or under consideration, please provide me with guidance on how I can make the best use of it.

Steps To Reproduce
  1. Have an index in algolia with 6k products
  2. A collection is updated -- changed the collection name
  3. 1k products now have different collection names
  4. Index 1k products in Algolia => One by-indexing is time-consuming. indexing 1k products one by one is not practical and overkill.
Ngôn ngữ chính
Python
Star
207
Fork
63
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của algolia/algoliasearch-client-python

Tất cả issue của algolia/algoliasearch-client-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.