You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2011/05/16 20:47:47 UTC

[jira] [Created] (LUCENE-3103) create a simple test that indexes and searches byte[] terms

create a simple test that indexes and searches byte[] terms
-----------------------------------------------------------

                 Key: LUCENE-3103
                 URL: https://issues.apache.org/jira/browse/LUCENE-3103
             Project: Lucene - Java
          Issue Type: Test
          Components: general/test
            Reporter: Robert Muir
             Fix For: 4.0


Currently, the only good test that does this is Test2BTerms (disabled by default)

I think we should test this capability, and also have a simpler example for how to do this.


--
This message is automatically generated by JIRA.
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] (LUCENE-3103) create a simple test that indexes and searches byte[] terms

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034224#comment-13034224 ] 

Michael McCandless commented on LUCENE-3103:
--------------------------------------------

+1 -- this is a great test to add, now that we support arbitrary binary terms.


> create a simple test that indexes and searches byte[] terms
> -----------------------------------------------------------
>
>                 Key: LUCENE-3103
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3103
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: general/test
>            Reporter: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-3103.patch
>
>
> Currently, the only good test that does this is Test2BTerms (disabled by default)
> I think we should test this capability, and also have a simpler example for how to do this.

--
This message is automatically generated by JIRA.
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] (LUCENE-3103) create a simple test that indexes and searches byte[] terms

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

Robert Muir resolved LUCENE-3103.
---------------------------------

    Resolution: Fixed

Committed revision 1124288.

> create a simple test that indexes and searches byte[] terms
> -----------------------------------------------------------
>
>                 Key: LUCENE-3103
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3103
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: general/test
>            Reporter: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-3103.patch
>
>
> Currently, the only good test that does this is Test2BTerms (disabled by default)
> I think we should test this capability, and also have a simpler example for how to do this.

--
This message is automatically generated by JIRA.
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] (LUCENE-3103) create a simple test that indexes and searches byte[] terms

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034217#comment-13034217 ] 

Robert Muir commented on LUCENE-3103:
-------------------------------------

one thing i did previously (seemed overkill but maybe good to do) was to clearAttributes(), setBytesRef() on each incrementToken,
more like a normal tokenizer. we could still change it to work like this. in this case clear() set the br to null.

another thing to inspect is the reflection api so toString prints the bytes... didnt check this.


> create a simple test that indexes and searches byte[] terms
> -----------------------------------------------------------
>
>                 Key: LUCENE-3103
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3103
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: general/test
>            Reporter: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-3103.patch
>
>
> Currently, the only good test that does this is Test2BTerms (disabled by default)
> I think we should test this capability, and also have a simpler example for how to do this.

--
This message is automatically generated by JIRA.
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] (LUCENE-3103) create a simple test that indexes and searches byte[] terms

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

Robert Muir updated LUCENE-3103:
--------------------------------

    Attachment: LUCENE-3103.patch

attached is a first patch... maybe Uwe won't be able to resist rewriting it to make it simpler :)

> create a simple test that indexes and searches byte[] terms
> -----------------------------------------------------------
>
>                 Key: LUCENE-3103
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3103
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: general/test
>            Reporter: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-3103.patch
>
>
> Currently, the only good test that does this is Test2BTerms (disabled by default)
> I think we should test this capability, and also have a simpler example for how to do this.

--
This message is automatically generated by JIRA.
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] (LUCENE-3103) create a simple test that indexes and searches byte[] terms

Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034220#comment-13034220 ] 

Uwe Schindler commented on LUCENE-3103:
---------------------------------------

Reflection should work correct. No need to change anything.

> create a simple test that indexes and searches byte[] terms
> -----------------------------------------------------------
>
>                 Key: LUCENE-3103
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3103
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: general/test
>            Reporter: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-3103.patch
>
>
> Currently, the only good test that does this is Test2BTerms (disabled by default)
> I think we should test this capability, and also have a simpler example for how to do this.

--
This message is automatically generated by JIRA.
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