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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:52:37+00:00 2026-05-28T19:52:37+00:00

The documents that I am indexing are very large. Lucene by default only indexes

  • 0

The documents that I am indexing are very large. Lucene by default only indexes the first 10,000 terms of a document to avoid OutOfMemory errors. So I am getting incorrect hits while searching the Index. How could I index all the terms in the document?

  • 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-28T19:52:38+00:00Added an answer on May 28, 2026 at 7:52 pm

    IndexWriter.MaxFieldLength. Specifies maximum field length (in number of tokens/terms) in IndexWriter constructors

    You can set maximum value as part of IndexWriter constructor MAX_VALUE – Lucene Recent Versions or UNLIMITED – Lucene Older Versions.

    You could also use IndexWriter.setMaxFieldLength(int) to override the value set by the constructor.

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

Sidebar

Related Questions

How can restrict Lucene.Net to index only these terms that has length greater than
i have a tipical solr stuff: need of indexing documents, only that my documents
In many documents that I'm indexing with Lucene, people accidentally concatenate words with numbers.
I am building a data structure that helps indexing a collection of S documents
I have a Lucene index that contains documents that have a type field, this
I have a MySQL indexing question for you guys. I've got a very large
I have documents which I am indexing with Lucene. These documents basically have a
We use Lucene.net for indexing. One of the fields that we index, is a
I am writing a custom Lucene.NET indexer to enable indexing of MS Word documents.
I'm indexing documents in Elastic Search that contain arrays. Sample documents : doc1: {

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.