why is my solr engine only pulling 10 rows

I am learning SOLR for the first time.  I am using SOLR 7.2.1 plus java 8.  I am currently following this page:


my query is "select * from mytable" with a million records on it.
But when I activate the full load (http://localhost:8983/solr/#/offrs/dataimport//dataimport) only ten records come into the core.

This is what I built:


        <dataSource type="JdbcDataSource"
        <document name="MY_DOCUMENT">  
            <entity name="doc" query="SELECT * FROM MYTABLE">  
                <field column='Field1' name='field1' />
    			<field column='field2' name='field2' />

Open in new window


    <schema name='doc' version='1.1'>
    		<fieldtype name='string' class='solr.StrField' />
    		<fieldtype name='long' class='solr.LongPointField' />
    		<fieldtype name='integer' class='solr.IntPointField' />
    		<fieldtype name='float' class='solr.FloatPointField' />
    		<field name='field1' type='string' />
    		<field name='field2' type='string' />
    		<field name='field3' type='string' />

Open in new window


    	<requestHandler name='standard' class='solr.StandardRequestHandler' default='true' />
    	<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">     
        <lst name="defaults">    
            <str name="config">data.import.xml</str>  

Open in new window

Is there another setting I am needing?

Update #1:
When looking at the SQL Server Activity Monitor, I see the query coming form SOLR....however, it is saying suspended with this error: ASYNC_NETWORK_IO.  I don't know if this helps, but I'm putting in as much data as I can.

Evan CutlerVolunteer Chief Information OfficerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mark WillsTopic AdvisorCommented:
Well, a million rows will probably cause a few problems....

ASYNC_NETWORK_IO timeouts (waits) happen when SQL Server is waiting on the "requester" to consume the output that SQL Server has delivered, but is obviously not being received / "consumed" as quickly as it is being delivered.

Try selecting top 10 or adding a where clause to limit the results so you can at least isolate volume as the cause... Or limiting batchsizes...

Sorry I cant give a better answer for you, my knowledge of SOLR isnt great, and hope you find an expert who can help. But you cannot simply throw as much as you can at SQL without it having a chance to process.

What client are you using ? Can you control batchsize ?

But anyway, that is what an ASYNCH error is all about....

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Evan CutlerVolunteer Chief Information OfficerAuthor Commented:
I appreciate it, but in this case I'm thinking SQL Server is waiting on SOLR.
I don't know why tho.
Mark WillsTopic AdvisorCommented:
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

Evan CutlerVolunteer Chief Information OfficerAuthor Commented:
Cool. How do ifix that?
Mark WillsTopic AdvisorCommented:
Depending on your client, break it into batches.

And I am still hoping a SOLR expert will come along :)
Mark WillsTopic AdvisorCommented:
Hi Evan,

Any progress ?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.