وردپرس

Obtaining the number of Facets according to search results.


Thank you as always.

Facets are displayed in the sidebar on the index screen in the Algolia dashboard. When you search in the search bar, the number next to each Facet changes according to the search results. I would like to achieve this in WordPress.

My plugin setting is “Use Algolia in the backend”. I am not using “Instantsearch.js”.

Can I obtain the Facets value according to the search keywords in the backend? More specifically, on my site, there is a price range filter button (for example, 1000-2000 or 2000-3000) on the search result page, and I would like to display the number of items after the price.

In the current Algolia post index, a single product price is registered as “searchableAttributes” and “attributesForFaceting”.

I looked at the following page, but I did not understand it.
https://www.algolia.com/doc/api-reference/api-parameters/facets/

این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنید

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا