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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:19:40+00:00 2026-06-11T16:19:40+00:00

I have a schema that contains a fairly large text field. I’ve gzipped it

  • 0

I have a schema that contains a fairly large text field.

I’ve gzipped it and enabled lazy loading, but it will still be fetched unless every client using solr explicitly sets the field list (fl) parameter.

How can I configure solr to omit the large gzipped text field from the results when querying without a field list parameter?

  • 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-11T16:19:41+00:00Added an answer on June 11, 2026 at 4:19 pm

    The simplest way to do this is to add the field list to the requestHandler. Assuming that you are using the default /select request handler, you will need to modify your solrconfig.xml adding the fl option to the list of defaults for the /select requestHandler. See below for an example.

     <requestHandler name="/select" class="solr.SearchHandler">
       <!-- default values for query parameters can be specified, these
               will be overridden by parameters in the request
        -->
       <lst name="defaults">
         <str name="echoParams">explicit</str>
         <int name="rows">10</int>
         <str name="fl">field1,field2,field3</str>
       </lst>
    
      ....
    
     </requestHandler>
    

    So in this example, I am setting the fl parameter so the query will return field1, field2 and field3 by default. These will be the fields returned when querying unless the request specifies the fl parameter and then whatever fields are sent will be returned.

    These defaults can be set per requestHandler, so if you are using an different requestHandler, then just modify your configuration as needed.

    Hope this helps.

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

Sidebar

Related Questions

I have a database schema that contains multiple tables with different names, but all
I have a standard store schema with an InvoiceLine table that contains Products. I'd
Assuming I have a schema that describes a root element class Root that contains
I have an existing XML schema that contains a type that I would like
I have a piece of xml that contains optional non-enumerated elements, so schema validation
hello I have a page ( http://schema.org/WebPage ) that contains a review ( http://schema.org/Review
I have a legacy schema that contains tables with primary keys of type binary(16)
I have an XSD file that contains the following... <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema elementFormDefault=qualified id=OTA2003A targetNamespace=http://www.opentravel.org/OTA/2003/05
I have to validate XML file that contains embedded XML, with XML Schema. Correctness
I have an element in the source schema of a map that contains a

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.