Products query: title:"x" matches the exact title alone, but matches any title containing the word once combined with tag, category_id or price

A quoted title term in a products or productsCount query returns different products depending on which other terms are in the query. The parsed query is the same each time. I’d like to know which behavior is intended.

API version: 2026-07, Admin GraphQL, on a development store.

Setup

The store has 3 products titled exactly “Backpack” and 13 more whose titles contain the word, such as “Summit Trail Backpack in Sand”.

Results

query productsCount
title:"backpack" 3
title:"backpack" AND status:active 2
title:"backpack" AND created_at:>2020-01-01 3
title:"backpack" AND vendor:* 3
title:"backpack" AND -tag:zzzz 16
title:"backpack" AND tag:* 16
title:"backpack" AND price:>=0 16
title:"backpack" AND -category_id:* 9
(-category_id:* OR category_id:na) AND (title:"backpack") 10

products returns the same sets as productsCount in every row.

With only status, created_at or vendor beside it, the title term matches the whole title. With a tag, price or category_id term beside it, it matches every title containing the word. No product has the tag zzzz, so -tag:zzzz should not change the result at all, yet the count goes from 3 to 16.

The same happens with vendor:

query productsCount
vendor:"Summit" 0
vendor:"Summit" AND -category_id:* 38

What I ruled out

  • Double quotes, single quotes and no quotes give the same counts.
  • Capitalisation makes no difference.
  • Brackets, term order, and writing AND or leaving it implicit make no difference.

Debug output

With the Shopify-Search-Query-Debug: 1 header, the title term parses the same way in both cases.

Alone, returning 3:

{"field":"title","match_phrase":"backpack"}

With the tag term, returning 16:

{"and":[{"field":"title","match_phrase":"backpack"},{"not":{"field":"tag","match_all":"zzzz"}}]}

Why it matters

Our app shows a merchant how many products a filter matches, then lets them act on those products inside a narrower view that adds a category term. The first number comes from the title term alone and the second from the combined query, so a merchant can preview 3 products and then be shown 10.

Questions

  1. Which is the intended match for title:"x": the whole title, or any title containing the phrase? The search syntax page ( Search query syntax ) says tokenized fields match a term “found anywhere in the field”, but the products reference does not say whether title and vendor are tokenized.

  2. Is there a supported way to ask for an exact title or vendor match that behaves the same regardless of the other terms?

  3. Is the exact match on simple queries something we can rely on, or could it change?

    One smaller thing from the same debug output: -category_id:* parses as {"field":"category_id","exists":true} with no not around it, while -tag:zzzz shows a not. The results are correct, so this may only be how the debug output prints it.

Hi @danatbonify, thanks for the thorough post!

I can confirm the behavior you’re seeing. A quoted title term isn’t guaranteed to be an exact match. Depending on the other terms in the query, it gets answered by one of two search systems with different title matching. One matches the whole title, the other matches words anywhere in it. status, created_at, and vendor can be served by the whole-title system, while tag, price, and category_id force the word-matching one. Your parsed query is identical in every row of the matrix, but the system answering it changes. On a test store, title:"shirt" alone returns only products titled exactly “Shirt”, while title:"shirt" AND price:>=0 widens to every title containing the word.

For consistent word matching, use a prefix term like title:backpack*, which gets evaluated the same way regardless of the other filters (see prefix queries; it also matches words that begin with the prefix). There’s no documented exact-match filter for title today, so compare the titles on the returned nodes client-side when you need exact matches.

I’ve flagged this inconsistency with the products team, since results shouldn’t depend on which filters are present. No timeline to share yet but I’ll update this thread as soon as I hear back from them!