Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
elasticsearch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
elasticsearch
Commits
9e6a7b778192
Commit
9e6a7b778192
authored
8 years ago
by
Samuel Trégouët
Browse files
Options
Downloads
Patches
Plain Diff
never select eid attribute in fulltext_indexable_rql
eid is already selected via 'V is `Etype`'
parent
afd8a876c64c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
es.py
+5
-4
5 additions, 4 deletions
es.py
with
5 additions
and
4 deletions
es.py
+
5
−
4
View file @
9e6a7b77
...
...
@@ -90,5 +90,7 @@
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
...
...
@@ -93,9 +95,8 @@
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
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment