I have a single index containing user information. I would like to make a search for documents matching either the NAME or EMAIL, give a count of matched documents for each and also a total count (NAME + EMAIL) with no duplicates between them. I was trying to use the aggregations, but dont quite seem to understand what to use.
Asked
Active
Viewed 69 times
0
-
is it exact match or partial match for name and email? – deerawan Jul 11 '18 at 00:45
-
@bhoo-day Preferably an exact match – nebula186 Jul 11 '18 at 16:33