I'm trying to find the correct search syntax to return me cases matching specific case numbers as well cases matching a specific search term. For example, I want to find case 7, case 9, and all cases matching "apple". My observations are:
bug:7 OR bug:9 (Works OK, gives me cases 7 and 9)
apple (Works OK, gives me all cases matching apple)
bug:7 OR bug:9 OR apple (Does not work, gives me only cases matching apple, and not cases 7 or 9)
bug:7 OR bug:9 OR project:fruit (Works OK, gives me cases 7 and 9 and all cases in fruit)
This seems inconsistent to me. I tried various other searches and it's hit-and-miss whether the OR will really work - seems to vary depending on what type of search terms you are using. Is there any way to do what I need?
P.S. The reason I need this is because I'm using the XML API to query certain cases, and unfortunately it takes a while for newly created cases to be indexed so that they can be searched for. So I'm trying to find a way to do a single query that matches my required search terms PLUS a number of case IDs for cases that I know were recently created. More on the problem with searching for newly created cases: