Are you using a shortened URL? if you aren't, you can build and inject your own search terms right into the url.
https://localhost:5601/yoj/app/kibana?#/visualize/create?type=line&indexPattern=split_line_graph&_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:'2016-05-25T23:51:17.805Z',mode:absolute,to:'2016-05-26T00:00:04.127Z'))&_a=(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'location:!'San%20Jose!'%20OR%20location:!'Colorado!'')),uiState:(),vis:(aggs:!((id:'1',params:(),schema:metric,type:count),(id:'2',params:(customInterval:'2h',extended_bounds:(),field:timestamp,interval:auto,min_doc_count:1),schema:segment,type:date_histogram)),listeners:(),params:(addLegend:!t,addTimeMarker:!f,addTooltip:!t,defaultYExtents:!f,drawLinesBetweenPoints:!t,interpolate:linear,radiusRatio:9,scale:linear,setYExtents:!f,shareYAxis:!t,showCircles:!t,smoothLines:!f,times:!(),yAxis:()),title:'New%20Visualization',type:line))
That's my URL, and my search phrase is this bit here:
query:'location:!'San%20Jose!'%20OR%20location:!'Colorado!'')
So if you're embedding this visualization into your own app, then you can build whatever UI that you want, have it generate the search phrase, and embed it into the url.