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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:45:48+00:00 2026-06-11T01:45:48+00:00

I run this query in mongo shell, and successful get result db.tablebusiness.find({ LongitudeLatitude :

  • 0

I run this query in mongo shell, and successful get result

db.tablebusiness.find({ "LongitudeLatitude" : { "$near" : [106.772835, -6.186753], "$maxDistance" : 0.053980478460939611 }, "indexContents" : { "$all" : [/^warung/] } }).limit(2);

I got:

{
  "_id" : "warung-nasi-nur-karomah__-6.19_106.78",
  "BuildingID" : null,
  "Title" : "Warung Nasi Nur Karomah",
  "InBuildingAddress" : null,
  "Building" : null,
  "Street" : "Jl. Arjuna Utara No.35",
  "Districts" : [],
  "City" : "Jakarta",
  "Country" : "Indonesia",
  "LongitudeLatitudeFromGoogle" : null,
  "DistanceFromGoogleAddress" : 0.0,
  "Checkin" : 0,
  "Note" : null,
  "PeopleCount" : 0,
  "Prominent" : 45.5,
  "CountViews" : 0,
  "StreetAdditional" : null,
  "LongitudeLatitude" : {
    "Longitude" : 106.775693893433,
    "Latitude" : -6.18759540055471
  },
  "Rating" : {
    "Stars" : 0.0,
    "Weight" : 0.0
  },
  "Reviews" : [],
  "ZIP" : null,
  "Tags" : ["Restaurant"],
  "Phones" : ["081380087011"],
  "Website" : null,
  "Email" : null,
  "Price" : null,
  "openingHour" : null,
  "Promotions" : [],
  "SomethingWrong" : false,
  "BizMenus" : [],
  "Brochures" : [],
  "Aliases" : [],
  "indexContents" : ["restaura", "estauran", "staurant", "taurant", "aurant", "urant", "rant", "ant", "nt", "t", "warung", "arung", "rung", "ung", "ng", "g", "nasi", "asi", "si", "i", "nur", "ur", "r", "karomah", "aromah", "romah", "omah", "mah", "ah", "h"]
}

But when I try this query with additional search multikey index I got nothing result

db.runCommand({ geoSearch : "tablebusiness", near : [106.772835, -6.186753], maxDistance : 0.053980478460939611, search : { "indexContents" : { "$all" : [/^warung/] } }, limit : 30 })

I got this

{
        "results" : [ ],
        "stats" : {
                "time" : 0,
                "btreeMatches" : 0,
                "n" : 0
        },
        "ok" : 1
}

This is index in my collection database

[
        {
                "v" : 1,
                "key" : {
                        "_id" : 1
                },
                "ns" : "isikotacobacoba.tablebusiness",
                "name" : "_id_"
        },
        {
                "v" : 1,
                "key" : {
                        "LongitudeLatitude" : "2d",
                        "Prominent" : -1,
                        "indexContents" : 1
                },
                "ns" : "isikotacobacoba.tablebusiness",
                "name" : "LongLat_Prominent_indexContents",
                "dropDups" : false,
                "background" : false
        },
        {
                "v" : 1,
                "key" : {
                        "LongitudeLatitude" : "2d",
                        "Prominent" : -1
                },
                "ns" : "isikotacobacoba.tablebusiness",
                "name" : "LongLat_Prominent",
                "dropDups" : false,
                "background" : false
        },
        {
                "v" : 1,
                "key" : {
                        "indexContents" : 1
                },
                "ns" : "isikotacobacoba.tablebusiness",
                "name" : "indexContents",
                "dropDups" : false,
                "background" : false
        },
        {
                "v" : 1,
                "key" : {
                        "LongitudeLatitude" : "2d",
                        "indexContents" : 1,
                        "Prominent" : -1
                },
                "ns" : "isikotacobacoba.tablebusiness",
                "name" : "LongitudeLatitude__indexContents_1_Prominent_-1",
                "bits" : 22
        },
        {
                "v" : 1,
                "key" : {
                        "Title" : 1
                },
                "ns" : "isikotacobacoba.tablebusiness",
                "name" : "Title",
                "dropDups" : false,
                "background" : false
        },
        {
                "v" : 1,
                "key" : {
                        "City" : 1
                },
                "ns" : "isikotacobacoba.tablebusiness",
                "name" : "City",
                "dropDups" : false,
                "background" : false
        },
        {
                "v" : 1,
                "key" : {
                        "LongitudeLatitude" : "geoHaystack",
                        "indexContents" : 1
                },
                "ns" : "isikotacobacoba.tablebusiness",
                "name" : "LongitudeLatitude__indexContents_1",
                "bucketSize" : 0.1
        }
]

How format use runCommand mongoDB using geohaystack with additional field mulikey??

  • 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-11T01:45:50+00:00Added an answer on June 11, 2026 at 1:45 am

    Geohaystack queries do not support arrays for the additional field,
    only single values. The current implementation of geospatial indexes
    and geohaystacks do not use the standard query and index code.

    The examples from MongoDB’s geohaystack documentation (
    http://www.mongodb.org/display/DOCS/Geospatial+Haystack+Indexing )
    only shows the additional field to be a simple single value, not an
    array of values in a geohaystack query.

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

Sidebar

Related Questions

I am trying to run this query on http://dbpedia.org/sparql but I get an error
I run this query: SHOW INDEX FROM `tbl_clients` I get back these: Table, Non_unique,
I'm run this query: SELECT id,like - dislike as result FROM mytable Where the
When we run a Mongo find() query without any sort order specified, what does
I have this index a,b,-c on a Mongo collection. When I run this query:
If I run this query in Toad: SELECT BANDID, BANDNAME FROM WOODSTOCK WHERE BANDNAME
If I try to run this query in SQL Server 2005: SELECT 1 WHERE
Hi I am trying to run this query in SQL but it is not
I am getting an error when I run this query because the data type
I have the following query, now the strange thing is if I run this

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.