Use facet queries to match the field values on the input boxes.