Search code examples
javacommercetoolssphere.io

How can we find item based in incomplete name?


I have a question about "How can we find product or something else by partial information (name for example)"?. For example in SQL we can use LIKE. What can we use in Commercetools to do the same? How can we find category by incomplete name in Java code?


Solution

  • Thanks for the question. The product projections api provides search and suggest functionality. It is limited to product data. All other end points support filter by exact match.

    see docs https://docs.commercetools.com/http-api-projects-products-search.html#search-productprojections