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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:38:24+00:00 2026-06-09T18:38:24+00:00

Working with Solr 3.6 for ASP.net application. We’re using SolrNet library. We have a

  • 0

Working with Solr 3.6 for ASP.net application. We’re using SolrNet library.

We have a custom program written in asp.net to incrementally add a documents to Solr using SolrNet. This monitors the progress for inserting documents into Solr.

The issue is, the application shows process as completed but checking into Solr results we only see few documents in results, and not all of the document. Although checking it again after 15 minutes, few more documents are now listed in Solr results, which are roughly a double of what was initial results. Note that we didn’t executed any process to add documents into Solr.

Is it natural with Solr? Or can we assume to list all documents as soon as they are inserted & committed? What is the reason behind this kind of behavior? And how to handle it?

Edit 1
After an hour on application side we’re able to query 80-90% of documents. But still Solr Admin Query doesn’t list more than 25% documents.

  • 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-09T18:38:25+00:00Added an answer on June 9, 2026 at 6:38 pm

    Are you issuing a commit to Solr after your custom ASP.NET program has completed adding documents to Solr? Because your new documents will not be visible to the searchers within Solr until you have committed them to the index.

     var solr = ServiceLocator.Current.GetInstance<ISolrOperations<IndexEntry>>();
     solr.Add(entry);   
     solr.Commit();         
    

    I am guessing that you are seeing documents appear after some time because your Solr instance is configured with some sort of <autoCommit> setting in your solrconfig.xml file. See here for more details

    One thing to try is that you can pass a “soft-commit” parameter via SolrNet to tell the index how soon to commit the new document that you have added to the index. Here is a small snippet of code that shows the use of the CommitWithin AddParameter which tells Solr to commit the document within 5 seconds.

    var solr = ServiceLocator.Current.GetInstance<ISolrOperations<IndexEntry>>();
    solr.Add(entry, new AddParameters { CommitWithin = 5000 });            
    

    I would recommend the use of the CommitWithin parameter versus the explicit Commit() as commits are expensive operations and Solr can better manage those itself.

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

Sidebar

Related Questions

Working with Solr for ASP.net project using Solrnet library. While querying with Faceted field
I am working on making a book catalog searchable using Solr. I have written
I have implemented Solr search in one of my .net application. Everything working fine
On a project I'm working on we interact with Solr using SolrNet. We have
We are working on ASP.NET MVC3 C# with SolrNet 3.6. We have used dynamic
I am working on Solr in my application. I am using apache-solr-solrj-1.4.0.jar . When
I have been working on making a Search using Solrnet which is working the
I'm working on a Solr 3.6 with ASP.net MVC3 e-commerce project. I've an index
I'm working on e-Commerce site which is based on ASP.NET MVC3. I've implemented SolrNet
I have spatial search working well with SOLR 3.2 Example : ?q=*&fq={!geofilt pt=48.86761919303129,2.3527903735351856 sfield=coordinates

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.