How to search for articles containing two words?

Ex.

http://www.site.com/?s=as+sa

This gives a perfect search result irrespective of the order of words.

If you want to add a custom query then you can use following:

$query = new WP_Query( 's=keyword+keyword2' );

and iterate through your query result.

Try this out.

error code: 523