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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:52:45+00:00 2026-06-04T01:52:45+00:00

I am loading my sql data tables into it and wish to get results

  • 0

I am loading my sql data tables into it and wish to get results depending upon various requirements. I am having a problem in rangequery. When I am writing this:

$ curl -X GET 'http://localhost:9200/sample/new/_search?pretty=true' -d '
{ query:{range:{price_incl_tax:{gte:1000,lte:1500}}} }'

the results where price_incl_tax=140.0000 as well as 13500.0000 are also coming.

  • 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-04T01:52:46+00:00Added an answer on June 4, 2026 at 1:52 am

    In your case, price_incl_tax seems to be stored as a string. It probably happend because the price_incl_tax field was initially added as a string instead of a number. You can verify field types in your index by running

    $ curl -X GET 'http://localhost:9200/sample/new/_mapping?pretty=true'

    Elasticsearch allows you to control individual field types by specifying mapping during index or type creation.

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

Sidebar

Related Questions

I have a web application that loads some 50 tables from SQL Server into
I have a script that i use to load my data into my tables
Background: sqlite is great for doing SQL operations on data loaded into databases, but
I'm working on implementing encryption in MS SQL 2008R2. Loading data from a CVS
Im loading an image from a SQL CE db and then trying to load
I'm loading an XML in SQL using OpenXML while declaring the variable the max
I know that SQL server use memory cache for the all operations by loading
I installed VS 2010 RC yesterday, and suddenly, SQL Server CE isn't loading files
Loading images into Flex (size < 100kb) causes IE7 memory increase by a megabyte
I am working on a data warehousing project where several systems are loading data

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.