Re: nested query and number of matched records

2010-07-21 Thread MitchK

Oh,... I just see, there is no direct question ;-).

How can I specify the number of returned documents in the desired way
*within* one request?

- Mitch
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/nested-query-and-number-of-matched-records-tp983756p983773.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: nested query and number of matched records

2010-07-21 Thread Grijesh.singh

I Think Solr does not provide any thing like that U want.
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/nested-query-and-number-of-matched-records-tp983756p983938.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: nested query and number of matched records

2010-07-21 Thread kenf_nc

parallel calls. simultaneously query for type:short rows=10  and
type:extensive rows=1  and merge your results.  This would also let you
separate your short docs from your extensive docs into different solr
instances if you wished...depending on your document architecture this could
speed up one or the other.
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/nested-query-and-number-of-matched-records-tp983756p984280.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: nested query and number of matched records

2010-07-21 Thread Chantal Ackermann
Sure SOLR supports this: use facets on the field type:

add to your regular query:

facet.query=truefacet.field=type

see http://wiki.apache.org/solr/SimpleFacetParameters


On Wed, 2010-07-21 at 15:48 +0200, kenf_nc wrote:
 parallel calls. simultaneously query for type:short rows=10  and
 type:extensive rows=1  and merge your results.  This would also let you
 separate your short docs from your extensive docs into different solr
 instances if you wished...depending on your document architecture this could
 speed up one or the other.





Re: nested query and number of matched records

2010-07-21 Thread kenf_nc

That just gives a count of documents by type. The use-case, I believe, is to
return from a search, 10 documents of type 'short' and 1 document of type
'extensive'. 
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/nested-query-and-number-of-matched-records-tp983756p984539.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: nested query and number of matched records

2010-07-21 Thread MitchK

Thank you three for your feedback!

Chantal, unfortuntately kenf is right. Facetting won't work in this special
case. 


 parallel calls.
 
Yes, this will be the solution. However, this would lead to a second
HTTP-request and I hoped to be able to avoid it.


Chantal Ackermann wrote:
 
 Sure SOLR supports this: use facets on the field type:
 
 add to your regular query:
 
 facet.query=truefacet.field=type
 
 see http://wiki.apache.org/solr/SimpleFacetParameters
 
 
 On Wed, 2010-07-21 at 15:48 +0200, kenf_nc wrote:
 parallel calls. simultaneously query for type:short rows=10  and
 type:extensive rows=1  and merge your results.  This would also let you
 separate your short docs from your extensive docs into different solr
 instances if you wished...depending on your document architecture this
 could
 speed up one or the other.
 
 
 
 
 
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/nested-query-and-number-of-matched-records-tp983756p984750.html
Sent from the Solr - User mailing list archive at Nabble.com.