Search code examples
solrsap-commerce-cloud

Solr returns different result for each letter change


When I try searching for products that are having "camel" in their display names. All the indexing procedure have been done. The problem here is:

When I search "camel" I get: 1 product "name": "CHANEL HYDRA BEAUTY CAMELLIA WATER CREAM ILLUMINATING HYDRATING FLUID 30ML"

But When I search "CAMELL": I get 3 products from solr:

    {
      "name": "CLE DE PEAU Lipstick #5 Camellia"
    },
    {
      "name": "CHANEL  HYDRA BEAUTY CAMELLIA WATER CREAM  ILLUMINATING HYDRATING FLUID 30ML"
    },
    {
      "name": "HERA Rouge Holic Shine No.315 Camellia Orange"
    }

When I search CAMEL. I must have got these 3 as well. Why isn't it working?


Solution

  • The issue was fixed after setting the wildcard flag as true to the indexed properties, in Hybris. Thanks to everyone for your help and ideas.