Return results only on matching Query Rules

Hi team,

Is it possible to answer with an entity which matches not on vertical searches but only on query rules? In other words, are there any way to pick one specific entity up even though the entity does not have any data?

For example, what I would like to do is below.

[Condition]

  • Entity “G-SHOCK” exists. Which has picture, and keywords like “G-SHOCK” and “Watch” are set.
  • Query rules with boosting entity by entity ID is on, which matches “Shock Resist” by regular expression

[Search query] Shock Resist

[Expected Result] Entity “G-SHOCK” is displayed. (Even though “Shock Resist” word does not set in entity “G-SHOCK”.

I assume query rules are only applied to the entities which is matched by search query, but I would like to confirm such search experience is possible or not.

Best,
Kaishi

Hi Kaishi,

Great question. Yes you should be able to use Boost Entities Query rule to do so. Visit the Boost Entities training to see how to set this up.

How this works is that if the entity is not returned in the results without the action (which is your case), BOOST_ENTITIES will add the entity to the results set. This is the default behavior.

Note that if you wanted to change this behavior, you can set forceResults option to false, which will specify that the BOOST_ENTITES action should only happen if the entities are already in the search results.

Let us know as you test it out if you have any questions or issues!

Best,
Alyssa

1 Like