X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zookeeper%2Fsolr%2Fcollection1%2Fconf%2Fvelocity%2Fquery_spatial.vm;fp=zookeeper%2Fsolr%2Fcollection1%2Fconf%2Fvelocity%2Fquery_spatial.vm;h=2bc204493da15838536cfa9601d46b5599206497;hb=df39a9c5d2f4247b0682f2c6cf0d64b22edfaadd;hp=0000000000000000000000000000000000000000;hpb=8373b5d73c5a09872b07edb5c23b76a7f07fd055;p=lui-solr.git diff --git a/zookeeper/solr/collection1/conf/velocity/query_spatial.vm b/zookeeper/solr/collection1/conf/velocity/query_spatial.vm new file mode 100644 index 0000000..2bc2044 --- /dev/null +++ b/zookeeper/solr/collection1/conf/velocity/query_spatial.vm @@ -0,0 +1,75 @@ +#** + * Query logic for selecting location / Geospatial search + *# + +#set($queryOpts = $params.get("queryOpts")) + +#if($queryOpts == "spatial") + +
+ + #set($loc = $request.params.get('pt')) + ## Normalize first trip through to "none" because + ## an empty string generates an error message later on + #if( ! $loc ) + #set( $loc = "none" ) + #end + + #set($dist = $request.params.get('d', "10")) + + ## Cities for The Select List + #set( $cities = { + "none": "No Filter", + "45.17614,-93.87341": "Buffalo, MN", + "37.7752,-100.0232": "Dodge City, KS", + "35.0752,-97.032": "Oklahoma City, OK", + "37.7752,-122.4232": "San Francisco CA" + }) + + + + + Distance (KM): + + + + + + + +
+ + + +#end