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 mlie...@impetus.com
Hello there,
I would like to be able to know whether I got over a certain threshold of
doc results.
I.e. Test
Hmmm. One way is:
http://localhost:8983/solr/core/select/?q=*%3A*facet=truefacet.field=idfacet.offset=10rows=0facet.limit=1http://hgsolr2devmstr:8983/solr/providersearch/select/?q=*%3A*facet=truefacet.field=cityfacet.offset=10rows=0facet.limit=1
If you have a result you have results 10.
Test where? I mean, numFound is right there at the top of the query
results, right?
Unfortunately there is no function query value source equivalent to
numFound. There is numdocs, but that is the total documents in the
index. There is also docfreq(term), which could be used in a function
Thanks William, I'll do that.
Matt
On 7/12/13 7:38 AM, William Bell billnb...@gmail.com wrote:
Hmmm. One way is:
http://localhost:8983/solr/core/select/?q=*%3A*facet=truefacet.field=id;
facet.offset=10rows=0facet.limit=1http://hgsolr2devmstr:8983/solr/provi
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