Search code examples
solrsap-commerce-cloudsolr-search

SOLR- search and bring results based on partial search


I have a product old code and new code.The old product code would be like 000000000000988340 and am using hybris + solr search.

I have setup the attribute "oldproductcode" for solr indexing and when i do search 000000000000988340 in the search box ,am getting the results. But what I want is to search only with 988340 instead of using the leading zeros and I want the results to be shown ,how can i do that in Solr settings.

I do see all these options and i did tried the wildcard ,and it doesn't seem to work ,please advise using the following option how can i make this work

enter image description here


Solution

  • I simply enabled the option below with PREFIX and it started working . Thanks all for the help.

    enter image description here