Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6597529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:13:15+00:00 2026-05-25T18:13:15+00:00

I have a Solr schema which contains a location field (using the default solr.LatLonType

  • 0

I have a Solr schema which contains a location field (using the default solr.LatLonType ):

<field name="latlng" type="location" indexed="true" stored="true"/>

And I am trying to populate it using a DataImportHandler. Currently I SELECT the value as nvarchar in the format of 17.74628,-64.70725; however it is not populating the Solr field (it remains empty).

What type and format should this column be in to update the location field in Solr?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:13:16+00:00Added an answer on May 25, 2026 at 6:13 pm

    solr.LatLonType is a multi-dimensional type; You can define the field type as:

    <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
    

    Using your field name of “latlng” the schema for the coordinate fields will look like this (notice the “subFieldSuffix” used for the 2 dimensional field type solr.LatLonType):

    <field name="latlng" type="location" indexed="true" stored="true" />
    <field name="latlng_0_coordinate" type="double" indexed="true" stored="true" />
    <field name="latlng_1_coordinate" type="double" indexed="true" stored="true" />
    

    “latlng_0_coordinate” should be the latitude and “latlng_1_coordinate” should be the longitude. Your select statement should load “latlng_0_coordinate” and “latlng_1_coordinate” as doubles.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In solr schema i have field as below <field name=Company type=string indexed=true stored=true/> and
I have a SOLR schema.xml like this: <field name=cartype type=lowercase indexed=true stored=true/> <field name=color
In solr schema.xml I have a field <field name=name type=string indexed=true stored=true multiValued=false />
I have a simple schema: <fields> <field name=mongo_id type=string indexed=true stored=true required=true /> <field
This is what I have in my schema.xml: <fields> <field name=id type=string indexed=true stored=true
I have the following field definition in my SOlr Schema name=DvdReleaseDate type=date stored=true required=false
I have text_general field in schema.xml <fieldType name=text_general class=solr.TextField positionIncrementGap=100> <analyzer type=index> <tokenizer class=solr.WhitespaceTokenizerFactory/>
I have one field that is indexed as string in Solr's schema.xml, which is
We have the following Solr (3.4) schema for indexing html/text documents: <fields> <field name=text
I have a Solr schema that has a url field: <fieldType name=url class=solr.TextField positionIncrementGap=100>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.