You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Bráulio Bhavamitra (Created JIRA)" <ji...@apache.org> on 2012/04/02 03:56:28 UTC

[jira] [Created] (SOLR-3303) defType ignore if no qt is used

defType ignore if no qt is used
-------------------------------

                 Key: SOLR-3303
                 URL: https://issues.apache.org/jira/browse/SOLR-3303
             Project: Solr
          Issue Type: Bug
    Affects Versions: 3.5
            Reporter: Bráulio Bhavamitra
            Priority: Critical


I've reproduced this bug using the geodist ordering.

'defType' is being completely ignored, and it don't change nothing with 'qt' added or not.
I'm supposing that in later case defType must be informed, cause edismax (or dismax) is not default.

The correct behaviour is expected when not using qt (defaulting to the default handler with no default defType value specified in solrconfig.xml) and using defType would make the query work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3303) defType param completely ignored

Posted by "Erick Erickson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244139#comment-13244139 ] 

Erick Erickson commented on SOLR-3303:
--------------------------------------

Could you attach some examples? There's nothing here I can use to reproduce this. In particular, please attach the results of adding &debugQuery=on to the query that fails along with an explanation of what you think is wrong.

I would be hugely surprised if this were true. I just ran a quick test and it's behaving as I expect for the query:
http://localhost:8983/solr/select?q=maxtor&defType=edismax&fl=name,id&debugQuery=on&wt=json
{noformat}
{
  "responseHeader": {
    "status": 0,
    "QTime": 0,
    "params": {
      "fl": "name,id",
      "debugQuery": "on",
      "wt": "json",
      "q": "maxtor",
      "defType": "edismax"
    }
  },
  "response": {
    "numFound": 1,
    "start": 0,
    "docs": [
      {
        "name": "Maxtor DiamondMax 11 - hard drive - 500 GB - SATA-300"
      }
     ]
  },
  "debug": {
    "rawquerystring": "maxtor",
    "querystring": "maxtor",
    "parsedquery": "+DisjunctionMaxQuery((text:maxtor))",
    "parsedquery_toString": "+(text:maxtor)",
    "explain": <removed>
    "QParser": "ExtendedDismaxQParser",
   etc.
{noformat}
                
> defType param completely ignored
> --------------------------------
>
>                 Key: SOLR-3303
>                 URL: https://issues.apache.org/jira/browse/SOLR-3303
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Bráulio Bhavamitra
>            Priority: Critical
>
> I've reproduced this bug using the geodist ordering.
> 'defType' is being completely ignored, and it don't change nothing with 'qt' added or not.
> I'm supposing that in later case defType must be informed, cause edismax (or dismax) is not default.
> The correct behaviour is expected when not using qt (defaulting to the default handler with no default defType value specified in solrconfig.xml) and using defType would make the query work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3303) defType param completely ignored

Posted by "Bráulio Bhavamitra (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244239#comment-13244239 ] 

Bráulio Bhavamitra commented on SOLR-3303:
------------------------------------------

thank you yonik.

but shouldn't qt=search be used as the default as specified at solrconfig.xml?

it seems strange to be needed and the have the default=true.
                
> defType param completely ignored
> --------------------------------
>
>                 Key: SOLR-3303
>                 URL: https://issues.apache.org/jira/browse/SOLR-3303
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Bráulio Bhavamitra
>            Priority: Critical
>
> I've reproduced this bug using the geodist ordering.
> 'defType' is being completely ignored, and it don't change nothing with 'qt' added or not.
> I'm supposing that in later case defType must be informed, cause edismax (or dismax) is not default.
> The correct behaviour is expected when not using qt (defaulting to the default handler with no default defType value specified in solrconfig.xml) and using defType would make the query work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3303) defType param completely ignored

Posted by "Yonik Seeley (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244182#comment-13244182 ] 

Yonik Seeley commented on SOLR-3303:
------------------------------------

http://wiki.apache.org/solr/SolrQuerySyntax

In standard Solr search handlers, the defType param can be used to specify the default type of the main query (ie: the q param) but it only affects the main query -- The default type of all other query parameters will remain "lucene".

You explicitly specified the query type as "boost" via your use of q={!boost...}
                
