# Search function is not working properly

**URL:** https://community.swiftype.com/t/search-function-is-not-working-properly/1021
**Category:** API
**Tags:** jquery
**Created:** [November 14, 2019, 12:47pm UTC](https://community.swiftype.com/t/search-function-is-not-working-properly/1021 "2019-11-14T12:47:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alessa](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@alessa](https://community.swiftype.com/u/alessa)
#### Post date: [November 14, 2019, 12:47pm UTC](https://community.swiftype.com/t/search-function-is-not-working-properly/1021/1 "2019-11-14T12:47:47Z")

</div>

Hi Dear,

We are using swifttype for searching, but there is some issue with the search results like:

when we search = ht2635, it returns the result,  
[https://api.swiftype.com/api/v1/public/engines/suggest.json?callback=jQuery112405894213207028338\_1573726696719&q=ht2635&engine\_key=LrBM6h3n5U7mhwTE6Rt-&per\_page=12&\_=1573652524917](https://api.swiftype.com/api/v1/public/engines/suggest.json?callback=jQuery112405894213207028338_1573726696719&q=ht2635&engine_key=LrBM6h3n5U7mhwTE6Rt-&per_page=12&_=1573652524917)

but when we search = 2635, it returns the no result,  
[https://api.swiftype.com/api/v1/public/engines/suggest.json?callback=jQuery112405894213207028338\_1573726696719&q=2635&engine\_key=LrBM6h3n5U7mhwTE6Rt-&per\_page=12&\_=1573652524917](https://api.swiftype.com/api/v1/public/engines/suggest.json?callback=jQuery112405894213207028338_1573726696719&q=2635&engine_key=LrBM6h3n5U7mhwTE6Rt-&per_page=12&_=1573652524917)

it should return the results because we removed the ‘ht’ from ‘ht2635’, or please let us know if there is any additional parameter in order to implement the like query.

thanks

---

<div class="post-metadata">

### Author: ![smiller](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@smiller](https://community.swiftype.com/u/smiller)
#### Post date: [November 14, 2019, 2:12pm UTC](https://community.swiftype.com/t/search-function-is-not-working-properly/1021/2 "2019-11-14T14:12:20Z")

</div>

What data type is your product\_sku field, I think only string types would do fuzzy matching? [Site Search Engine Schema Design Guide | Swiftype Documentation](https://swiftype.com/documentation/site-search/guides/schema-design)

---

<div class="post-metadata">

### Author: ![alessa](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@alessa](https://community.swiftype.com/u/alessa)
#### Post date: [November 15, 2019, 9:32am UTC](https://community.swiftype.com/t/search-function-is-not-working-properly/1021/3 "2019-11-15T09:32:33Z")

</div>

its string, in swiftype admin panel, we are getting result, but api not returning as i mentioned below:

when we search = ht2635, it returns the result,  
[https://api.swiftype.com/api/v1/public/engines/suggest.json?callback=jQuery112405894213207028338\_1573726696719&q=ht2635&engine\_key=LrBM6h3n5U7mhwTE6Rt-&per\_page=12&\_=1573652524917](https://api.swiftype.com/api/v1/public/engines/suggest.json?callback=jQuery112405894213207028338_1573726696719&q=ht2635&engine_key=LrBM6h3n5U7mhwTE6Rt-&per_page=12&_=1573652524917)

but when we search = 2635, it returns the no result,  
[https://api.swiftype.com/api/v1/public/engines/suggest.json?callback=jQuery112405894213207028338\_1573726696719&q=2635&engine\_key=LrBM6h3n5U7mhwTE6Rt-&per\_page=12&\_=1573652524917](https://api.swiftype.com/api/v1/public/engines/suggest.json?callback=jQuery112405894213207028338_1573726696719&q=2635&engine_key=LrBM6h3n5U7mhwTE6Rt-&per_page=12&_=1573652524917)

admin side result of ‘2635’

 ![image](https://us1.discourse-cdn.com/flex019/uploads/swiftype/original/1X/355e343611d322b895f0a51f818edd5941b0e2c1.png)
