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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:47:00+00:00 2026-05-31T14:47:00+00:00

I am using Solr 3.5.0 with the example server under jetty-6.1-SNAPSHOT. I have started

  • 0

I am using Solr 3.5.0 with the example server under jetty-6.1-SNAPSHOT. I have started with the default schema.xml, removed the default <field> definitions, and specified my own, including these:

<field name="content" type="text_general" indexed="false" stored="false" required="true" />**
<field name="title" type="text_general" indexed="false" stored="true" required="true" />
<field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/>

I have indexed set to false for the content field, because I am trying to use this field in a copyField definition later on in the schema. And I have stored set to false because I don’t need to see this content field in query results.

Later in the schema, I have these copyFields defined:

<copyField source="title" dest="text"/>
<copyField source="content" dest="text"/>

And here’s a sample of my data:

<add>
    <doc>
        <field name="id">2-29-56</field>
        <field name="title">This is a test</field>
        <field name="content">This is some content</field>
    </doc>
</add>

I run the example Solr server with this schema using:

C:\solr\example>java -jar start.jar

I then try to send this sample doc to my Solr server:

C:\solr\example\exampledocs>java -jar post.jar test.xml

This is what I get back:

SimplePostTool: version 1.4
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file test.xml
SimplePostTool: FATAL: Solr returned an error #400 [doc=2-29-56] missing required field: content

I tried many different things, but if I change the schema so that indexed=”true” for the content field definition, it works. Or if I put that back to false and set stored=”true”, then it also works. It always fails if indexed AND stored are set to false.

This would sort of make sense, if I weren’t defining a copyField that uses the content field. The sample schema comments even state:

“for best index size and searching performance, set “index” to false
for all general text fields, use copyField to copy them to the
catchall “text” field, and use that for searching.”

So what is the right way to do this, the most efficient way?

  • 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-31T14:47:02+00:00Added an answer on May 31, 2026 at 2:47 pm

    Required Field must be marked as indexed or stored.
    You can remove the required attribute for both the fields and have both the indexed and stored as false.

    As the text field is only searchable, you can have the field type to be normal string without any analysis for the other fields.

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

Sidebar

Related Questions

I'm new to Solr. Using Solr 1.4.1 I have a schema.xml that have this
I am running Solr on my windows machine using jetty. I have downloaded the
Im using Solr 3.5.0, and in Schema I have enabled the LowerCaseFilterFactory in all
I have been trying to get my Solr schema (using Solr 1.3.0) to create
I am running a Solr instance on Jetty and when I search using the
I plan on using solr on my VPS. My server is Ubuntu. Does anybody
The wiki page, http://wiki.apache.org/solr/DataImportHandler explains how to index data using DataImportHandler. But the example
I'm using Solr with Sunspot (ruby) and due to other constraints i have to
I have indexed a couple of documents using solr, now when I perform a
The scene: I have indexed many websites using Nutch and Solr. I've implemented result

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.