Search documents from one index by filtering with two fields data

How can i search documents from one index by filtering with two fields data
?

Ex: i want to search like username and passwords fields data from the
index, if it matches i need to fetch all the documents of that match in
specific index and type

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/29f32f1d-4bca-4023-825f-c1abb1a3e19c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.