Skip to content

Commit

Permalink
Changed matchmode to ANY instead of EXTENDED2.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMikita committed Mar 10, 2016
1 parent 2736a4a commit 302762a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/websearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def process_query(ret, index, query):
# if index in indexPorts:
# index = indexPorts[index]

querylist = query.split(" ")
query = "|".join(querylist)
#querylist = query.split(" ")
#query = "|".join(querylist)

repeat = 3
res = None
Expand All @@ -87,6 +87,7 @@ def process_query(ret, index, query):
cl.SetServer (host, port)
cl.SetConnectTimeout(2.0) # float seconds
cl.SetLimits(0, 20)#offset, limit, maxmatches=0, cutoff=0
cl.SetMatchMode(SPH_MATCH_ANY)
# Process query under index
res = cl.Query ( query, index )
repeat = 0
Expand Down

0 comments on commit 302762a

Please sign in to comment.