Optimizing the search for transiting planets in long time seriesAviv OfirA&A, 561 (2014) A138DOI: https://doi.org/10.1051/0004-6361/201220860