The Problem
You have indexed documents into your Opensolr Index, but when you query with q=*:* you do not get all your data back, or you get unexpected results. Some documents seem to be missing.
What Is Actually Happening
The most common cause is a default /select request handler defined in a file called search.xml that ships with new Opensolr Indexes. This request handler may include default filter queries, row limits, or field lists that do not match your data.
Think of it like ordering food at a restaurant, but the waiter already has a pre-set order for you. You say "bring me everything" but the pre-set order says "only salads, maximum 10 items." You need to remove that pre-set order so you get what you actually asked for.
How to Fix It
Step 1: Open Your solrconfig.xml
Go to your Opensolr Index Control Panel and open the Config Files Editor. Select solrconfig.xml.
Step 2: Find the search.xml Reference
Look for a line like this somewhere in your solrconfig.xml:
<xi:include href="search.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
Step 3: Remove or Comment It Out
Delete that line, or comment it out:
<!-- <xi:include href="search.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> -->
Step 4: Save and Reload
Save the file, then click Reload in your Opensolr Index control panel.
Other Common Reasons for Missing Data
| Problem | Fix |
|---|---|
rows parameter too low |
Default is 10 rows. Add &rows=100 or higher to your query |
| Filter queries hiding docs | Check for fq parameters in your request handler defaults |
| Documents not committed | Send a commit after indexing: ?commit=true |
| Wrong core/index | Verify you are querying the correct Opensolr Index |
start parameter offset |
Pagination offset might skip documents |
Quick Checklist
- Check
solrconfig.xmlforsearch.xmlinclude — remove it if present - Verify your total document count with
q=*:*&rows=0 - Check for default
fqparameters in your/selectrequest handler - Make sure you are sending commits after indexing
- Increase the
rowsparameter if you need more than 10 results
Still not seeing all your data? Reach out to us at support@opensolr.com — we can inspect your Opensolr Index configuration directly.