modified some things to get elasticsearch to work with 'where clause' for orgid