Logo Search packages:      
Sourcecode: zeitgeist-extensions version File versions  Download package

def fts::Indexer::_add_doc_filters (   self,
  event,
  doc 
) [private]

Adds the filtering rules to the doc. Filtering rules will
   not affect the relevancy ranking of the event/doc

Definition at line 419 of file fts.py.

00419                                              :
            """Adds the filtering rules to the doc. Filtering rules will
               not affect the relevancy ranking of the event/doc"""
            doc.add_term (FILTER_PREFIX_EVENT_INTERPRETATION+event.interpretation)
            doc.add_term (FILTER_PREFIX_EVENT_MANIFESTATION+event.manifestation)
            doc.add_term (FILTER_PREFIX_ACTOR+event.actor)
            
            for su in event.subjects:
                  doc.add_term (FILTER_PREFIX_SUBJECT_INTERPRETATION+su.interpretation)
                  doc.add_term (FILTER_PREFIX_SUBJECT_MANIFESTATION+su.manifestation)
      
      def _index_event_real (self, event):


Generated by  Doxygen 1.6.0   Back to index