How to implement free text search using content stack delivery api?

  • 18 September 2022
  • 2 replies


I am trying to implement free text search using content stack delivery api. I am thinking to use search query of JavaScript SDK. However, as per documentation search query is deprecated since version 3.15.0. What are the alternatives for implementing free text search using javascript SDK?  


Best answer by ronbreger 21 September 2022, 17:24

View original

2 replies

Userlevel 1

Hi Dheer,


Unfortunately, the support for free text search is removed from version 3.15.0 but you can use our search equals or search by regex functions to filter the data. However, these operators works on fields so you’ll have to specify the fields you want the api to search data from.


I hope this help!






Userlevel 2

Hi Dheer,


For free text search, most projects are using a search solution is recommended for end-user search. A search solution will address various use cases including spelling, ranking, linguistics, relevant results, etc.  Please see for examples.


Using the find() with Query() and you can add a regex expression, but a search solution would be best for end-user free text search.


Hopefully this helps. 

- Ron -