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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:18:14+00:00 2026-06-15T05:18:14+00:00

I have a document with a number of fields that I never query on

  • 0

I have a document with a number of fields that I never query on so I would like to turn indexing on those fields off to save resources. I believe I need to disable the _all field, but how do I specify which fields are indexed then?

  • 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-15T05:18:15+00:00Added an answer on June 15, 2026 at 5:18 am

    By default all the fields are indexed within the _all special field as well, which provides the so called catchall feature out of the box. However, you can specify for each field in your mapping whether you want to add it to the _all field or not, through the include_in_all option:

    "person" : {
        "properties" : {
            "name" : {
                "type" : "string", "store" : "yes", "include_in_all" : false
            }
        }
    }
    

    The above example disables the default behaviour for the name field, which won’t be part of the _all field.

    Otherwise, if you don’t need the _all field at all for a specific type you can disable it like this, again in your mapping:

    "person" : {
        "_all" : {"enabled" : false},
        "properties" : {
            "name" : {
                "type" : "string", "store" : "yes"
            }
        }
    }
    

    When you disable it your fields will still be indexed separately, but you won’t have the catchall feature that _all provides. You will need then to query your specific fields instead of relying on the _all special field, that’s it. In fact, when you query and don’t specify a field, elasticsearch queries the _all field under the hood, unless you override the default field to query.

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

Sidebar

Related Questions

I have an html form that I would like to add inputs fields to
I have a document structure in Solr that looks something like this (irrelevant fields
I have quite a large XSL document for an assignment that does a number
I have a Solr index with document fields something like: id, body_text, date, num_upvotes,
I have a number of fields that either only ever contain one term or
I have javascript function that automatically adds input fields together, but adding numbers like
I have a word document with a number of fields scattered around the text.
I have a class that contains a number of standard fields and an arraylist.
I have a script to count the number of fields that are filled. Works
I have an xml document which consists of a number of the following: -

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.