> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GeoIP Lookup Stage

[localhost link]: http://localhost:3000/docs/5/fusion/reference/config-ref/pipeline-stages/index-stages/geoip-lookup-index-stage

[mintlify link]: https://doc.lucidworks.com/docs/5/fusion/reference/config-ref/pipeline-stages/index-stages/geoip-lookup-index-stage.md

[old doc.lw link]: https://doc.lucidworks.com/fusion/5.9/211.md

This index pipeline stage looks up the geographical location of an IP address.

If the **IP Address Field** (`ipAddrField`) is specified, it will be used first to perform the geolocation lookup. If the lookup is successful, then the **Hostname Field** (`hostnameField`) will be skipped. However, if the lookup failed or the **IP Address Field** is blank, and the **Hostname Field** is specified, then the stage will try to perform the lookup using the hostname.

The default geo database is [GeoLite2-City](https://dev.maxmind.com/geoip/geoip2/geolite2/) from MaxMind. To use a different database (for which you have a commercial license), you can [upload it to the blob store](https://doc.lucidworks.com/docs/5/fusion/getting-data-in/blob-storage.md) (in binary format), then specify its blob ID in the **Geoip Lookup Database Blob ID** (`blobId`) parameter.

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

## Fields added in this stage

When this stage is run, specific fields are added to the document. If the value is not present, the value added is `undefined`.

| Field | Definition |
| - | - |
| `geo_loc_coord` | The latitude and longitude coordinates of the location. For example, 37.751,-97.822. |
| `geo_postal_code` | The postal code of the location. |
| `geo_country_name` | The country of the geographic location. For example, United States. |
| `geo_subdivision_iso` | The subdivision of the country in an ISO code format. For example, the ISO code for the state or province of the geographic location. |
| `geo_lon` | The longitude of the location. For example, -97.822. |
| `geo_country_iso` | The two-letter ISO code for the country of the location. For example, US. |
| `geo_subdivision_name` | The subdivision name of the location in the country. For example, the name of the state or province of the geographic location. |
| `geo_lat` | The latitude of the location. For example, 37.751. |
| `geo_city_name` | The city name of the location. For example, Chicago. |

## Configuration

> [!TIP]
>
> When entering configuration values in the UI, use *unescaped* characters, such as `\t` for the tab character. When entering configuration values in the API, use *escaped* characters, such as `\\t` for the tab character.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.