 <p>Does query like this work for you <code>q=id:(id1 OR id2 OR id3) OR id:yy*</code><br> You can use <code>id:(id1 OR id2 OR id3)</code> to search for ids in the id field and <code>id:yy*</code> for the prefix query to check for ids starting with yy</p>