Adarsh-Me opened a new pull request, #2368:
URL: https://github.com/apache/stormcrawler/pull/2368

   Draft proposal for #2308 — one config file, no Java changes.
   
   ### Change
   In 
`external/solr/archetype/src/main/resources/archetype-resources/solr-conf.yaml`:
   
   - `solr.status.bucket.maxsize: 5` → `3`
   - `solr.status.max.results: 10` → `50`
   
   ### Why these values
   The OpenSearch archetype defaults to `opensearch.status.max.buckets: 50` and 
`opensearch.status.max.urls.per.bucket: 2`. `SolrSpout.open()` reads 
`solr.status.bucket.maxsize` and immediately decrements it 
(`diversityBucketSize--`) because the first hit is separate from the 
expansions. So a value of **3** gives 2 URLs per bucket, matching OpenSearch. 
`solr.status.max.results: 50` gives a comparable number of distinct hosts per 
query.
   
   This is a draft because the issue asks for "something comparable" rather 
than exact values; I posted the derivation on #2308 and would appreciate 
maintainer confirmation before this is considered ready.
   
   ### Verification
   - Confirmed both keys are consumed in `SolrSpout.open()` 
(`SolrDiversityBucketParam`, `SolrMaxResultsParam`).
   - Config-only change; no Java sources or tests modified.
   - No CI impact expected beyond config validation.
   
   ### Disclosure
   This contribution was prepared with AI assistance (OpenCode, model 
`hy4-flash-free`). I reviewed the `SolrSpout` semantics and both archetypes' 
defaults, and the commit carries the ASF-recommended `Generated-by:` trailer.
   
   I understand an Apache ICLA must be on file before an ASF PR can be merged; 
I am happy to sign it if required.
   
   Closes #2308


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to