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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:13:43+00:00 2026-05-31T17:13:43+00:00

I have a single XML file that I want to index using Lucene.NET. The

  • 0

I have a single XML file that I want to index using Lucene.NET. The file is basically a large collection of logs.
Since the single file itself is beyond 5GB and I am developing code on a system with 2GB RAM, how can I perform the indexing when I am not parsing the file nor am I creating any other fields other than “text” which shall contain the file data?

I am using some code from CodeClimber and at the moment not sure what would be the best approach to index such a large single file.

Is there a way to pass on file data to the index in chunks? Below is the line of code that basically creates the text field and the associated file data

Document doc = new Document();
doc.Add(new Field("Body", text, Field.Store.YES, Field.Index.TOKENIZED));
writer.AddDocument(doc);

Thank you for the guidance

  • 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-31T17:13:45+00:00Added an answer on May 31, 2026 at 5:13 pm

    You should use something like System.Xml.XmlReader that doesn’t load the whole xml into the memory. But indexing the whole xml as a single document doesn’t make sense since you will get either 1 or 0 document with each search.(found or not found). So to be able to pass data in chunks wouldn’t help you much. Therefore while reading your xml file you should split it into many documents(and fields) so that you can get some reasonable results when you search.

    how can I perform the indexing when I am not parsing the file nor am I creating any other fields other than “text” which shall contain the file data

    what a wonderful world it would be

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

Sidebar

Related Questions

I have this xml file that i have created pragmatically using C# :- <Years>
I have a single xml file and every new thread of the program (BHO)
I have set up multiple targets in a single xml file. I expect all
I have a massive XML file. However, I'm only interested in a single small
I have a single xml document (data.xml), which I display as HTML using an
I have a simple C# Console App that reads in an XML file specified
I want to convert a single XML file into a human-readable format by JavaScript.
I'm parsing data from an xml file using WebClient. In DownloadStringCompleted method I have
I'm trying to persist an XML file to disk using LINQ. I have a
I have the following file which process a single XML file and pushes it

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.