<p>I don't believe this is possible using the native search functionality.</p>

<p>You can search for a specific value within a table field using:</p>

<pre><code>{% set results = craft.entries.search('tableField:"ID"') %}
</code></pre>

<p>That should return all entries that contain "ID" in <code>tableField</code>, but it doesn't restrict the search to a particular column in the table.</p>

<p>How likely is it that the ID will occur in other columns of the table?</p>

CC BY-SA 3.0
2016-06-13T14:05:43.493Z
In case of the ID, not likely. But, the column I search for could be partially the same as another column. I'll just have to make sure it isn't, then ;)
Paul
CC BY-SA 3.0
2016-06-13T11:35:28.727Z
2016-06-13T11:35:28.727Z
Steve Rowling
<p>Considering the way table field content is saved to the database, could I search entries for content in a specific column?</p>

<p>So, say I have a table field containing X column, I would only want to search for an ID, located in column 3. Did anyone ever successfully try this?</p>

<search><table-field>
Is it possible to search an entry for specific table content
# Is it possible to search an entry for specific table content

(Asked by: username_0 on 2016-06-07)

Considering the way table field content is saved to the database, could I search entries for content in a specific column?

So, say I have a table field containing X column, I would only want to search for an ID, located in column 3. Did anyone ever successfully try this?

**Tags:** search, table-field


---

## 1 answers

### Answer by username_1 on 2016-06-13. Score: 2 | Accepted answer

I don't believe this is possible using the native search functionality.
You can search for a specific value within a table field using:
{% set results = craft.entries.search('tableField:"ID"') %}

That should return all entries that contain "ID" in tableField, but it doesn't restrict the search to a particular column in the table.
How likely is it that the ID will occur in other columns of the table?

> **Comments:**
> **username_0**: In case of the ID, not likely. But, the column I search for could be partially the same as another column. I'll just have to make sure it isn't, then ;)  

---

