# HG changeset patch # User Samuel Trégouët <samuel.tregouet@logilab.fr> # Date 1466000267 -7200 # Wed Jun 15 16:17:47 2016 +0200 # Node ID 9e6a7b778192f4359edf62a460523917ef8edf61 # Parent afd8a876c64c05c4a55b8b9da04adc46e2329f5f never select eid attribute in fulltext_indexable_rql eid is already selected via 'V is `Etype`' diff --git a/es.py b/es.py --- a/es.py +++ b/es.py @@ -90,12 +90,13 @@ rql.append('%s %s %s' % (V, attr, var)) selected.append(var) for rschema, tschema in schema.eschema(etype).attribute_definitions(): + if rschema.type == 'eid': + continue if tschema.type in ('Int', 'Float'): attr = rschema.type - if eid and attr != 'eid': - var = next(varmaker) - rql.append('%s %s %s' % (V, attr, var)) - selected.append(var) + var = next(varmaker) + rql.append('%s %s %s' % (V, attr, var)) + selected.append(var) for attr in ('creation_date', 'modification_date',) + CUSTOM_ATTRIBUTES.get(etype, ()): var = next(varmaker) rql.append('%s %s %s' % (V, attr, var))