|
__init__(self,
basedir,
analyzer=None,
create_allowed=True)
initialize or open an indexing database |
source code
|
|
|
flush(self,
optimize=False)
flush the content of the database - to force changes to be written to
disk |
source code
|
|
query type of the specific implemention
|
make_query(self,
args,
require_all=True,
analyzer=None)
create simple queries (strings or field searches) or combine multiple
queries (AND/OR) |
source code
|
|
xapian.Query | PyLucene.Query
|
|
xapian.Query | PyLucene.Query
|
|
xapian.Query | PyLucene.Query
|
|
xapian.Query | PyLucene.Query
|
|
|
|
xapian.Document | PyLucene.Document
|
|
|
|
|
|
|
|
|
|
|
|
|
|
subclass of CommonEnquire
|
|
|
|
list of dicts
|
search(self,
query,
fieldnames)
return a list of the contents of specified fields for all matches of
a query |
source code
|
|
|
|
|
_walk_matches(self,
query,
function,
arg_for_function=None)
use this function if you want to do something with every single match
of a query |
source code
|
|
|
|
int | dict
|
|
|
_decode(self,
text)
decode the string from utf-8 or charmap perform unicde normalization |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
|
field_analyzers = { }
mapping of field names and analyzers - see 'set_field_analyzers'
|
|
ANALYZER_EXACT = 0
exact matching: the query string must equal the whole term string
|
|
ANALYZER_PARTIAL = 2
partial matching: a document matches, even if the query string only
matches the beginning of the term value.
|
|
ANALYZER_TOKENIZE = 4
tokenize terms and queries automatically
|
|
ANALYZER_DEFAULT = 6
the default analyzer to be used if nothing is configured
|
|
QUERY_TYPE = None
override this with the query class of the implementation
|
|
INDEX_DIRECTORY_NAME = None
override this with a string to be used as the name of the indexing
directory/file in the filesystem
|