Merge pull request #872 from tomleb/some_fix
Fix single letter search and wrong column name
Cette révision appartient à :
révision
7ecae17679
2 fichiers modifiés avec 3 ajouts et 3 suppressions
|
@ -24,8 +24,8 @@ settings:
|
|||
filter:
|
||||
e_ngram_filter:
|
||||
type: edge_ngram
|
||||
min_gram: 2
|
||||
max_gram: 15
|
||||
min_gram: 1
|
||||
max_gram: 16
|
||||
|
||||
char_filter:
|
||||
dash_to_underscore:
|
||||
|
|
|
@ -23,7 +23,7 @@ pgconn = psycopg2.connect(dbparams)
|
|||
cur = pgconn.cursor()
|
||||
# We MUST use NO QUERY CACHE because the values are insert on triggers and
|
||||
# not through pgppool.
|
||||
cur.execute("""/*NO QUERY CACHE*/ SELECT id, torrent_id, action FROM reindex_torrents""")
|
||||
cur.execute("""/*NO QUERY CACHE*/ SELECT reindex_torrents_id, torrent_id, action FROM reindex_torrents""")
|
||||
|
||||
fetches = cur.fetchmany(CHUNK_SIZE)
|
||||
while fetches:
|
||||
|
|
Référencer dans un nouveau ticket