Hi, I am trying to sort the search results on the basis of some fields of my XML document. SAMPLE RESULT XML document :
<result name="response" numFound="6" start="0"> <doc> <str name="Index_Type_s">productIndex</str> <str name="URL_s">5000</str> <arr name="all"> <str>productIndex</str> <str>799</str> <str>baraaa</str> <str>5000</str> <str>5000</str> <str>sapient123</str> <str>in Stock</str> <str>4999</str> <str>In Search of the Shape of the Universe</str> </arr> <str name="basePrice_s">799</str> <str name="prdMainTitle_s">baraaa</str> <str name="productDescription_s">In Search of the Shape of the Universe</str> <str name="productPrice_s">4999</str> <str name="productURL_s">sapient123</str> <str name="statusName_s">in Stock</str> <date name="timestamp">2008-10-22T01:35:05.952Z</date> </doc> <doc> <str name="Index_Type_s">productIndex</str> <str name="URL_s">6000</str> - <arr name="all"> <str>productIndex</str> <str>799</str> <str>coffee</str> <str>6000</str> <str>6000</str> <str>http://sapient1.com</str> <str>in Stock</str> <str>4999</str> <str>Object</str> </arr> <str name="basePrice_s">799</str> <str name="prdMainTitle_s">coffee</str> <str name="productDescription_s">Object</str> <str name="productPrice_s">4999</str> <str name="productURL_s">http://sapient1.com</str> <str name="statusName_s">in Stock</str> <date name="timestamp">2008-10-22T01:35:05.983Z</date> </doc> </result> Sorting works fine when i give it simply like (index field used for sorting : "prdMainTitle_s") : http://delpearsonwebapps:8080/apache-solr-1.3.0/core510000043/select/?q=sapient;prdMainTitle_s%20asc Issue : As i provide the parameter qt within the query , search response result comes out to be none. Sample query with qt parameter : http://delpearsonwebapps:8080/apache-solr-1.3.0/core510000043/select/?q=sapient;prdMainTitle_s%20asc&qt=dismaxrequest requestHandler name="dismaxrequest" class="solr.DisMaxRequestHandler" has neen mentioned below within the solrConfig file content where all the fields which are indexed are mentioned within the <str name =qf > tag :: <!-- requestHandler plugins... incoming queries will be dispatched to the correct handler based on the path or the qt (query type) param. Names starting with a '/' are accessed with the a path equal to the registered name. Names without a leading '/' are accessed with: http://host/app/select?qt=name If no qt is defined, the requestHandler that declares default="true" will be used. --> <requestHandler name="standard" class="solr.SearchHandler" default="true"> <!-- default values for query parameters --> <lst name="defaults"> <str name="echoParams">explicit</str> <!-- <int name="rows">10</int> <str name="fl">*</str> <str name="version">2.1</str> --> </lst> </requestHandler> <!-- DisMaxRequestHandler allows easy searching across multiple fields for simple user-entered phrases. It's implementation is now just the standard SearchHandler with a default query type of "dismax". see http://wiki.apache.org/solr/DisMaxRequestHandler --> <requestHandler name="dismaxrequest" class="solr.DisMaxRequestHandler" > <lst name="defaults"> <str name="echoParams">explicit</str> <float name="tie">0.01</float> <str name="qf"> statusName_s^1.0 productId_s^1.0 iSBN10_s^1.0 iSBN13_s^1.0 prdMainTitle_s^1.0 prdKeywords_s^1.0 productDescription_s^1.0 prdMainSubTitle_s^1.0 contentTypeId_s^1.0 </str> <str name="pf"> </str> <str name="bq">english^90 hindi^123 Glorious^2000 highlighting^10000000 maths^100 ab^12 erer^4545</str> <str name="fl"> *,score </str> </lst> </requestHandler> <requestHandler name="dismax" class="solr.SearchHandler" > <lst name="defaults"> <str name="defType">dismax</str> <str name="echoParams">explicit</str> <float name="tie">0.01</float> <str name="qf"> </str> <str name="pf"> </str> <str name="bf"> </str> <str name="fl"> </str> <str name="mm"> 2<-1 5<-2 6<90% </str> <int name="ps">100</int> <str name="q.alt">*:*</str> <!-- example highlighter config, enable per-query with hl=true --> <str name="hl.fl">text features name</str> <!-- for this field, we want no fragmenting, just highlighting --> <str name="f.name.hl.fragsize">0</str> <!-- instructs Solr to return the field itself if no query terms are found --> <str name="f.name.hl.alternateField">name</str> <str name="f.text.hl.fragmenter">regex</str> <!-- defined below --> </lst> </requestHandler> Please let me know whether I need to provide some configuration changes in the solrConfig.XML for sorting related settings or Have to provide the indexed fields name in this file on which I want to perform sorting. Thanks in advance. -- View this message in context: http://www.nabble.com/Sorting-is-not-taking-place-on-the-search-results-when-query-consists-of-%22qt-%22-parameter-tp20481589p20481589.html Sent from the Solr - User mailing list archive at Nabble.com.