Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
admin:features:geo:indexing [2011/01/10 23:35]
els
admin:features:geo:indexing [2011/04/13 03:30]
127.0.0.1 external edit
Line 1: Line 1:
 +~~NOTOC~~
 {{page>:​top_add&​nofooter&​noeditbtn}} {{page>:​top_add&​nofooter&​noeditbtn}}
  
Line 5: Line 6:
 ===== Geographic Searches ===== ===== Geographic Searches =====
  
-[[admin:​features:​geo:​home|Overview]] ​-> [[admin:​features:​geo:​latlong|Latitude and Longitude]] ​-> [[admin:​features:​geo:​radius|Radius Distance Searches]] ​-> **[[admin:​features:​geo:​indexing|Indexing]]** ​-> [[admin:​features:​geo:​optimization|Optimization]]+[[admin:​features:​geo:​home|Overview]] ​[[admin:​features:​geo:​latlong|Latitude and Longitude]] ​[[admin:​features:​geo:​radius|Radius Distance Searches]] ​**[[admin:​features:​geo:​indexing|Indexing]]** ​[[admin:​features:​geo:​optimization|Optimization]]
 ---- ----
  
Line 15: Line 16:
   * DOUBLE   * DOUBLE
   * CHARACTER   * CHARACTER
-  * STRING+  * STRING
  
 If geographic coordinates are stored in character-class datatypes, Omnidex will parse the latitude and longitude. ​ Omnidex can accept the following notations: If geographic coordinates are stored in character-class datatypes, Omnidex will parse the latitude and longitude. ​ Omnidex can accept the following notations:
Line 32: Line 33:
 **Example** **Example**
  
-<​code>​+<​code ​sql>
 create table               "​ZIPCODES"​ create table               "​ZIPCODES"​
- ​physical ​                 "dat\zipcodes.dat"​+ ​physical ​                 "dat/zipcodes.dat"​
  (  (
-  "​ZIP" ​                   ​STRING(9) ​                        +  "​ZIP" ​                   STRING(9) ​                        
-  "​CITY" ​                  STRING(25) ​                      +  "​CITY" ​                  ​STRING(25) ​                      
   "​COUNTY_CODE" ​           CHARACTER(3),​   "​COUNTY_CODE" ​           CHARACTER(3),​
   "​STATE" ​                 CHARACTER(2), ​                     ​   "​STATE" ​                 CHARACTER(2), ​                     ​
Line 55: Line 56:
 Geographic coordinates are indexed in a multi-column Omnidex index containing first the latitude and then the longitude. ​ This index will then be available for use in optimizing the [[dev:​sql:​functions:​distance|$DISTANCE function]] in SQL SELECT statements. Geographic coordinates are indexed in a multi-column Omnidex index containing first the latitude and then the longitude. ​ This index will then be available for use in optimizing the [[dev:​sql:​functions:​distance|$DISTANCE function]] in SQL SELECT statements.
  
-<​code>​+<​code ​sql>
 create table               "​ZIPCODES"​ create table               "​ZIPCODES"​
- ​physical ​                 "dat\zipcodes.dat"​+ ​physical ​                 "dat/zipcodes.dat"​
  (  (
-  "​ZIP" ​                   ​STRING(9),​ +  "​ZIP" ​                   STRING(9),​ 
-  "​CITY" ​                  STRING(25),+  "​CITY" ​                  ​STRING(25),​
   "​COUNTY_CODE" ​           CHARACTER(3),​   "​COUNTY_CODE" ​           CHARACTER(3),​
   "​STATE" ​                 CHARACTER(2),​   "​STATE" ​                 CHARACTER(2),​
Line 83: Line 84:
  
   * [[admin:​optimization:​home|Optimization Strategies]]   * [[admin:​optimization:​home|Optimization Strategies]]
-  * [[admin:optimization:​geo:​math|The Math Behind Geographic Searches]]+  * [[admin:features:​geo:​math|The Math Behind Geographic Searches]]
   * [[dev:​sql:​functions:​distance|$DISTANCE function]]   * [[dev:​sql:​functions:​distance|$DISTANCE function]]
  
 
Back to top
admin/features/geo/indexing.txt · Last modified: 2016/06/28 22:38 (external edit)