OK, I really don't get this. The quoted bit gives:
+DisjunctionMaxQuery((xid:pass by value^0.3 | id:pass by value^0.3 |
x_name:"pass ? value"^0.3 | text:"pass ? value" | name:"pass ?
value"^2.3))

The bare bit gives:
+((DisjunctionMaxQuery((uxid:pass^0.3 | id:pass^0.3 | x_name:pass^0.3
| text:loan | name:pass^2.3))
DisjunctionMaxQuery((uxid:by^0.3 | id:by^0.3))
DisjunctionMaxQuery((uxid:value^0.3 | id:value^0.3 | x_name:value^0.3 |
text:value | name:value^2.3)))~3

In the one case you're searching on "xid", in the other "uxid". The
unquoted case also has "text:loan" and "id:by" and "id:value". Is that
that's where you are getting your hits?

Erick

On Thu, Feb 23, 2012 at 6:52 AM, mechravi25 <mechrav...@yahoo.co.in> wrote:
> HI Erick,
>
> Thanks for the response.
>
> I am currently using solr 1.5 version.
>
> We are getting the following query when we give the search query as "Pass By
> Value" without quotes and by using qt=dismax in the request query.
>
>  webapp=/solr path=/select/
> params={facet=true&f.typeFacet.facet.mincount=1&qf=name^2.3+text+x_name^0.3+id^0.3+uxid^0.3&hl.fl=*&hl=true&f.rFacet.facet.mincount=1&rows=10&debugQuery=true&fl=*&start=0&q=pass+by+value&facet.field=typeFacet&facet.field=rFacet&qt=dismax}
> hits=0 status=0 QTime=63
>
> and the response for it in the UI is as follows
>
> <result name="response" numFound="0" start="0" />
> - <lst name="facet_counts">
>  <lst name="facet_queries" />
> - <lst name="facet_fields">
>  <lst name="typeFacet" />
>  <lst name="rFacet" />
>  </lst>
>  <lst name="facet_dates" />
>  </lst>
>  <lst name="highlighting" />
> - <lst name="debug">
>  <str name="rawquerystring">pass by value</str>
>  <str name="querystring">pass by value</str>
>  <str name="parsedquery">+((DisjunctionMaxQuery((uxid:pass^0.3 |
> id:pass^0.3 | x_name:pass^0.3 | text:loan | name:pass^2.3))
> DisjunctionMaxQuery((uxid:by^0.3 | id:by^0.3))
> DisjunctionMaxQuery((uxid:value^0.3 | id:value^0.3 | x_name:value^0.3 |
> text:value | name:value^2.3)))~3) ()</str>
>  <str name="parsedquery_toString">+(((uxid:pass^0.3 | id:loan^0.3 |
> x_name:pass^0.3 | text:loan | name:pass^2.3) (uxid:by^0.3 | id:by^0.3)
> (uxid:value^0.3 | id:value^0.3 | x_name:value^0.3 | text:value |
> name:value^2.3))~3) ()</str>
>  <lst name="explain" />
>  <str name="QParser">DisMaxQParser</str>
>  <null name="altquerystring" />
>  <null name="boostfuncs" />
> - <lst name="timing">
>  <double name="time">3.0</double>
> - <lst name="prepare">
>  <double name="time">1.0</double>
> - <lst name="org.apache.solr.handler.component.QueryComponent">
>  <double name="time">1.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.StatsComponent">
>  <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">2.0</double>
> - <lst name="org.apache.solr.handler.component.QueryComponent">
>  <double name="time">1.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">1.0</double>
>  </lst>
> - <lst name="org.apache.solr.handler.component.StatsComponent">
>  <double name="time">0.0</double>
>  </lst>
> - <lst name="org.apache.solr.handler.component.DebugComponent">
>  <double name="time">0.0</double>
>  </lst>
>  </lst>
>  </lst>
>  </lst>
>  </response>
>
> whereas we get the following query when we remove the parameter "qt=dismax"
> from the request query and this is fetching the required results.
>
> webapp=/solr path=/select/
> params={facet=true&qf=name^2.3+text+x_name^0.3+id^0.3+uxid^0.3&f.typeFacet.facet.mincount=1&hl.fl=*&f.rFacet.facet.mincount=1&hl=true&rows=10&fl=*&debugQuery=true&start=0&q=pass+by+value&facet.field=typeFacet&facet.field=rFacet}
> hits=9203 status=0 QTime=1158
>
> In another case where we use "Pass by Value" with quotes and also with
> qt=dismax in the request handler, the search query is fetching the right
> values. The following is the concerned query.
>
>  webapp=/solr path=/select/
> params={facet=true&qf=name^2.3+text+x_name^0.3+id^0.3+uxid^0.3&f.typeFacet.facet.mincount=1&hl.fl=*&f.rFacet.facet.mincount=1&hl=true&rows=10&fl=*&debugQuery=true&start=0&q="pass+by+value"&facet.field=typeFacet&facet.field=rFacet}
> hits=18 status=0 QTime=213
>
>
>
>  and the response for it from UI is
>
>  <?xml version="1.0" encoding="UTF-8" ?>
>  - <response>
>  - <lst name="responseHeader">
>   <int name="status">0</int>
>   <int name="QTime">578</int>
>  - <lst name="params">
>   <str name="facet">true</str>
>   <str name="f.typeFacet.facet.mincount">1</str>
>   <str name="qf">name^2.3 text x_name^0.3 id^0.3 xid^0.3</str>
>   <str name="hl.fl">*</str>
>   <str name="hl">true</str>
>   <str name="f.rFacet.facet.mincount">1</str>
>   <str name="rows">10</str>
>   <str name="debugQuery">true</str>
>   <str name="fl">*</str>
>   <str name="start">0</str>
>   <str name="q">"pass by value"</str>
>  - <arr name="facet.field">
>   <str>typeFacet</str>
>   <str>rFacet</str>
>   </arr>
>   <str name="qt">dismax</str>
>   </lst>
>   </lst>
>  + <result name="response" numFound="18" start="0">
>  + <lst name="facet_counts">
>  + <lst name="highlighting">
>  - <lst name="debug">
>   <str name="rawquerystring">"pass by value"</str>
>   <str name="querystring">"pass by value"</str>
>   <str name="parsedquery">+DisjunctionMaxQuery((xid:pass by value^0.3 |
> id:pass by value^0.3 | x_name:"pass ? value"^0.3 | text:"pass ? value" |
> name:"pass ? value"^2.3)) ()</str>
>   <str name="parsedquery_toString">+(xid:pass by value^0.3 | id:pass by
> value^0.3 | x_name:"pass ? value"^0.3 | text:"pass ? value" | name:"pass ?
> value"^2.3) ()</str>
>  + <lst name="explain">
>   <str name="QParser">DisMaxQParser</str>
>   <null name="altquerystring" />
>   <null name="boostfuncs" />
>  - <lst name="timing">
>   <double name="time">578.0</double>
>  - <lst name="prepare">
>   <double name="time">1.0</double>
>  - <lst name="org.apache.solr.handler.component.QueryComponent">
>   <double name="time">1.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.StatsComponent">
>   <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">577.0</double>
>  - <lst name="org.apache.solr.handler.component.QueryComponent">
>   <double name="time">373.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">136.0</double>
>   </lst>
>  - <lst name="org.apache.solr.handler.component.StatsComponent">
>   <double name="time">0.0</double>
>   </lst>
>  - <lst name="org.apache.solr.handler.component.DebugComponent">
>   <double name="time">68.0</double>
>   </lst>
>   </lst>
>   </lst>
>   </lst>
>   </response>
>
>
> we also tried by using the following tag, <str name="qf">text</str>
> to make the dismax handler point to the default field type in the schema.xml
> and this is also not working.
> Am I missing something here? Please guide me
>
> Thanks
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/String-search-in-Dismax-handler-tp3766360p3769450.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to