Re: How to get all the search results?
Hi Shawn, Yes you did. I tried and did not work so I asked the same question again. Now I understood and tried directly on the Solr admin and I got all the search results. I will implement the same on the website. Thank you so much Shawn. On Mon, Dec 13, 2010 at 5:16 PM, Shawn Heisey wrote: > On 12/13/2010 9:59 AM, Solr User wrote: > >> Hi, >> >> I tried *:* using dismax and I get no results. >> >> Is there a way that I can get all the search results using dismax? >> > > For dismax, use q= or simply leave the q parameter off the URL entirely. > It appears that you need to have q.alt set to *:* for this to work. It > would be a good idea to include this in your handler definition: > > *:* > > Two people (myself and Peter Karich) gave this answer on this thread last > week, within 15 minutes of the time your original question was posted. > Here's the entire thread on nabble: > > > http://lucene.472066.n3.nabble.com/How-to-get-all-the-search-results-td2028233.html > > Shawn > >
Re: How to get all the search results?
On 12/13/2010 9:59 AM, Solr User wrote: Hi, I tried *:* using dismax and I get no results. Is there a way that I can get all the search results using dismax? For dismax, use q= or simply leave the q parameter off the URL entirely. It appears that you need to have q.alt set to *:* for this to work. It would be a good idea to include this in your handler definition: *:* Two people (myself and Peter Karich) gave this answer on this thread last week, within 15 minutes of the time your original question was posted. Here's the entire thread on nabble: http://lucene.472066.n3.nabble.com/How-to-get-all-the-search-results-td2028233.html Shawn
Re: How to get all the search results?
Can we see the results with &debugQuery=on? As well as the entire http string you use? Also, are you sure you've put documents in your index and committed afterwards? Best Erick On Mon, Dec 13, 2010 at 11:59 AM, Solr User wrote: > Hi, > > I tried *:* using dismax and I get no results. > > Is there a way that I can get all the search results using dismax? > > Thanks, > Murali > > On Mon, Dec 6, 2010 at 11:17 AM, Savvas-Andreas Moysidis < > savvas.andreas.moysi...@googlemail.com> wrote: > > > Hello, > > > > shouldn't that query syntax be *:* ? > > > > Regards, > > -- Savvas. > > > > On 6 December 2010 16:10, Solr User wrote: > > > > > Hi, > > > > > > First off thanks to the group for guiding me to move from default > search > > > handler to dismax. > > > > > > I have a question related to getting all the search results. In the > past > > > with the default search handler I was getting all the search results > > (8000) > > > if I pass q=* as search string but with dismax I was getting only 16 > > > results > > > instead of 8000 results. > > > > > > How to get all the search results using dismax? Do I need to configure > > > anything to make * (asterisk) work? > > > > > > Thanks, > > > Solr User > > > > > >
Re: How to get all the search results?
Hi, I tried *:* using dismax and I get no results. Is there a way that I can get all the search results using dismax? Thanks, Murali On Mon, Dec 6, 2010 at 11:17 AM, Savvas-Andreas Moysidis < savvas.andreas.moysi...@googlemail.com> wrote: > Hello, > > shouldn't that query syntax be *:* ? > > Regards, > -- Savvas. > > On 6 December 2010 16:10, Solr User wrote: > > > Hi, > > > > First off thanks to the group for guiding me to move from default search > > handler to dismax. > > > > I have a question related to getting all the search results. In the past > > with the default search handler I was getting all the search results > (8000) > > if I pass q=* as search string but with dismax I was getting only 16 > > results > > instead of 8000 results. > > > > How to get all the search results using dismax? Do I need to configure > > anything to make * (asterisk) work? > > > > Thanks, > > Solr User > > >
Re: How to get all the search results?
ahhh, right..in dismax, you pre-define the fields that will be searched upon is that right? is it also true that the query is parsed and all special characters escaped? On 6 December 2010 16:25, Peter Karich wrote: > for dismax just pass an empty query all q= or none at all > > > Hello, >> >> shouldn't that query syntax be *:* ? >> >> Regards, >> -- Savvas. >> >> On 6 December 2010 16:10, Solr User wrote: >> >> Hi, >>> >>> First off thanks to the group for guiding me to move from default search >>> handler to dismax. >>> >>> I have a question related to getting all the search results. In the past >>> with the default search handler I was getting all the search results >>> (8000) >>> if I pass q=* as search string but with dismax I was getting only 16 >>> results >>> instead of 8000 results. >>> >>> How to get all the search results using dismax? Do I need to configure >>> anything to make * (asterisk) work? >>> >>> Thanks, >>> Solr User >>> >>> > > -- > http://jetwick.com twitter search prototype > >
Re: How to get all the search results?
for dismax just pass an empty query all q= or none at all Hello, shouldn't that query syntax be *:* ? Regards, -- Savvas. On 6 December 2010 16:10, Solr User wrote: Hi, First off thanks to the group for guiding me to move from default search handler to dismax. I have a question related to getting all the search results. In the past with the default search handler I was getting all the search results (8000) if I pass q=* as search string but with dismax I was getting only 16 results instead of 8000 results. How to get all the search results using dismax? Do I need to configure anything to make * (asterisk) work? Thanks, Solr User -- http://jetwick.com twitter search prototype
Re: How to get all the search results?
With dismax, I didn't get any results with *:*. I did the query with these options (q is empty) and got the full rowcount: q=&rows=0&qt=dismax I have q.alt defined in my dismax handler as *:*, don't know if that is required or not. Shawn On 12/6/2010 9:17 AM, Savvas-Andreas Moysidis wrote: Hello, shouldn't that query syntax be *:* ? Regards, -- Savvas. On 6 December 2010 16:10, Solr User wrote: Hi, First off thanks to the group for guiding me to move from default search handler to dismax. I have a question related to getting all the search results. In the past with the default search handler I was getting all the search results (8000) if I pass q=* as search string but with dismax I was getting only 16 results instead of 8000 results. How to get all the search results using dismax? Do I need to configure anything to make * (asterisk) work? Thanks, Solr User
Re: How to get all the search results?
Hello, shouldn't that query syntax be *:* ? Regards, -- Savvas. On 6 December 2010 16:10, Solr User wrote: > Hi, > > First off thanks to the group for guiding me to move from default search > handler to dismax. > > I have a question related to getting all the search results. In the past > with the default search handler I was getting all the search results (8000) > if I pass q=* as search string but with dismax I was getting only 16 > results > instead of 8000 results. > > How to get all the search results using dismax? Do I need to configure > anything to make * (asterisk) work? > > Thanks, > Solr User >
Re: How to get all the search results - python
On Tue, 2007-09-25 at 10:03 +0530, Roopesh P Raj wrote: DISCLAIMER: Please, I am subscribed to the user list and there is no need to write me directly nor cc me in your response. More since we are an open source project off-list communication is suboptimal and harmful to the community. The community has many eyes which can see possible problems with some solution and propose better ones. Further the mailing list has an archive and proofed solution can be searched. If we all share off-list mailings no solutions go into the archive and we always have to repeat the same mails. PLEASE write to the ml! > > http://wiki.apache.org/solr/CommonQueryParameters > > > It should work as described in the above document (with the start > > parameter. > > > e.g. > > data = c.search(q='query', fl='id score unique_id Message-ID To From > > Subject',rows=50, wt='python',start=50) > > > HTH > > -- > > Hi, > > I my application there is a provision to copy the archive based on date > indexed. > In this case the number of search results may exceed the high number I have > assigned to rows, say rows=1000. I wanted to avoid this situation. In > this > situation I don't want paginated queries. > > Can you please tell me how to approach this particular situation. I think the best way is to 1) get the first response document (rows=50,start=0) 2) parse the response to see how many results you have 3) do a loop (rows=50,start=50*x) and call solr till you have all results. Like Jérôme stated: On Mon, 2007-09-24 at 12:45 +0100, Jérôme Etévé wrote: > By design, it's not very efficient to ask for a large number of > results with solr/lucene. I think you will face performance and memory > problems if you do that. HTH salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions
Re: How to get all the search results - python
Thanks a lot for your replies. I will follow the paginated search. Thanks and Regards Roopesh -- DigitalGlue, India
Re: How to get all the search results - python
By design, it's not very efficient to ask for a large number of results with solr/lucene. I think you will face performance and memory problems if you do that. On 9/24/07, Thorsten Scherler <[EMAIL PROTECTED]> wrote: > On Mon, 2007-09-24 at 16:29 +0530, Roopesh P Raj wrote: > > > Hi Roopesh, > > > > > I am not sure whether I understand your problem. > > > > > Is it the limitation of rows/pagination? > > > If so why not using a real high number (like rows=100)? > > > > > salu2 > > > > Hi, > > > > Assigning a high number will solve my problem. (I thought that there will > > something like rows='all' to do it). > > > > Can I do pagination using the python client? > > I am not a python expert but I think so. > > > How can I specify the starting position, offset etc for > > pagination through the python client? > > http://wiki.apache.org/solr/CommonQueryParameters > > It should work as described in the above document (with the start > parameter. > > e.g. > data = c.search(q='query', fl='id score unique_id Message-ID To From > Subject',rows=50, wt='python',start=50) > > HTH > -- > Thorsten Scherler thorsten.at.apache.org > Open Source Java consulting, training and solutions > > -- Jerome Eteve. [EMAIL PROTECTED] http://jerome.eteve.free.fr/
Re: How to get all the search results - python
On Mon, 2007-09-24 at 16:29 +0530, Roopesh P Raj wrote: > > Hi Roopesh, > > > I am not sure whether I understand your problem. > > > Is it the limitation of rows/pagination? > > If so why not using a real high number (like rows=100)? > > > salu2 > > Hi, > > Assigning a high number will solve my problem. (I thought that there will > something like rows='all' to do it). > > Can I do pagination using the python client? I am not a python expert but I think so. > How can I specify the starting position, offset etc for > pagination through the python client? http://wiki.apache.org/solr/CommonQueryParameters It should work as described in the above document (with the start parameter. e.g. data = c.search(q='query', fl='id score unique_id Message-ID To From Subject',rows=50, wt='python',start=50) HTH -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions
Re: How to get all the search results - python
Hi Roopesh, I am not sure whether I understand your problem. Is it the limitation of rows/pagination? If so why not using a real high number (like rows=100)? salu2 Hi, Assigning a high number will solve my problem. (I thought that there will something like rows='all' to do it). Can I do pagination using the python client? How can I specify the starting position, offset etc for pagination through the python client? Regards Roopesh -- DigitalGlue, India
Re: How to get all the search results - python
On Mon, 2007-09-24 at 14:34 +0530, Roopesh P Raj wrote: > Hi, > > I am using solr setup in Tomcat 5.5 with python 2.4 using python client > solr.py. > > When I search, all the results are not returned. > > The method call for searching is as follows : rows specifies the number of > rows. > data = c.search(q='query', fl='id score unique_id Message-ID To From > Subject',rows=50, wt='python') > > I want to specify that I want all the rows. How can I do that ? Hi Roopesh, I am not sure whether I understand your problem. Is it the limitation of rows/pagination? If so why not using a real high number (like rows=100)? salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions