lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (@MITRE.org)" <DSMI...@mitre.org>
Subject Re: Solr 4.0 Spatial Search schema.xml and data-config.xml
Date Thu, 15 Nov 2012 14:40:15 GMT
The particular JavaScript I referred to is this:

function processAdd(cmd) {

  doc = cmd.solrDoc;  // org.apache.solr.common.SolrInputDocument
  
  lat = doc.getFieldValue("LATITUDE");
  lon = doc.getFieldValue("LONGITUDE");
  
  if (lat != null && lon != null)
    doc.setField("latLon", lat+","+lon);

}



-----
 Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-0-Spatial-Search-schema-xml-and-data-config-xml-tp4020376p4020492.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message