[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [outreachy] progress



Hi,

I am now able to upload the JSON document obtained from Perceval to ElasticSearch and then query it again to get the results. Below is my output:-

----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------

>>> es_result = es.search(index="messages", doc_type="summary",body={"query":{"match":{"from": "Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>"}}})

>>> print(es_result)

{'took': 13, 'timed_out': False, '_shards': {'total': 5, 'successful': 5, 'failed': 0}, 'hits': {'total': 48, 'max_score': 9.135099, 'hits': [{'_index': 'messages', '_type': 'summary', '_id': 'AVtR-Nw_GwYUfHJIT4Q4', '_score': 9.135099, '_source': {'from': 'Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>', 'subject': 'Re: [xen-tct] Roadmap for QEMU-traditional', 'date': '2014-04-18T17:01:08-04:00'}}, {'_index': 'messages', '_type': 'summary', '_id': 'AVtSJjdrGwYUfHJIT4SE', '_score': 9.135099, '_source': {'from': 'Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>', 'subject': 'Re: [xen-tct] [AGENDA] Monthly Xen.org Technical Call (April 9)', 'date': '2014-04-09T09:45:26-04:00'}}, {'_index': 'messages', '_type': 'summary', '_id': 'AVtSJjgkGwYUfHJIT4SZ', '_score': 9.135099, '_source': {'from': 'Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>', 'subject': 'Re: [xen-tct] Roadmap for QEMU-traditional', 'date': '2014-04-18T10:01:42-04:00'}}, {'_index': 'messages', '_type': 'summary', '_id': 'AVtSJjgtGwYUfHJIT4Sa', '_score': 9.135099, '_source': {'from': 'Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>', 'subject': 'Re: [xen-tct] Roadmap for QEMU-traditional', 'date': '2014-04-18T10:01:42-04:00'}}, {'_index': 'messages', '_type': 'summary', '_id': 'AVtSJjhRGwYUfHJIT4Se', '_score': 9.135099, '_source': {'from': 'Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>', 'subject': 'Re: [xen-tct] Roadmap for QEMU-traditional', 'date': '2014-04-18T17:01:08-04:00'}}, {'_index': 'messages', '_type': 'summary', '_id': 'AVtSNDuSGwYUfHJIT4S_', '_score': 9.135099, '_source': {'from': 'Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>', 'subject': 'Re: [xen-tct] Roadmap for QEMU-traditional', 'date': '2014-04-18T10:01:42-04:00'}}, {'_index': 'messages', '_type': 'summary', '_id': 'AVtSNNd8GwYUfHJIT4TI', '_score': 9.135099, '_source': {'from': 'Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>', 'subject': 'Re: [xen-tct] [AGENDA] Monthly Xen.org Technical Call (April 9)', 'date': '2014-04-09T09:45:26-04:00'}}, {'_index': 'messages', '_type': 'summary', '_id': 'AVtSIzL-GwYUfHJIT4RE', '_score': 9.05406, '_source': {'from': 'Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>', 'subject': 'Re: [xen-tct] [AGENDA] Monthly Xen.org Technical Call (April 9)', 'date': '2014-04-09T09:45:26-04:00'}}, {'_index': 'messages', '_type': 'summary', '_id': 'AVtR9q9ZGwYUfHJIT4QU', '_score': 9.05406, '_source': {'from': 'Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>', 'subject': 'Re: [xen-tct] Roadmap for QEMU-traditional', 'date': '2014-04-18T10:01:42-04:00'}}, {'_index': 'messages', '_type': 'summary', '_id': 'AVtR9q-JGwYUfHJIT4QZ', '_score': 9.05406, '_source': {'from': 'Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>', 'subject': 'Re: [xen-tct] Roadmap for QEMU-traditional', 'date': '2014-04-18T17:01:08-04:00'}}]}}

----------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------

I am still working on parsing of the arguments. Also, how do I proceed next? I will have to annotate the threads and then upload it again to ElasticSearch with the messageIDs? What is the algorithm to be used?


thanks

Vaishnavi



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.