epugh commented on PR #4742:
URL: https://github.com/apache/solr/pull/4742#issuecomment-5304166480

   Two scenarios, since the response shape differs — full detail on a single 
replica, just the yes/no flag on a distributed query.
   
   **Direct query to one replica** (`distrib=false`, or a standalone core) — 
full detail, per suggester:
   
   ```
   GET 
/solr/mycollection_shard1_replica_n1/suggest?suggest=true&suggest.dictionary=slowSuggester&suggest.q=elec&suggest.count=5&distrib=false&wt=json
   ```
   
   ```json
   {
     "responseHeader": { "status": 0, "QTime": 3 },
     "suggest": {
       "slowSuggester": {
         "elec": {
           "numFound": 2,
           "suggestions": [
             { "term": "electronics", "weight": 100, "payload": "" },
             { "term": "electric fan", "weight": 80, "payload": "" }
           ]
         }
       }
     },
     "suggesterIndexVersions": {
       "slowSuggester": {
         "builtFromIndexVersion": 41,
         "currentIndexVersion": 43,
         "stale": true
       }
     }
   }
   ```
   
   **Normal distributed SolrCloud query** (fans out to all shards, gets merged) 
— just the aggregate flag, no per-shard numbers:
   
   ```
   GET 
/solr/mycollection/suggest?suggest=true&suggest.dictionary=slowSuggester&suggest.q=elec&suggest.count=5&wt=json
   ```
   
   ```json
   {
     "responseHeader": { "status": 0, "QTime": 12 },
     "suggest": {
       "slowSuggester": {
         "elec": {
           "numFound": 2,
           "suggestions": [
             { "term": "electronics", "weight": 100, "payload": "" },
             { "term": "electric fan", "weight": 80, "payload": "" }
           ]
         }
       }
     },
     "suggesterStale": true
   }
   ```
   
   `suggesterStale: true` just means *at least one* of the shards that answered 
this query was serving from a suggester that hadn't caught up yet — it doesn't 
say which shard or by how much. To pin that down you'd fall back to the first 
example (hit a specific replica directly with `distrib=false`) or check 
`/admin/metrics`.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to