lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: Is there a way to limit returned rows directly in a query string?
Date Fri, 16 Nov 2012 06:36:45 GMT
Yun,

Literally you can call another QParser from the middle of a query and apply
local params to it via nested queries feature
http://searchhub.org/2009/03/31/nested-queries-in-solr/ syntax is little
bit tricky though.
But calling other QParser and attempting specify number of rows for it
makes absolutely no sense in Lucene universe. I guess you try to get
something like RDBMS or implement kind of imperative algorithm on top of
Solr. It doesn't seem possible to me. Everything here is around Boolean
Retrieval and Vector Space Model.

Regards


On Fri, Nov 16, 2012 at 10:16 AM, Dominique Debailleux <
dominique.debailleux@woana.net> wrote:

> First query is OK; it just doesn't fit your need if I understand
> Could you confirm that the expected result is 6 rows (3 rows w/ppt plus 3
> rows/pdf) ?
>
>
>
>
> 2012/11/15 jefferyyuan <yuanyun.cn@gmail.com>
>
> > Thanks :)
> > local param is very useful, but seems it doesn't work here:
> > I tried:
> > q={!rows=3}ext_name:pdf OR ext_name:ppt  ==> this only return 3 ppt docs.
> >
> > q={!rows=3}ext_name:pdf OR q={!rows=3}ext_name:ppt
> > This causes syntax error, as solr doesn't support multiple query string.
> > q={!rows=3}ext_name:pdf OR {!rows=3}ext_name:ppt
> > This doesn't work either.
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://lucene.472066.n3.nabble.com/Is-there-a-way-to-limit-returned-rows-directly-in-a-query-string-tp4020550p4020602.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
> >
>
>
>
> --
> Dominique Debailleux
> WoAnA - small.but.robust
> [image: Accèder au profil LinkedIn de Dominique
> Debailleux]<http://www.linkedin.com/in/dominiquedebailleux>
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
 <mkhludnev@griddynamics.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message