def main():
conn.index({'text':'This is great!'},'text-index','doc',1)
conn.indices.refresh("text-index")
q1= TextQuery('text','This')
results = conn.search(q1,index='text-index',typename='doc')
for r in results:
print r;
def main():
conn.index({'text':'This is great!'},'text-index','doc',1)
conn.indices.refresh("text-index")
q1= TextQuery('text','This')
results = conn.search(q1,index='text-index',typename='doc')
for r in results:
print r;
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.