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

  • Home
  • SEARCH
  • 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 8566351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:38:08+00:00 2026-06-11T17:38:08+00:00

I paid a third party coder to develop a schema for Solr but now

  • 0

I paid a third party coder to develop a schema for Solr but now that I have more of an understanding myself I have a questions.

The aim is to do spacial searching so in my schema I have this:

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

My site submit via JSON to lat_lng_0_coordinate and latlng_1_coordinate but nothing gets submitted to latlng.

Furthermore, there is no other mention of “latlng” in my schema.xml, so its not like there is a combine or join function in there as far as I can see.

So, my question is, does latlng have a purpose or has the coder put it in in error?

  • 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-06-11T17:38:10+00:00Added an answer on June 11, 2026 at 5:38 pm

    latlng field type is defined as location. The definition of the location field is as follows.

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

    It requires to create dynamic fields with the _coordinate suffix.

    In your example, latlng_0_coordinate should be used for the lattitude field and latlng_1_coordinate for the longitude field.

    Then by using Spatial queries you can use the latlng field.

    For example, in order to find the nearest locations within the 5km with the given point you can use the following query. 41.431, 28.431 are just random locations that I wrote.

    {!geofilt sfield=latlng}&pt=41.431,28.431&d=5
    

    As a result, it is not an error, it is there for purpose.

    See also in the Solr docs: https://wiki.apache.org/solr/SpatialSearch#QuickStart

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

Sidebar

Related Questions

Currently we have a system which we paid for that pushes information into Excel
I am aware of the paid vs. free discussion , but I have a
I paid for the following piece of code but my coder coded it in
I'm making a paid/free version of my app so have a 'Library Project' that
I have my paid app in appstore now I am converting it to a
I have my website currently hosted on paid server, but i want to transfer
I have paid for IPhone dev license I have everything. But still when I
I have paid and free version application in the single publisher account. now I
I have a few specific questions concerning paid applications in the App Store, along
I should have paid more attention in relational databases class, so I need some

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.