I want to preferentially display records for which product images are set

I have an App Search engine that has product data registered. Records with product images have their URLs stored, and records without them have nulls stored.
Of these, I want to preferentially display the records for which the product image is set, and put the records without the product image in the back.

What is the most effective way to achieve this?

I would calculate an additional field and add it to your data when indexing named "has_product_image" (or something similar). Ex: has_product_image: "true"

I would then apply a value boost that boosts on the value "true" on the field has_product_image

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.