Back to index

moin  1.9.0~rc2
Public Member Functions
MoinMoin.search.Xapian.indexing.MoinSearchConnection Class Reference

List of all members.

Public Member Functions

def get_all_documents
def get_all_documents_with_fields

Detailed Description

Definition at line 50 of file indexing.py.


Member Function Documentation

Return all the documents in the index (that match query, if given).

Definition at line 52 of file indexing.py.

00052 
00053     def get_all_documents(self, query=None):
00054         """
00055         Return all the documents in the index (that match query, if given).
00056         """
00057         document_count = self.get_doccount()
00058         query = query or self.query_all()
00059         hits = self.search(query, 0, document_count)
00060         return hits

Here is the call graph for this function:

Here is the caller graph for this function:

Return all the documents in the index (that match the field=value kwargs given).

Definition at line 61 of file indexing.py.

00061 
00062     def get_all_documents_with_fields(self, **fields):
00063         """
00064         Return all the documents in the index (that match the field=value kwargs given).
00065         """
00066         field_queries = [self.query_field(field, value) for field, value in fields.iteritems()]
00067         query = self.query_composite(self.OP_AND, field_queries)
00068         return self.get_all_documents(query)
00069 

Here is the call graph for this function:


The documentation for this class was generated from the following file: