You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucy.apache.org by "mark ellis (Created) (JIRA)" <ji...@apache.org> on 2012/01/18 02:57:39 UTC

[lucy-issues] [jira] [Created] (LUCY-209) Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType

Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType
----------------------------------------------------------------------------------------------

                 Key: LUCY-209
                 URL: https://issues.apache.org/jira/browse/LUCY-209
             Project: Lucy
          Issue Type: Bug
            Reporter: mark ellis


basically, if you have a StringType field and wish to use set_heed_colons on it, it doesn't work as expected as the input into the QueryParser is stemming it.

e.g. search "type:cats" will stem to "type:cat" and either find no results, or find a different type than the one requested.

I have a test case I have written for this, as soon as I remember how to use JIRA i'll upload it...

--
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

        

[lucy-issues] [jira] [Resolved] (LUCY-209) Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType

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

mark ellis resolved LUCY-209.
-----------------------------

    Resolution: Invalid

user error...
                
> Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType
> ----------------------------------------------------------------------------------------------
>
>                 Key: LUCY-209
>                 URL: https://issues.apache.org/jira/browse/LUCY-209
>             Project: Lucy
>          Issue Type: Bug
>            Reporter: mark ellis
>         Attachments: lucy.pl
>
>
> basically, if you have a StringType field and wish to use set_heed_colons on it, it doesn't work as expected as the input into the QueryParser is stemming it.
> e.g. search "type:cats" will stem to "type:cat" and either find no results, or find a different type than the one requested.
> I have a test case I have written for this, as soon as I remember how to use JIRA i'll upload it...

--
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

        

[lucy-issues] [jira] [Updated] (LUCY-209) Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType

Posted by "mark ellis (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCY-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mark ellis updated LUCY-209:
----------------------------

    Attachment: lucy.pl

I'm using Lucy version version 0.002002 
                
> Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType
> ----------------------------------------------------------------------------------------------
>
>                 Key: LUCY-209
>                 URL: https://issues.apache.org/jira/browse/LUCY-209
>             Project: Lucy
>          Issue Type: Bug
>            Reporter: mark ellis
>         Attachments: lucy.pl
>
>
> basically, if you have a StringType field and wish to use set_heed_colons on it, it doesn't work as expected as the input into the QueryParser is stemming it.
> e.g. search "type:cats" will stem to "type:cat" and either find no results, or find a different type than the one requested.
> I have a test case I have written for this, as soon as I remember how to use JIRA i'll upload it...

--
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

        

[lucy-issues] [jira] [Commented] (LUCY-209) Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType

Posted by "Marvin Humphrey (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCY-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188808#comment-13188808 ] 

Marvin Humphrey commented on LUCY-209:
--------------------------------------

> I tried so hard this time to read everything, but there's 
> so much of it!

Haha, so true. :P

On our end, we try hard to design APIs which fail in
ways which are easy to understand when used improperly --
but you users are so damn creative!
                
> Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType
> ----------------------------------------------------------------------------------------------
>
>                 Key: LUCY-209
>                 URL: https://issues.apache.org/jira/browse/LUCY-209
>             Project: Lucy
>          Issue Type: Bug
>            Reporter: mark ellis
>         Attachments: lucy.pl
>
>
> basically, if you have a StringType field and wish to use set_heed_colons on it, it doesn't work as expected as the input into the QueryParser is stemming it.
> e.g. search "type:cats" will stem to "type:cat" and either find no results, or find a different type than the one requested.
> I have a test case I have written for this, as soon as I remember how to use JIRA i'll upload it...

--
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

        

[lucy-issues] [jira] [Commented] (LUCY-209) Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType

Posted by "mark ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCY-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188801#comment-13188801 ] 

mark ellis commented on LUCY-209:
---------------------------------

Hi Marvin, 

Thanks for the quick reply, and sorry for not reading properly. I tried so hard this time to read everything, but there's so much of it!

Sorry for being dumb, and thanks for your time though, and excellent work.

Mark
                
> Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType
> ----------------------------------------------------------------------------------------------
>
>                 Key: LUCY-209
>                 URL: https://issues.apache.org/jira/browse/LUCY-209
>             Project: Lucy
>          Issue Type: Bug
>            Reporter: mark ellis
>         Attachments: lucy.pl
>
>
> basically, if you have a StringType field and wish to use set_heed_colons on it, it doesn't work as expected as the input into the QueryParser is stemming it.
> e.g. search "type:cats" will stem to "type:cat" and either find no results, or find a different type than the one requested.
> I have a test case I have written for this, as soon as I remember how to use JIRA i'll upload it...

--
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

        

[lucy-issues] [jira] [Commented] (LUCY-209) Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType

Posted by "Marvin Humphrey (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCY-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188249#comment-13188249 ] 

Marvin Humphrey commented on LUCY-209:
--------------------------------------

Hi, Mark...

The problem arises from this line in the test case:

{noformat}
my $query_parser = Lucy::Search::QueryParser->new(
    schema => $searcher->get_schema,
    analyzer => $polyanalyzer,   # <-------------- DO NOT WANT
);
{noformat}

Here's the documentation for the "analyzer" parameter to QueryParser#new
which explains the behavior you're seeing:

{quote}
analyzer - An Analyzer. Ordinarily, the analyzers specified by each field's definition will be used, but if analyzer is supplied, it will override and be used for all fields. This can lead to mismatches between what is in the index and what is being searched for, so use caution.
{quote}

If you remove the "analyzer" parameter, all tests pass.
                
> Lucy::Search::QueryParser set_heed_colons doesn't work as expected with Lucy::Plan::StringType
> ----------------------------------------------------------------------------------------------
>
>                 Key: LUCY-209
>                 URL: https://issues.apache.org/jira/browse/LUCY-209
>             Project: Lucy
>          Issue Type: Bug
>            Reporter: mark ellis
>         Attachments: lucy.pl
>
>
> basically, if you have a StringType field and wish to use set_heed_colons on it, it doesn't work as expected as the input into the QueryParser is stemming it.
> e.g. search "type:cats" will stem to "type:cat" and either find no results, or find a different type than the one requested.
> I have a test case I have written for this, as soon as I remember how to use JIRA i'll upload it...

--
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