This is a migrated thread and some comments may be shown as answers.

SearchBox ignore words

1 Answer 31 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
Shahar
Top achievements
Rank 1
Shahar asked on 29 Nov 2016, 10:15 AM

Hi,

I would like to know if it's possible to do the following thing with the SearchBox:

I want to ignore certain words like in this case:

the user types "courses in technology" and I want to ignore the words "courses in" so only the word "technology" would be searched

in the datasource. is it possible to do this thing ? 

 

Shahar Weinstein.

 

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 01 Dec 2016, 01:57 PM
Hello Shahar,

There is a possible approach to get and use just a part of the entered text as SearchBox query. I attached a sample page that demonstrates it. You can either paste "courses in technology" in the input or type it in and both "courses in technology" and "technology" will be returned since "technology" is used as a query. get_text(), query() and other methods of the SearchBox client-side API you can find in the respective section of the documentation.

Regards,
Ivan Danchev
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Tags
SearchBox
Asked by
Shahar
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or