The dismax parser does not support wildcard queries currently (but see also SOLR-756). Again, use defType=lucene to get that capability. But, you will lose the qf field specific boosting capability. You can, however, OR in additional clauses for boosting (like the dismax bq does).

Query parsing is tricky business. Mark Miller blogged a great entry about the various options available: <http://www.lucidimagination.com/blog/2009/02/22/exploring-query-parsers/ >

        Erik

On Mar 2, 2009, at 11:06 PM, dabboo wrote:


Here is what I am getting with debugQuery=true

<?xml version="1.0" encoding="UTF-8" ?>
- <response>
- <lst name="responseHeader">
 <int name="status">0</int>
 <int name="QTime">110</int>
- <lst name="params">
 <str name="rows">10</str>
 <str name="start">0</str>
 <str name="defType">lucene</str>
 <str name="indent">on</str>
 <str name="q">da*</str>
 <str name="qt">dismaxrequest</str>
 <str name="debugQuery">true</str>
 <str name="version">2.2</str>
 </lst>
 </lst>
 <result name="response" numFound="0" start="0" maxScore="0.0" />
- <lst name="debug">
 <str name="rawquerystring">da*</str>
 <str name="querystring">da*</str>
 <str
name="parsedquery"> +DisjunctionMaxQuery((programJacketImage_program_s:da* | courseCodeSeq_course_s:da* | authorLastName_product_s:da* | Index_Type_s:da*
| prdMainTitle_s:da*^10.0 | discCode_course_s:da* |
sourceGroupName_course_s:da* | indexType_course_s:da* |
prdMainTitle_product_s:da* | isbn10_product_s:da* | displayName_course_s:da*
| groupNm_program_s:da* | discipline_product_s:da* |
courseJacketImage_course_s:da* | imprint_product_s:da* |
introText_program_s:da* | productType_product_s:da* | isbn13_product_s:da* |
copyrightYear_product_s:da* | prdPubDate_product_s:da* |
programType_program_s:da* | editor_product_s:da* | courseType_course_s:da* | productURL_s:da*^10000.0 | courseId_course_s:da* | categoryIds_product_s:da*
| indexType_program_s:da* | strapline_product_s:da* |
subCompany_course_s:da* | aluminator_product_s:da* | readBy_product_s:da* |
subject_product_s:da* | edition_product_s:da* |
programId_program_s:da*)~0.01) () all:english^90.0 all:hindi^123.0
all:glorious^2000.0 all:highlight^1.0E7 all:math^100.0 all:ab^12.0
all:erer^4545.0 MultiPhraseQuery(all:"(prd prd main prd main titl prd main
titl s) (main main titl main titl s) (titl titl s) s"^10.0)
MultiPhraseQuery(all:"(product product url product url s) (url url s)
s"^10000.0)</str>
 <str name="parsedquery_toString">+(programJacketImage_program_s:da* |
courseCodeSeq_course_s:da* | authorLastName_product_s:da* | Index_Type_s:da*
| prdMainTitle_s:da*^10.0 | discCode_course_s:da* |
sourceGroupName_course_s:da* | indexType_course_s:da* |
prdMainTitle_product_s:da* | isbn10_product_s:da* | displayName_course_s:da*
| groupNm_program_s:da* | discipline_product_s:da* |
courseJacketImage_course_s:da* | imprint_product_s:da* |
introText_program_s:da* | productType_product_s:da* | isbn13_product_s:da* |
copyrightYear_product_s:da* | prdPubDate_product_s:da* |
programType_program_s:da* | editor_product_s:da* | courseType_course_s:da* | productURL_s:da*^10000.0 | courseId_course_s:da* | categoryIds_product_s:da*
| indexType_program_s:da* | strapline_product_s:da* |
subCompany_course_s:da* | aluminator_product_s:da* | readBy_product_s:da* |
subject_product_s:da* | edition_product_s:da* |
programId_program_s:da*)~0.01 () all:english^90.0 all:hindi^123.0
all:glorious^2000.0 all:highlight^1.0E7 all:math^100.0 all:ab^12.0
all:erer^4545.0 all:"(prd prd main prd main titl prd main titl s) (main main titl main titl s) (titl titl s) s"^10.0 all:"(product product url product
url s) (url url s) s"^10000.0</str>
 <lst name="explain" />
 <str name="QParser">DismaxQParser</str>
 <null name="altquerystring" />
