Better to migrate to the 4.4 select handler conventions, as shown in the
example schema and config, rather than mess around with the old style of
config.
Start with the new config and schema and only add in or change things you
really need.
But first, add the debugQuery=true parameter to see how the parameters are
being processed.
-- Jack Krupansky
-----Original Message-----
From: Abhijith Jain -X (abhijjai - DIGITAL-X INC at Cisco)
Sent: Tuesday, November 12, 2013 8:03 PM
To: solr-user@lucene.apache.org
Subject: RE: Modify the querySearch to q=*:*
Thanks for the quick reply. I have following lines in my SolrConfig.xml. I
didn’t have luck with following Solrconfig.xml.
<requestDispatcher handleSelect="true">
<requestParsers enableRemoteStreaming="true"
multipartUploadLimitInKB="2048000" />
</requestDispatcher>
<requestHandler name="standard" class="solr.SearchHandler"
default="true">
<lst name="defaults">
<str name="echoParams">none</str>
<str name="q">*:*</str> <!—This is added by me -->
</lst>
</requestHandler>
Thanks
Abhi
-----Original Message-----
From: Jack Krupansky [mailto:j...@basetechnology.com]
Sent: Tuesday, November 12, 2013 4:33 PM
To: solr-user@lucene.apache.org
Subject: Re: Modify the querySearch to q=*:*
Usually we use the “/select” handler now – check your solrconfig.xml and see
if you have that as well. And check to see how “handleSelect” is set if you
intend not to use the “/select” handler.
Overall, read the new Solr 4.4 solrconfig file carefully and try to switch
to all of the new style of config settings.
-- Jack Krupansky
From: Abhijith Jain -X (abhijjai - DIGITAL-X INC at Cisco)
Sent: Tuesday, November 12, 2013 7:22 PM
To: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org>
Subject: Modify the querySearch to q=*:*
Hello,
I upgraded Solr to 4.4.0(previous Solr version was 3.5). After the
full-import was run on Solr 4.4.0 I could see the expected number of records
by accessing the URL http://myhost:7983/collection1/select/?q=*. But when
I access my application I can find partial number of records.
Later I found out that in Solr 4.4.0 query string is q=*:*. In Solr 3.5 it
was q=*\*. In Solr 4.4.0 when I modified the query q=*\* I got partial
number of records which is exactly the number of records I get when access
my application (Attached Solr snapshots). I think my default query is set to
q=*:*.
I am trying to set the query to q=*:* permanently. I tried to set q=*:* in
SolrConfig.xml file as follows.
<requestHandler name="standard" class="solr.SearchHandler" default="true">
<lst name="defaults">
<str name="echoParams">none</str>
<str name="q">*:*</str>
</lst>
</requestHandler>
But this didn’t help. Please advise how to change query to q=*:* in Solr
4.4.
Thanks
Abhi