Skip to content

Commit c859a3f

Browse files
committed
Small adjustments
1 parent bdd6a2f commit c859a3f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/scholarag/app/routers/retrieval.py

-6
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ async def article_count(
230230
"multi_match": {
231231
"query": topic,
232232
"type": "phrase",
233-
"slop": 2,
234233
"fields": ["title", "text"],
235234
}
236235
}
@@ -248,7 +247,6 @@ async def article_count(
248247
"multi_match": {
249248
"query": region,
250249
"type": "phrase",
251-
"slop": 2,
252250
"fields": ["title", "text"],
253251
}
254252
}
@@ -266,7 +264,6 @@ async def article_count(
266264
"query": {
267265
"bool": {
268266
"must": [
269-
{"term": {"section": "Abstract"}},
270267
*topic_query,
271268
*regions_query,
272269
*filter_query_list,
@@ -395,7 +392,6 @@ async def article_listing(
395392
"multi_match": {
396393
"query": topic,
397394
"type": "phrase",
398-
"slop": 2,
399395
"fields": ["title", "text"],
400396
}
401397
}
@@ -413,7 +409,6 @@ async def article_listing(
413409
"multi_match": {
414410
"query": region,
415411
"type": "phrase",
416-
"slop": 2,
417412
"fields": ["title", "text"],
418413
}
419414
}
@@ -431,7 +426,6 @@ async def article_listing(
431426
"query": {
432427
"bool": {
433428
"must": [
434-
{"term": {"section": "Abstract"}},
435429
*topic_query,
436430
*regions_query,
437431
*filter_query_list,

0 commit comments

Comments
 (0)