List Item Ids and Content Item Ids are not available in the search index, you can add them in the channel configuration as “Extended simple search fields”.

This query does not work as long as you haven’t added those fields to the channel. By default Ids from List Items or related content in Relationship fields are not present in the search index and therefore not available in the search.