|
Methods defined here:
- __init__(self, server=None, test=False)
- API to assist in building taxon nodes and storing them in Solr.
:param server: solr server http URL
- add(self, catalog, taxon: opensextant.TaxCat.Taxon)
- Add the given taxon to the index, increment the internal counter.
:param catalog: catalog ID
:param taxon:
:return:
- add_stopwords(self, stopfile)
- add_wordlist(self, catalog, datafile, start_id, taxnode=None, minlen=1)
- Given a simple one column word list file, each row of data is added
to catalog as a Taxon; taxnode may be used as a prefix for the words
Add a series of organized word lists to a single Catalog, but manage
each wordlist with some prefix taxon path.
add_wordlist('CAT', f1, 400, taxonode='first')
add_wordlist('CAT', f2, 500, taxonode='second')
add_wordlist('CAT', f3, 600, taxonode='third')
add_wordlist('CAT', f4, 700, taxonode='fourth')
- optimize(self)
- purge(self, catalog)
- save(self, flush=False)
- set_server(self, svr)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|