equal
deleted
inserted
replaced
141 for rschema in entity.e_schema.indexable_attributes(): |
141 for rschema in entity.e_schema.indexable_attributes(): |
142 if (entity.e_schema, rschema) in pending: |
142 if (entity.e_schema, rschema) in pending: |
143 continue |
143 continue |
144 weight = self.attr_weight.get(rschema, 'C') |
144 weight = self.attr_weight.get(rschema, 'C') |
145 try: |
145 try: |
146 value = entity.printable_value(rschema, format='text/plain') |
146 value = entity.printable_value(rschema, format=u'text/plain') |
147 except TransformError: |
147 except TransformError: |
148 continue |
148 continue |
149 except Exception: |
149 except Exception: |
150 self.exception("can't add value of %s to text index for entity %s", |
150 self.exception("can't add value of %s to text index for entity %s", |
151 rschema, entity.eid) |
151 rschema, entity.eid) |