how to use And ,or clause to filter a document in mongo db java

getQuery1.put("qty", new BasicDBObject("$lte", 1000)); MongoCursor cursor1 =collection.find(getQuery1).iterator();