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 4611804
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:19:03+00:00 2026-05-22T01:19:03+00:00

Hello I am currently working on implementing a spatial search feature for a website

  • 0

Hello
I am currently working on implementing a spatial search feature for a website using c#, lucene.net and spatial.net

The issue I am running into is the following:

I index 5 document with the following locations:
Document 1: Los Angeles, CA
Document 2: Pasadena, CA
Document 3: Santa Monica, CA
Document 4: Sacramento, CA
Document 5: Denver, CO

Then I proceed to run several searches on the resulting index (for my NUnit test I am using RAMDirectory) using the Los Angeles point as origin, as well as having it be a part of the data.

Radius Results Pass
10 Miles 1 Yes
20 Miles 2 No
25 Miles 2 No
50 Miles 3 Yes

Note that I expeted 3 results beginnig with the 20 mile search.
This also happens with some other radius values, for example 5000 miles return only 1 result when at 3500 miles I was getting all 5 documents.

Is anyone aware of a bug in the spatial.net code that could be causing this?
The .net version of lucene is at 2.9.2 and perhaps this has been addressed in a later version. Any help would be appreciated, thanks

  • 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-22T01:19:03+00:00Added an answer on May 22, 2026 at 1:19 am

    I finally got this working. There is a bug on the spatial.net contrib module in the current version of lucene.net
    This bug makes the search fail in some edge cases. The issue is caused by the CartesianShapeFilter class.
    What I did was grab the source from the Java version of lucene and port only the spatial contrib code.
    After every class was ported I would compile and run my test again.
    Finally I narrowed it down to this class.
    I hope this helps someone, if you would like the code for this I will be sending a patch to the folks working on lucene.net so the can make it available.

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

Sidebar

Related Questions

Hello , I am currently working on the student association's website. The student's association
Hello I am currently working with a AT91SAM7X256 running on bare metal. I have
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
Hello my friend is currently development an application using SOA Architecture, He sent me
Hello I am currently working on a django project, in one of my Models
I'm currently working on implementing my own Trie in Scala (for learning/hobby purposes), and
Im currently using the JQuery UI extension for its search autocomplete. However, I need
Hello I have table in my database holding some browser information I'm currently using
Hello I am currently working with sockets and input/output streams. I have a strange
I am currently working through Accelerated C++ and have come across an issue in

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.