You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Grant Ingersoll (JIRA)" <ji...@apache.org> on 2010/09/08 22:58:33 UTC

[jira] Created: (SOLR-2114) hsin function doesn't properly parse when passing in multivalue sources and flag for converting to radians

hsin function doesn't properly parse when passing in multivalue sources and flag for converting to radians
----------------------------------------------------------------------------------------------------------

                 Key: SOLR-2114
                 URL: https://issues.apache.org/jira/browse/SOLR-2114
             Project: Solr
          Issue Type: Bug
    Affects Versions: 3.1, 4.0
            Reporter: Grant Ingersoll
            Priority: Minor


There is some incorrect logic when it comes to dealing with MultiValueSource and conversion to radians.  See http://localhost:8983/solr/core1/select?q=_val_:%22hsin%286371.009,%20geolocation,%20vector%28-37.82,%20145.287%29,%20true%29%22 (or a similar query)



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


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


[jira] Resolved: (SOLR-2114) hsin function doesn't properly parse when passing in multivalue sources and flag for converting to radians

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

Grant Ingersoll resolved SOLR-2114.
-----------------------------------

    Fix Version/s: 3.1
                   4.0
       Resolution: Fixed

Fixed on trunk and 3.x

> hsin function doesn't properly parse when passing in multivalue sources and flag for converting to radians
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2114
>                 URL: https://issues.apache.org/jira/browse/SOLR-2114
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.1, 4.0
>            Reporter: Grant Ingersoll
>            Priority: Minor
>             Fix For: 3.1, 4.0
>
>         Attachments: SOLR-2114.patch
>
>
> There is some incorrect logic when it comes to dealing with MultiValueSource and conversion to radians.  See http://localhost:8983/solr/core1/select?q=_val_:%22hsin%286371.009,%20geolocation,%20vector%28-37.82,%20145.287%29,%20true%29%22 (or a similar query)

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


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


[jira] Commented: (SOLR-2114) hsin function doesn't properly parse when passing in multivalue sources and flag for converting to radians

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907430#action_12907430 ] 

Grant Ingersoll commented on SOLR-2114:
---------------------------------------

The exception one gets for the above query is something like:
{quote}
Caused by: org.apache.solr.common.SolrException: undefined field true
	at org.apache.solr.schema.IndexSchema.getField(IndexSchema.java:1178)
	at org.apache.solr.search.FunctionQParser.parseValueSource(FunctionQParser.java:252)
	at org.apache.solr.search.FunctionQParser.parseValueSource(FunctionQParser.java:173)
	at org.apache.solr.search.ValueSourceParser$19.parse(ValueSourceParser.java:254)
	at org.apache.solr.search.FunctionQParser.parseValueSource(FunctionQParser.java:248)
	at org.apache.solr.search.FunctionQParser.parseValueSource(FunctionQParser.java:173)
	at org.apache.solr.search.FunctionQParser.parse(FunctionQParser.java:40)
	at org.apache.solr.search.QParser.getQuery(QParser.java:137)
	at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:86)
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:189)
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
{quote}

> hsin function doesn't properly parse when passing in multivalue sources and flag for converting to radians
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2114
>                 URL: https://issues.apache.org/jira/browse/SOLR-2114
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.1, 4.0
>            Reporter: Grant Ingersoll
>            Priority: Minor
>
> There is some incorrect logic when it comes to dealing with MultiValueSource and conversion to radians.  See http://localhost:8983/solr/core1/select?q=_val_:%22hsin%286371.009,%20geolocation,%20vector%28-37.82,%20145.287%29,%20true%29%22 (or a similar query)

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


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


[jira] Updated: (SOLR-2114) hsin function doesn't properly parse when passing in multivalue sources and flag for converting to radians

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

Grant Ingersoll updated SOLR-2114:
----------------------------------

    Attachment: SOLR-2114.patch

Patch to fix the problem.  It reworks the parameter order slightly and makes the boolean convertToRadians flag required since the FunctionQParser does not have strong enough look ahead capabilities to be able to determine what type of argument the "next" argument is (boolean or valuesource).

Plan on committing now.

> hsin function doesn't properly parse when passing in multivalue sources and flag for converting to radians
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2114
>                 URL: https://issues.apache.org/jira/browse/SOLR-2114
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.1, 4.0
>            Reporter: Grant Ingersoll
>            Priority: Minor
>         Attachments: SOLR-2114.patch
>
>
> There is some incorrect logic when it comes to dealing with MultiValueSource and conversion to radians.  See http://localhost:8983/solr/core1/select?q=_val_:%22hsin%286371.009,%20geolocation,%20vector%28-37.82,%20145.287%29,%20true%29%22 (or a similar query)

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


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