fix undefined variable in search_lucene