On 12/27/2018 10:47 AM, Kay Wrobel wrote:
Now starting from SOLR version 5+, I receive zero (0) results back, but more 
importantly, the Query Parser produces an empty parsedQuery.

Here is the same query issued to SOLR 7.6.0 (current version):
https://pastebin.com/XcNhfdUD <https://pastebin.com/XcNhfdUD>

Notice how "parsedQuery" now shows "+()"; an empty query string.

I can duplicate this result on a 7.5.0 example config by sending an edismax query with undefined parameters for df and qf. The other field-related parameters for edismax are also undefined.  The following URL parameters with the default example config will produce that parsed query:

q=ac6023*&defType=edismax&df=&qf=&debugQuery=on

When a query is made and Solr's logging configuration is at its default setting, Solr will log a line into its logfile containing all of the parameters in the query, both those provided on the URL and those set by Solr's configuration (solrconfig.xml).  Can you share this log line from both the version that works and the version that doesn't?

This is the log line created when I ran the query mentioned above:

2018-12-27 23:03:23.199 INFO  (qtp315932542-23) [   x:baz] o.a.s.c.S.Request [baz]  webapp=/solr path=/select params={q=ac6023*&defType=edismax&df=&qf=&debugQuery=on} hits=0 status=0 QTime=0

What I'm thinking is that there is a difference in the configuration of the two servers or the actual query being sent is different.  Either way, there's something different.  The two log lines that I have asked for are likely to be different from each other in some way that will explain what you're seeing.

Thanks,
Shawn

Reply via email to