This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# antes de importar nada | |
from gevent import monkey | |
monkey.patch_socket() | |
import gevent | |
from gevent import socket | |
def InsertData(line, value): | |
data = line.split(',') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#index is like this | |
index = [ | |
('content indexed', object_id), | |
('test string', 1), | |
... | |
] | |
def _search(q): | |
if q: | |
q = q.lower() |