Skip to content

Commit 302762a

Browse files
author
MartinMikita
committed
Changed matchmode to ANY instead of EXTENDED2.
1 parent 2736a4a commit 302762a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: web/websearch.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def process_query(ret, index, query):
7575
# if index in indexPorts:
7676
# index = indexPorts[index]
7777

78-
querylist = query.split(" ")
79-
query = "|".join(querylist)
78+
#querylist = query.split(" ")
79+
#query = "|".join(querylist)
8080

8181
repeat = 3
8282
res = None
@@ -87,6 +87,7 @@ def process_query(ret, index, query):
8787
cl.SetServer (host, port)
8888
cl.SetConnectTimeout(2.0) # float seconds
8989
cl.SetLimits(0, 20)#offset, limit, maxmatches=0, cutoff=0
90+
cl.SetMatchMode(SPH_MATCH_ANY)
9091
# Process query under index
9192
res = cl.Query ( query, index )
9293
repeat = 0

0 commit comments

Comments
 (0)