# Feed Actions: Search for value

LitCommerce Feed Management offers multiple rules when setting up your feed, enabling you to locate, modify, and optimize your product data for the target platform.

This article introduces you to the “Search for value” action.

## <mark style="color:$primary;">**Set up and apply**</mark>

For more details on how to set up and apply the rule, refer [HERE](https://litcommerce.gitbook.io/litcommerce-helpdesk/feed-management/feed-basics-and-setup/feed-setup/feed-create-and-set-up-your-feed/feed-rules).

## <mark style="color:$primary;">**How it works**</mark>

The “Search for value” action appears under the Then and And-statements. It allows you to specify a product attribute (including Main Store fields, metafields, and custom fields) to set values based on the detected data from another product attribute.

<figure><img src="/files/BQjHjozM0kqo1qX56HPk" alt=""><figcaption></figcaption></figure>

Find the two fields: Product attribute and Target product attribute.

<figure><img src="/files/AFUOz7HJYuWWBSQpXS0F" alt=""><figcaption></figcaption></figure>

The rule contains two boxes:

* **Search for value in (part of) field:** Displays the text you want to find in your product attribute.
* **Set to value:** Displays the new text that will replace the data of the target product attribute.

{% hint style="info" %}
**You can enter multiple values in each box, but only one value per line. Each line in both boxes forms a pair of values, and LitCommerce matches them line by line. Values are not case-sensitive.**
{% endhint %}

This rule is ideal for data correction, text standardization, platform compliance, and SEO optimization, all while preserving your original Main Store data.

**Example:** You sell cupcakes with product titles containing colors, such as "White, Pink, Yellow, etc." These products have a metafield called "color" with values in Hex color codes, such as "#000000, #fbacba, #ffe599, etc."

You would like LitCommerce to match the “color” metafield values to the color name specified in each cupcake’s title. This can be set up as follows:

Take “color” and “search for value” in “Product Title”:

{% columns %}
{% column %}
**Search for value in (part of) field:**

White

Blue

Yellow

Blue

Orange

Pink
{% endcolumn %}

{% column %}
**Set to value:**

WHITE

BLUE

YELLOW

BLUE

ORANGE

PINK
{% endcolumn %}
{% endcolumns %}

<figure><img src="/files/eeAhJmCd1UexNiqpRKS2" alt=""><figcaption></figcaption></figure>

Once applied, this rule updates products with "Pink" in the title (such as “Daisy Cupcake produced by Crème Florale Co.-Pink Base”) to display “PINK” for the "color" metafield in the feed instead of its original value “#fbacba”.

The same rule works for the remaining values.

<div><figure><img src="/files/VKhHJD10Fi2mZFOWJf1c" alt=""><figcaption></figcaption></figure> <figure><img src="/files/Nzdgir4YIxKXmtB5eQBy" alt=""><figcaption></figcaption></figure></div>

If you have any questions, let us know via the Chat Box in the bottom-right corner of our Help Center.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.litcommerce.com/feed-management/feed-basics-and-setup/feed-setup/feed-create-and-set-up-your-feed/feed-rules/feed-actions/feed-actions-search-for-value.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
