We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Multiple Word Search in one string

Hello!
I am using Autocomplete to find items in an invoice.
I have 18.000 items and I want to make multiple word search.
For example 
Laptop HP Elitebook 8570W i5

If the user searches hp i5 I want this item to be suggested.

How can i achieve this  with sfAutocomplete

1 Reply

HM Hemalatha Marikumar Syncfusion Team November 28, 2019 08:49 AM UTC

Hi 2RM, 
  
Greetings from Syncfusion. 
  
We checked your "Multiple Word Search in one string" requirement from our side in SfAutoComplete. Currently we don't have a direct support to achieve the same. But in SfAutoComplete, you can achieve this by custom searching. Within the custom search method, you can implement your logic that what you want.  
  
Code Snippet[C#] 
        public bool customSearchFilter(string search, object item) 
        { 
            if (search != string.Empty) 
            { 
                return true; 
            } 
            else 
            { 
                return false; 
            } 
        } 
 
  
For your reference, we have prepared the simple sample. 
 
Sample Link: 
  
UG Link: 
 
Please check with above and let us know if have any other queries. 
 
Regards, 
Hemalatha M. 


Loader.
Up arrow icon