Re: Classify stream expression questions

2017-08-14 Thread Joe Obernberger
Thank you Joel - I'm using a ModifiableSolrParams object to build the parameters for Solr (hope this is what you want) toString() returns: expr=classify(model(models,id%3D"MODEL1014",cacheMillis%3D5000),search(COL,df%3D"FULL_DOCUMENT",q%3D"Collection:(COLLECT2000)+AND+DocTimestamp:[2017-08-14T0

Re: Classify stream expression questions

2017-08-14 Thread Joel Bernstein
My math was off again ... If you have 20 results from 50 shards that would produce the 1000 results. Joel Bernstein http://joelsolr.blogspot.com/ On Mon, Aug 14, 2017 at 10:17 PM, Joel Bernstein wrote: > Actually my math was off. You would need 200 shards to get to 1000 result. > How many shard

Re: Classify stream expression questions

2017-08-14 Thread Joel Bernstein
Actually my math was off. You would need 200 shards to get to 1000 result. How many shards do you have? The expression you provided also didn't include the ClusterText field in field list of the search. So perhaps it's missing other parameters. If you include all the parameters I may be able to s

Re: Classify stream expression questions

2017-08-14 Thread Joel Bernstein
It looks like you just need to set the rows parameter in the search expression. If you don't set rows the default will be 20 I believe, which will pull to top 20 docs from each shard. If you have 5 shards than the 1000 results would make sense. You can parallelize the whole expression by wrapping

Classify stream expression questions

2017-08-14 Thread Joe Obernberger
Hi All - I'm using the classify stream expression and the results returned are always limited to 1,000. Where do I specify the number to return? The stream expression that I'm using looks like: classify(model(models,id="MODEL1014",cacheMillis=5000),search(COL,df="FULL_DOCUMENT",q="Collection: