equal
deleted
inserted
replaced
892 |
892 |
893 def get_words(self): |
893 def get_words(self): |
894 """used by the full text indexer to get words to index |
894 """used by the full text indexer to get words to index |
895 |
895 |
896 this method should only be used on the repository side since it depends |
896 this method should only be used on the repository side since it depends |
897 on the indexer package |
897 on the logilab.db package |
898 |
898 |
899 :rtype: list |
899 :rtype: list |
900 :return: the list of indexable word of this entity |
900 :return: the list of indexable word of this entity |
901 """ |
901 """ |
902 from indexer.query_objects import tokenize |
902 from logilab.db.fti import tokenize |
903 # take care to cases where we're modyfying the schema |
903 # take care to cases where we're modyfying the schema |
904 pending = self._cw.transaction_data.setdefault('pendingrdefs', set()) |
904 pending = self._cw.transaction_data.setdefault('pendingrdefs', set()) |
905 words = [] |
905 words = [] |
906 for rschema in self.e_schema.indexable_attributes(): |
906 for rschema in self.e_schema.indexable_attributes(): |
907 if (self.e_schema, rschema) in pending: |
907 if (self.e_schema, rschema) in pending: |