Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
physical
Commits
1a574134
Commit
1a574134
authored
Mar 23, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
b36ceeff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
topic.py
search/utils/topic.py
+6
-10
No files found.
search/utils/topic.py
View file @
1a574134
...
...
@@ -721,7 +721,6 @@ class TopicUtils(object):
if
sorts
:
q
[
"sort"
]
=
sorts
try
:
result_dict
=
ESPerform
.
get_search_results
(
ESPerform
.
get_cli
(),
sub_index_name
=
index_name
,
...
...
@@ -739,8 +738,6 @@ class TopicUtils(object):
"total_count"
:
0
}
@classmethod
def
business_topic_ids
(
cls
,
filters
,
nfilters
,
sorts_by
,
offset
=
0
,
size
=
10
,
index_name
=
"topic"
,
filter_online
=
True
):
...
...
@@ -755,22 +752,21 @@ class TopicUtils(object):
"must"
:
must
,
"must_not"
:
cls
.
process_nfilters
(
nfilters
),
},
"multi_match"
:{
"fields"
:
[
"title"
,
"content"
],
"type"
:
"cross_fields"
,
"operator"
:
"or"
,
"query"
:
query
"multi_match"
:
{
"fields"
:
[
"title"
,
"content"
],
"type"
:
"cross_fields"
,
"operator"
:
"or"
,
"query"
:
query
}
}
}
logging
.
info
(
"get query business_topic:
%
s"
%
q
)
if
sorts_by
:
sorts
=
cls
.
process_sort
(
sorts_by
)
if
sorts
:
q
[
"sort"
]
=
sorts
try
:
result_dict
=
ESPerform
.
get_search_results
(
ESPerform
.
get_cli
(),
sub_index_name
=
index_name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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