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

未關閉
#561 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

@awaisdar001 已經在處理了。

開始於 2023年12月24日。

  • #334 來自 @awaisdar001 —— 未關閉

評估

難度
5/5
預估耗時
一週以上
新手友好度
30/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
api, search

研究方向

先檢視 Python 用戶端現有的 update_records API,以及 issue 中描述的索引行為。定義如何針對集合驅動的更新選取特定的產品 ID 並進行批次處理,接著根據 1,000 個產品的情境驗證行為,並記錄完成的 endpoint 契約。

由索引模型根據 Issue 內容生成。

描述

  • 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.
主要語言
Python
星號
207
分支
63
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

algolia/algoliasearch-client-python 的其他 Issue

查看 algolia/algoliasearch-client-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。