lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Debailleux <dominique.debaill...@woana.net>
Subject Re: Is there a way to limit returned rows directly in a query string?
Date Thu, 15 Nov 2012 17:24:49 GMT
Hi yun

Not sure to understand your need...
There is no relationship between a query string and DIH.
What you want to achieve (if "fetch 10000 rows" means "select 10000 rows
from a table") can be done by limiting the number of rows you SQL select
will return (the syntax differs from SGBD to SGBD).

Dom


2012/11/15 jefferyyuan <yuanyun.cn@gmail.com>

> Hi, all:
>
> Is there a way to limit returned rows directly in a query string?
> I know we can limit returned size by parameter: rows, and start, but I am
> wondering whether we can do this directly in query string , such as:
> q=(file_type:pdf, rows:10) OR (file_type:ppt, rows:10)
> We may even add start:
> q=(file_type:pdf,start:10, rows:10) OR (file_type:ppt, start:10, rows:10)
>
> Why I am wanting this function is that, when I try to use
> DataImportHandler,
> and want to test its performance, such as fetch 1000, 10000 rows.
>
> Is it possible to do this in some ways using current solr?
> Do you think this function is useful?
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Is-there-a-way-to-limit-returned-rows-directly-in-a-query-string-tp4020550.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>

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