You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Lars Kotthoff (JIRA)" <ji...@apache.org> on 2008/04/03 06:28:24 UTC

[jira] Created: (SOLR-529) NullPointerException for search query without field specification and no default search field

NullPointerException for search query without field specification and no default search field
---------------------------------------------------------------------------------------------

                 Key: SOLR-529
                 URL: https://issues.apache.org/jira/browse/SOLR-529
             Project: Solr
          Issue Type: Bug
          Components: search
    Affects Versions: 1.3
         Environment: Tomcat 5.5
            Reporter: Lars Kotthoff
            Priority: Minor
         Attachments: solr-default-search-query.patch

When posting a search query which does not specify a field to a Solr instance whose schema.xml does not have a default search field defined, a NullPointerException is raised.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SOLR-529) NullPointerException for search query without field specification and no default search field

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

Lars Kotthoff closed SOLR-529.
------------------------------


> NullPointerException for search query without field specification and no default search field
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-529
>                 URL: https://issues.apache.org/jira/browse/SOLR-529
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.3
>         Environment: Tomcat 5.5
>            Reporter: Lars Kotthoff
>            Assignee: Hoss Man
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: solr-default-search-query.patch
>
>
> When posting a search query which does not specify a field to a Solr instance whose schema.xml does not have a default search field defined, a NullPointerException is raised.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SOLR-529) NullPointerException for search query without field specification and no default search field

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

Hoss Man resolved SOLR-529.
---------------------------

       Resolution: Fixed
    Fix Version/s: 1.3
         Assignee: Hoss Man

Lars: I tweaked your patch a bit to account for all the types of queries SolrQueryParser has special behavior for.

SolrQueryParser can still generate NPEs from query types that it doesn't do anything special for (wildcards, fuzzy, etc...) because of the superclass, but this is still a big improvement ... thanks

Committed revision 646092.


> NullPointerException for search query without field specification and no default search field
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-529
>                 URL: https://issues.apache.org/jira/browse/SOLR-529
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.3
>         Environment: Tomcat 5.5
>            Reporter: Lars Kotthoff
>            Assignee: Hoss Man
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: solr-default-search-query.patch
>
>
> When posting a search query which does not specify a field to a Solr instance whose schema.xml does not have a default search field defined, a NullPointerException is raised.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-529) NullPointerException for search query without field specification and no default search field

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

Lars Kotthoff updated SOLR-529:
-------------------------------

    Attachment: solr-default-search-query.patch

Repost of patch, the previous version was fundamentally flawed.

> NullPointerException for search query without field specification and no default search field
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-529
>                 URL: https://issues.apache.org/jira/browse/SOLR-529
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.3
>         Environment: Tomcat 5.5
>            Reporter: Lars Kotthoff
>            Priority: Minor
>         Attachments: solr-default-search-query.patch
>
>
> When posting a search query which does not specify a field to a Solr instance whose schema.xml does not have a default search field defined, a NullPointerException is raised.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-529) NullPointerException for search query without field specification and no default search field

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

Lars Kotthoff updated SOLR-529:
-------------------------------

    Attachment:     (was: solr-default-search-query.patch)

> NullPointerException for search query without field specification and no default search field
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-529
>                 URL: https://issues.apache.org/jira/browse/SOLR-529
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.3
>         Environment: Tomcat 5.5
>            Reporter: Lars Kotthoff
>            Priority: Minor
>
> When posting a search query which does not specify a field to a Solr instance whose schema.xml does not have a default search field defined, a NullPointerException is raised.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-529) NullPointerException for search query without field specification and no default search field

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

Lars Kotthoff updated SOLR-529:
-------------------------------

    Attachment: solr-default-search-query.patch

Patch fixing the NullPointerException and instead returning a 400 and the message "no search field specified and no default search field defined" to the client.

> NullPointerException for search query without field specification and no default search field
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-529
>                 URL: https://issues.apache.org/jira/browse/SOLR-529
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.3
>         Environment: Tomcat 5.5
>            Reporter: Lars Kotthoff
>            Priority: Minor
>         Attachments: solr-default-search-query.patch
>
>
> When posting a search query which does not specify a field to a Solr instance whose schema.xml does not have a default search field defined, a NullPointerException is raised.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.