Re: How to set a condition on the number of docs found

2013-07-12 Thread Matt Lieber
Thanks William, I'll do that. Matt On 7/12/13 7:38 AM, "William Bell" wrote: >Hmmm. One way is: > >http://localhost:8983/solr/core/select/?q=*%3A*&facet=true&facet.field=id&; >facet.offset=10&rows=0&facet.limit=1dersearch/select/?q=*%3A*&facet=true&facet

Re: How to set a condition on the number of docs found

2013-07-12 Thread Jack Krupansky
: Matt Lieber Sent: Friday, July 12, 2013 1:45 AM To: solr-user@lucene.apache.org Subject: How to set a condition on the number of docs found Hello there, I would like to be able to know whether I got over a certain threshold of doc results. I.e. Test (Result.numFound > 10 ) -> true. Is

Re: How to set a condition on the number of docs found

2013-07-12 Thread William Bell
Hmmm. One way is: http://localhost:8983/solr/core/select/?q=*%3A*&facet=true&facet.field=id&facet.offset=10&rows=0&facet.limit=1 If you have a result you have results >

Re: How to set a condition on the number of docs found

2013-07-12 Thread Furkan KAMACI
Do you want to modify Solr source code? Did you check that line at XMLWriter.java : *writeAttr("numFound",Long.toString(numFound));* 2013/7/12 Matt Lieber > Hello there, > > I would like to be able to know whether I got over a certain threshold of > doc results. > > I.e. Test (Result.numFoun

How to set a condition on the number of docs found

2013-07-11 Thread Matt Lieber
Hello there, I would like to be able to know whether I got over a certain threshold of doc results. I.e. Test (Result.numFound > 10 ) -> true. Is there a way to do this ? I can't seem to find how to do this; (other than have to do this test on the client app, which is not great). Thanks, Matt