modified search to specify a single field
added logging
added default fields
testing
constants