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
钟尚武
physical
Commits
e2e7ab49
Commit
e2e7ab49
authored
May 15, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除多余代码
parent
8a73118a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
topic.py
search/utils/topic.py
+1
-1
No files found.
search/utils/topic.py
View file @
e2e7ab49
...
@@ -920,6 +920,7 @@ class TopicUtils(object):
...
@@ -920,6 +920,7 @@ class TopicUtils(object):
def
business_topic_ids
(
cls
,
filters
,
nfilters
,
sorts_by
,
offset
=
0
,
size
=
10
,
index_name
=
"topic"
,
filter_online
=
True
):
def
business_topic_ids
(
cls
,
filters
,
nfilters
,
sorts_by
,
offset
=
0
,
size
=
10
,
index_name
=
"topic"
,
filter_online
=
True
):
must
=
cls
.
business_filters
(
filters
,
filter_online
=
filter_online
)
must
=
cls
.
business_filters
(
filters
,
filter_online
=
filter_online
)
logging
.
info
(
"get must:
%
s"
%
must
)
q
=
{
q
=
{
"query"
:
{
"query"
:
{
"bool"
:
{
"bool"
:
{
...
@@ -952,7 +953,6 @@ class TopicUtils(object):
...
@@ -952,7 +953,6 @@ class TopicUtils(object):
"total_count"
:
0
"total_count"
:
0
}
}
@classmethod
@classmethod
@classmethod
def
business_filters
(
cls
,
filters
,
filter_online
=
True
):
def
business_filters
(
cls
,
filters
,
filter_online
=
True
):
"""处理过滤器部分。"""
"""处理过滤器部分。"""
...
...
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