Hey guys!
I am pretty sure I am in the wrong mindset for this sort of query so I would appreciate any nudges in the right direction
So my use case:
I want all CreditCardDeposit requests
where the response (same UUID as the request) ErrorNo is 0
My currently mapped fields:
OperationType: ["Request","Reply"]
DepositAmount: int
ErrorNo: int
UUID: string
A successful deposit is in sql terms:
OperationName = CreditCardDeposit
AND Reply ErrorNo = 0
JOIN on Request UUID = Reply UUID
Requests and Replies are logged on separate lines (app exists between front end and hosts)
Since this query doesn't appear terribly complicated, is there a way I can structure a Get /my_index/_search query to accomplish this? Or do I need to think more about how I should be storing this data? If so, any tips?
Thanks!