Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
140bfdd3
Commit
140bfdd3
authored
Oct 05, 2018
by
Pablo Panero
Browse files
BugFix: Default schema already has prefix added
parent
bb474fcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
cern_search_rest_api/modules/cernsearch/utils.py
View file @
140bfdd3
...
...
@@ -40,11 +40,9 @@ def cern_search_record_to_index(record):
if
index_name
.
startswith
(
prefix
)
and
len
(
index_name
)
>
len
(
prefix
)
+
2
:
return
index_name
,
index_name
[
len
(
prefix
)
+
1
:]
current_app
.
logger
.
debug
(
'Index {0}{1} - Doc {2}'
.
format
(
current_app
.
config
[
'INDEX_PREFIX'
],
current_app
.
logger
.
debug
(
'Index {0} - Doc {1}'
.
format
(
current_app
.
config
[
'INDEXER_DEFAULT_INDEX'
],
current_app
.
config
[
'INDEXER_DEFAULT_DOC_TYPE'
])
)
return
(
'{0}{1}'
.
format
(
current_app
.
config
[
'INDEX_PREFIX'
],
current_app
.
config
[
'INDEXER_DEFAULT_INDEX'
]),
return
(
current_app
.
config
[
'INDEXER_DEFAULT_INDEX'
],
current_app
.
config
[
'INDEXER_DEFAULT_DOC_TYPE'
])
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment