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:
|
filter:
|
||||||
e_ngram_filter:
|
e_ngram_filter:
|
||||||
type: edge_ngram
|
type: edge_ngram
|
||||||
min_gram: 2
|
min_gram: 1
|
||||||
max_gram: 15
|
max_gram: 16
|
||||||
|
|
||||||
char_filter:
|
char_filter:
|
||||||
dash_to_underscore:
|
dash_to_underscore:
|
||||||
|
|
|
@ -23,7 +23,7 @@ pgconn = psycopg2.connect(dbparams)
|
||||||
cur = pgconn.cursor()
|
cur = pgconn.cursor()
|
||||||
# We MUST use NO QUERY CACHE because the values are insert on triggers and
|
# We MUST use NO QUERY CACHE because the values are insert on triggers and
|
||||||
# not through pgppool.
|
# 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)
|
fetches = cur.fetchmany(CHUNK_SIZE)
|
||||||
while fetches:
|
while fetches:
|
||||||
|
|
Référencer dans un nouveau ticket