- <arr name="boost_queries">
<str>english^90 hindi^123 Glorious^2000 highlighting^10000000 maths^100
ab^12 erer^4545 prdMainTitle_s^10.0 productURL_s^10000.0</str>
 </arr>
- <arr name="parsed_boost_queries">
 <str>all:english^90.0 all:hindi^123.0 all:glorious^2000.0
all:highlight^1.0E7 all:math^100.0 all:ab^12.0 all:erer^4545.0
MultiPhraseQuery(all:"(prd prd main prd main titl prd main titl s) (main main titl main titl s) (titl titl s) s"^10.0) MultiPhraseQuery(all:"(product
product url product url s) (url url s) s"^10000.0)</str>
 </arr>
- <arr name="boostfuncs">
 <str />
 </arr>
- <lst name="timing">
 <double name="time">32.0</double>
- <lst name="prepare">
 <double name="time">16.0</double>
- <lst name="org.apache.solr.handler.component.QueryComponent">
 <double name="time">16.0</double>
 </lst>
- <lst name="org.apache.solr.handler.component.FacetComponent">
 <double name="time">0.0</double>
 </lst>
- <lst name="org.apache.solr.handler.component.MoreLikeThisComponent">
 <double name="time">0.0</double>
 </lst>
- <lst name="org.apache.solr.handler.component.HighlightComponent">
 <double name="time">0.0</double>
 </lst>
- <lst name="org.apache.solr.handler.component.SpellCheckComponent">
 <double name="time">0.0</double>
 </lst>
- <lst name="org.apache.solr.handler.component.DebugComponent">
 <double name="time">0.0</double>
 </lst>
 </lst>
- <lst name="process">
 <double name="time">16.0</double>
- <lst name="org.apache.solr.handler.component.QueryComponent">
 <double name="time">0.0</double>
 </lst>
- <lst name="org.apache.solr.handler.component.FacetComponent">
 <double name="time">0.0</double>
 </lst>
- <lst name="org.apache.solr.handler.component.MoreLikeThisComponent">
 <double name="time">0.0</double>
 </lst>
- <lst name="org.apache.solr.handler.component.HighlightComponent">
 <double name="time">0.0</double>
 </lst>
- <lst name="org.apache.solr.handler.component.SpellCheckComponent">
 <double name="time">0.0</double>
 </lst>
- <lst name="org.apache.solr.handler.component.DebugComponent">
 <double name="time">16.0</double>
 </lst>
 </lst>
 </lst>
 </lst>
 </response>


Also, even if works, would I be able to achieve the field boosting with q
query parameter.

Thanks,
Amit Garg

Erik Hatcher wrote:


On Mar 2, 2009, at 10:15 AM, dabboo wrote:
Thanks for the information. I gave it in my url as the request
parameter like

http://localhost:8080/apache-solr-1.3.0/CORE_WWW.BLUEHEN.COM/select/?q=da*&version=2.2&start=0&rows=10&indent=on&qt=dismaxrequest&defType=lucene

But still results are the same. It is not displaying any records.

Please suggest.

How is your dismaxrequest request handler defined?   For example, if
you have an invariant defType set there, then setting defType on the
request would be ignored.

Also, what do you get for a parsed query when setting &debugQuery=true?

        Erik




--
View this message in context: 
http://www.nabble.com/Difference-between-q-and-q.alt-parameter-query-tp22286561p22302203.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to