Commits

ejucovy  committed 1819c45

fixes th:#10298 - search for filenames as well as text

  • Participants
  • Parent commits 6912f5e

Comments (0)

Files changed (1)

File multireposearch/sqlindexer.py

 
     def find_words(self, query):
         db = self.env.get_read_db()
-        sql, args = search_to_sql(db, ['contents'], query)
+        sql, args = search_to_sql(db, ['filename', 'contents'], query)
         cursor = db.cursor()
         cursor.execute(self.query % sql, args)
         for id, filename, repo in cursor: