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
05d023f3335d
Commit
05d023f3335d
authored
1 year ago
by
Katia Saurfelt
Browse files
Options
Downloads
Patches
Plain Diff
chore(black)
parent
e400be4f7a85
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!74
chore(es): make ES connection timeout configurable in cubicweb all-in-one config
,
!73
chore(es): make ES connection timeout configurable in cubicweb all-in-one config
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cubicweb_elasticsearch/search_helpers.py
+2
-1
2 additions, 1 deletion
cubicweb_elasticsearch/search_helpers.py
cubicweb_elasticsearch/views.py
+1
-1
1 addition, 1 deletion
cubicweb_elasticsearch/views.py
test/test_elastic_search.py
+0
-1
0 additions, 1 deletion
test/test_elastic_search.py
with
3 additions
and
3 deletions
cubicweb_elasticsearch/search_helpers.py
+
2
−
1
View file @
05d023f3
...
...
@@ -41,7 +41,8 @@
~N after a word signifies edit distance (fuzziness)
~N after a phrase signifies slop amount
https://www.elastic.co/guide/en/elasticsearch/reference/7.9/query-dsl-simple-query-string-query.html
"""
# noqa
https://www.elastic.co/guide/en/elasticsearch/reference/7.9/query-dsl-simple-query-string-query.html
"""
# noqa
# for all operators except "-", if it appears, then we assume it is a simple query
for
operator
in
SIMPLE_QUERY_OPERATORS
.
replace
(
"
-
"
,
""
):
if
operator
in
query
:
...
...
This diff is collapsed.
Click to expand it.
cubicweb_elasticsearch/views.py
+
1
−
1
View file @
05d023f3
...
...
@@ -353,7 +353,7 @@
del
url_params
[
"
page
"
]
self
.
w
(
'
<div class=
"
facetBody vocabularyFacet
"
>
'
)
self
.
w
(
'
<div class=
"
facetTitle
"
>{}</div>
'
.
format
(
attribute
))
for
(
tag
,
count
,
selected
)
in
response
.
facets
[
attribute
]:
for
tag
,
count
,
selected
in
response
.
facets
[
attribute
]:
# facetValueSelected / facetValueDisabled in class
facet_item
=
(
'
<div class=
"
facetValue facetCheckBox
"
>
'
...
...
This diff is collapsed.
Click to expand it.
test/test_elastic_search.py
+
0
−
1
View file @
05d023f3
...
...
@@ -157,7 +157,6 @@
class
ElasticSearchViewsTC
(
testlib
.
CubicWebTC
):
# TODO generate X tests ranging the number of results from 1 to 150
@patch
(
"
elasticsearch_dsl.search.Search.execute
"
,
new
=
mock_execute_1
)
@patch
(
"
elasticsearch_dsl.connections.connections.get_connection
"
,
new
=
mock_cnx
)
...
...
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