~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/search.py

  • Committer: Martin Albisetti
  • Date: 2008-07-31 05:41:42 UTC
  • Revision ID: argentina@gmail.com-20080731054142-vgeq38gl18ln922x
Use sqlite3 by default

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
19
#
20
20
import sets
 
21
import os
21
22
try:
22
23
    from bzrlib.plugins.search import errors
23
24
    from bzrlib.plugins.search import index as _mod_index
25
26
except ImportError:
26
27
    _mod_index = None
27
28
 
28
 
 
29
29
def search_revisions(branch, query_list, suggest=False):
30
30
    """
31
31
    Search using bzr-search plugin to find revisions matching the query.
32
32
    This can either suggest query terms, or revision ids.
33
 
 
 
33
    
34
34
    param branch: branch object to search in
35
35
    param query_list: string to search
36
36
    param suggest: Optional flag to request suggestions instead of results