Content Delivery API - Search
# help-with-umbraco
p
Hi everynone! I'm currently rewritting an search page so it uses react and Umbracos Content Delivery Api. My problem is, that I cant seem to find any good examples or code of a search page implementing content delivery api, where the user can search for more than just the name of the items. I need to be able so search on a wide varity of things, such as text elements inside the blockGrid, author, id and of course the name/title. But if I'm reading things correctly on umbraco docs, its only filter=name:xxxx? or else I have to do a manuel / custom filter? The examine index works great this way with wild cards searches What are the best way to create a headless/app search with the Content delivery Api or do I need to something else? Friendly regards Nicklas
d
Great question @Pandaman. I too have a site build using NextJs and Content Delivery Api and would want to implement Search. I too have not encountered any search examples. Can someone point us to some documentation or examples?
p
@Sander L It was the first thing I consulted before I asked here 🙂 - I ended up going through the source code and write my own extension for the umbraco api content delivery api controller and extended a method that uses examine external index and return the ID's of the content that I wish to have the CDA return to my headless app.
s
Awesome. Just wondered. Another suggestion was indeed write something custom that searches in examine and returns the IDs. Do you have some general start to share for others that might run into this?
d
@User can you please share some more details, code snippets of your solution?
p
I found out that I can't crop images or use the size parameter on the image url. is this intentional or do somebody here have an solution? https://cdn.discordapp.com/attachments/1277310995471143044/1277946104478040074/image.png?ex=66cf038e&is=66cdb20e&hm=c7f15c87658c6456d68dbbb686063ff2f7cefd96da2d29e7ee103791021d6d53&
7 Views