MoinMoin.search package

Submodules

MoinMoin.search.analyzers module

MoinMoin - Misc. tokenizers and analyzers for whoosh indexing

class MoinMoin.search.analyzers.AclTokenizer(acl_rights_contents)[source]

Bases: whoosh.analysis.tokenizers.Tokenizer

Access control list tokenizer

class MoinMoin.search.analyzers.MimeTokenizer[source]

Bases: whoosh.analysis.tokenizers.Tokenizer

Content type tokenizer

MoinMoin.search.analyzers.item_name_analyzer()[source]

Analyzer behaviour:

Input: u”some item name”, u”SomeItem/SubItem”, u”GSOC2011”

Output: u”some”, u”item”, u”name”; u”Some”, u”Item”, u”Sub”, u”Item”; u”GSOC”, u”2011”

Module contents

MoinMoin - MoinMoin search package

class MoinMoin.search.SearchForm(value=Unspecified, **kw)[source]

Bases: flatland.schema.declarative.Form

field_schema = [<class 'flatland.schema.declarative.String'>]
submit_label = l'Search'
validators = [<MoinMoin.search.ValidSearch object>]
class MoinMoin.search.ValidSearch(**kw)[source]

Bases: flatland.validation.base.Validator

Validator for a valid search form

too_short_query_msg = l'Search query too short.'
validate(element, state)[source]