> defType param completely ignored
> --------------------------------
>
>                 Key: SOLR-3303
>                 URL: https://issues.apache.org/jira/browse/SOLR-3303
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Bráulio Bhavamitra
>            Priority: Critical
>
> I've reproduced this bug using the geodist ordering.
> 'defType' is being completely ignored, and it don't change nothing with 'qt' added or not.
> I'm supposing that in later case defType must be informed, cause edismax (or dismax) is not default.
> The correct behaviour is expected when not using qt (defaulting to the default handler with no default defType value specified in solrconfig.xml) and using defType would make the query work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-3303) defType param completely ignored

Posted by "Bráulio Bhavamitra (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244178#comment-13244178 ] 

Bráulio Bhavamitra commented on SOLR-3303:
------------------------------------------

please try
http://bhakta.casadomato.org:8983/solr/select?&wt=ruby&fl=pk_s%2Cscore&facet.mincount=1&defType=edismax&facet.sort=count&d=200&start=0&json.nl=arrarr&q=%7B%21boost%20b%3Drecip%28geodist%28%29%2C0%2C1%2C1%29%7D%20%28type_s%3A%22Product%22%29&rows=100&facet.limit=-1&spellcheck.collate=true&qt=geo&facet.field=f_region_facet&facet.field=f_category_facet&facet.field=f_qualifier_facet&spellcheck=true&sfield=latlng&pt=-22.9035393%2C%20-43.2095869&fq=public_b%3Atrue&fq=%7B%21geofilt%7D&fq=environment_id_i%3A2&facet=true
and
http://bhakta.casadomato.org:8983/solr/select?qt=search&wt=ruby&fl=pk_s%2Cscore&facet.mincount=1&defType=edismax&facet.sort=count&d=200&start=0&json.nl=arrarr&q=%7B%21boost%20b%3Drecip%28geodist%28%29%2C0%2C1%2C1%29%7D%20%28type_s%3A%22Product%22%29&rows=100&facet.limit=-1&spellcheck.collate=true&qt=geo&facet.field=f_region_facet&facet.field=f_category_facet&facet.field=f_qualifier_facet&spellcheck=true&sfield=latlng&pt=-22.9035393%2C%20-43.2095869&fq=public_b%3Atrue&fq=%7B%21geofilt%7D&fq=environment_id_i%3A2&facet=true

thank you
                
> defType param completely ignored
> --------------------------------
>
>                 Key: SOLR-3303
>                 URL: https://issues.apache.org/jira/browse/SOLR-3303
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Bráulio Bhavamitra
>            Priority: Critical
>
> I've reproduced this bug using the geodist ordering.
> 'defType' is being completely ignored, and it don't change nothing with 'qt' added or not.
> I'm supposing that in later case defType must be informed, cause edismax (or dismax) is not default.
> The correct behaviour is expected when not using qt (defaulting to the default handler with no default defType value specified in solrconfig.xml) and using defType would make the query work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-3303) defType param completely ignored

Posted by "Erick Erickson (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erick Erickson resolved SOLR-3303.
----------------------------------

    Resolution: Invalid

I think Yonik answered the question. In the future, please bring this type of question up on the user's list before raising a JIRA, just to check whether it's a code or usage problem.
                
> defType param completely ignored
> --------------------------------
>
>                 Key: SOLR-3303
>                 URL: https://issues.apache.org/jira/browse/SOLR-3303
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Bráulio Bhavamitra
>            Priority: Critical
>
> I've reproduced this bug using the geodist ordering.
> 'defType' is being completely ignored, and it don't change nothing with 'qt' added or not.
> I'm supposing that in later case defType must be informed, cause edismax (or dismax) is not default.
> The correct behaviour is expected when not using qt (defaulting to the default handler with no default defType value specified in solrconfig.xml) and using defType would make the query work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-3303) defType param completely ignored

Posted by "Bráulio Bhavamitra (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bráulio Bhavamitra updated SOLR-3303:
-------------------------------------

    Summary: defType param completely ignored  (was: defType ignore if no qt is used)
    
> defType param completely ignored
> --------------------------------
>
>                 Key: SOLR-3303
>                 URL: https://issues.apache.org/jira/browse/SOLR-3303
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Bráulio Bhavamitra
>            Priority: Critical
>
> I've reproduced this bug using the geodist ordering.
> 'defType' is being completely ignored, and it don't change nothing with 'qt' added or not.
> I'm supposing that in later case defType must be informed, cause edismax (or dismax) is not default.
> The correct behaviour is expected when not using qt (defaulting to the default handler with no default defType value specified in solrconfig.xml) and using defType would make the query work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org