Search multiple streams
Created 6 years ago by pdring

Hi, I'd like to set up a simple search function which looks through both posts and pages. However I'm missing the syntax required to search more than one namespace/stream combination.

For example, this works fine: {% set results = entries('posts', 'posts').search("london").get() %}

But if I add a second namespace/stream combination, only the first one is detected: {% set results = entries('posts', 'posts', 'pages', 'pages').search("london").get() %}

Is there a way to do this? Thanks.