correctly handle unfiled objects
flatten search results