Spaces:
Sleeping
Sleeping
Update doc_searcher.py
Browse files- doc_searcher.py +3 -3
doc_searcher.py
CHANGED
|
@@ -32,7 +32,7 @@ class DocSearcher:
|
|
| 32 |
)
|
| 33 |
]
|
| 34 |
|
| 35 |
-
if type ==
|
| 36 |
filter = Filter(
|
| 37 |
must=[
|
| 38 |
FieldCondition(
|
|
@@ -45,7 +45,7 @@ class DocSearcher:
|
|
| 45 |
),
|
| 46 |
]
|
| 47 |
)
|
| 48 |
-
elif type ==
|
| 49 |
filter = Filter(
|
| 50 |
must=[
|
| 51 |
FieldCondition(
|
|
@@ -54,7 +54,7 @@ class DocSearcher:
|
|
| 54 |
)
|
| 55 |
]
|
| 56 |
)
|
| 57 |
-
elif type ==
|
| 58 |
filter = Filter(
|
| 59 |
must=[
|
| 60 |
FieldCondition(
|
|
|
|
| 32 |
)
|
| 33 |
]
|
| 34 |
|
| 35 |
+
if type == 0 and law_type is not None:
|
| 36 |
filter = Filter(
|
| 37 |
must=[
|
| 38 |
FieldCondition(
|
|
|
|
| 45 |
),
|
| 46 |
]
|
| 47 |
)
|
| 48 |
+
elif type == 0:
|
| 49 |
filter = Filter(
|
| 50 |
must=[
|
| 51 |
FieldCondition(
|
|
|
|
| 54 |
)
|
| 55 |
]
|
| 56 |
)
|
| 57 |
+
elif type == 1 and law_type is not None:
|
| 58 |
filter = Filter(
|
| 59 |
must=[
|
| 60 |
FieldCondition(
|