Need some quick help diagnosing query
Right now i am doing the following: qf=name^1.75 codeTXT^1.75 cat_search^1.5 description^0.8 brand^5.0 cat_search^0.8 fl=code,score defType=dismax q=whitney brothers carts if i change it to the following then i get results: qf=name^1.75 codeTXT^1.75 cat_search^1.5 description^0.8 brand^5.0 cat_search^0.8 fl=code,score defType=dismax q=whitney brothers So why is the first query returning 0 results?
Re: Need some quick help diagnosing query
--- On Wed, 3/7/12, Donald Organ dor...@donaldorgan.com wrote: From: Donald Organ dor...@donaldorgan.com Subject: Need some quick help diagnosing query To: solr-user solr-user@lucene.apache.org Date: Wednesday, March 7, 2012, 4:43 PM Right now i am doing the following: qf=name^1.75 codeTXT^1.75 cat_search^1.5 description^0.8 brand^5.0 cat_search^0.8 fl=code,score defType=dismax q=whitney brothers carts if i change it to the following then i get results: qf=name^1.75 codeTXT^1.75 cat_search^1.5 description^0.8 brand^5.0 cat_search^0.8 fl=code,score defType=dismax q=whitney brothers So why is the first query returning 0 results? Simply your collection does contain a doc having all these three terms? Try different mm values. http://wiki.apache.org/solr/DisMaxQParserPlugin#mm_.28Minimum_.27Should.27_Match.29
Re: Need some quick help diagnosing query
Simply your collection does contain a doc having all these three terms? Try different mm values. http://wiki.apache.org/solr/DisMaxQParserPlugin#mm_.28Minimum_.27Should.27_Match.29 Would this also be affected if one of the fields that contains that term is a defined as solr.StrField where as most of the other fields are defined as solr.TextField?
Re: Need some quick help diagnosing query
--- On Wed, 3/7/12, Donald Organ dor...@donaldorgan.com wrote: From: Donald Organ dor...@donaldorgan.com Subject: Re: Need some quick help diagnosing query To: solr-user@lucene.apache.org Date: Wednesday, March 7, 2012, 4:59 PM Simply your collection does contain a doc having all these three terms? Try different mm values. http://wiki.apache.org/solr/DisMaxQParserPlugin#mm_.28Minimum_.27Should.27_Match.29 Would this also be affected if one of the fields that contains that term is a defined as solr.StrField where as most of the other fields are defined as solr.TextField? It could be. string fields are not analyzed. For example, one whitespace can prevent match. Cards and cards wont match too. (lowercase)
Re: Need some quick help diagnosing query
Would this also be affected if one of the fields that contains that term is a defined as solr.StrField where as most of the other fields are defined as solr.TextField? It could be. string fields are not analyzed. For example, one whitespace can prevent match. Cards and cards wont match too. (lowercase) Ok looks like its time to setup some copyFields. I will try that and see if that help and point my query at the solr.TextField's