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 "Noble Paul (JIRA)" <ji...@apache.org> on 2009/04/15 11:24:15 UTC

[jira] Created: (SOLR-1116) Add a Binary FieldType

Add a Binary FieldType
----------------------

                 Key: SOLR-1116
                 URL: https://issues.apache.org/jira/browse/SOLR-1116
             Project: Solr
          Issue Type: New Feature
          Components: search
    Affects Versions: 1.3
            Reporter: Noble Paul


Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704512#action_12704512 ] 

Noble Paul commented on SOLR-1116:
----------------------------------

bq.for url-safe base64 (-_ being the extra chars) 
why do we need it to be url safe?. I guess the binary fields in Lucene is not indexed (Just stored) . If that is the case then we may not need to send it in the 'q' param. 



> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710764#action_12710764 ] 

Ryan McKinley commented on SOLR-1116:
-------------------------------------

quick google seach shows a few options in other languages:
http://search.cpan.org/~kazuho/MIME-Base64-URLSafe-0.01/lib/MIME/Base64/URLSafe.pm

In php, you can use "base64_url_encode"
http://us.php.net/base64_encode

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

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

Yonik Seeley commented on SOLR-1116:
------------------------------------

We could use base64 as the standard for input/output in text protocols - that will only expand the size by 33% over binary.

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711087#action_12711087 ] 

Noble Paul commented on SOLR-1116:
----------------------------------

silly me :)

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Mike Klaas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704284#action_12704284 ] 

Mike Klaas commented on SOLR-1116:
----------------------------------

+1 for url-safe base64 (-_ being the extra chars)

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704258#action_12704258 ] 

Ryan McKinley commented on SOLR-1116:
-------------------------------------

Perhaps we could use a url safe option too... this would let use query binary fields with our existing interfaces.

Check:
http://iharder.sourceforge.net/current/java/base64/

http://iharder.sourceforge.net/current/java/base64/api/Base64.html#URL_SAFE

That refers to RFC3548

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704464#action_12704464 ] 

Noble Paul commented on SOLR-1116:
----------------------------------

bq.We could use base64 as the standard for input/output in text protocols
I thought of it. But we will need to add some external library to do base64 encode<->decode . Which one to use?

There is one other challenge. The xml response format does not have a binary type . for backcompat reasons I have used <str> as the type. To add another type we may need to bump up the version

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Andrzej Bialecki (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710782#action_12710782 ] 

Andrzej Bialecki  commented on SOLR-1116:
-----------------------------------------

One scenario that I have experience with is when you store small images as fields, to be displayed on the result list. URL-safe encoding means you can directly embed the returned string without re-encoding it.

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712575#action_12712575 ] 

Noble Paul commented on SOLR-1116:
----------------------------------

I plan to commit this in a day or two . Please let me know if there is any feedback

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Updated: (SOLR-1116) Add a Binary FieldType

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

Noble Paul updated SOLR-1116:
-----------------------------

    Fix Version/s: 1.4

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Andrzej Bialecki (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711081#action_12711081 ] 

Andrzej Bialecki  commented on SOLR-1116:
-----------------------------------------

bq. No browser accepts the image data as Base64. your front-end will have to read the string and send it out as a byte[].

Please see http://en.wikipedia.org/wiki/Data_URI_scheme - this is the use case I was referring to, and indeed you can send base64 encoded content directly to any modern browser.

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711502#action_12711502 ] 

Noble Paul commented on SOLR-1116:
----------------------------------

hi Andrzej from the wikipedia documentation what I understand is that browsers support standard base64 not the url-safe version

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710754#action_12710754 ] 

Noble Paul commented on SOLR-1116:
----------------------------------

my only concern is that will the standard tools available in other languages (php/python etc) for Base64 encoding/decoding will work? if it doesn't, it beats the purpose

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Issue Comment Edited: (SOLR-1116) Add a Binary FieldType

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710754#action_12710754 ] 

Noble Paul edited comment on SOLR-1116 at 5/19/09 8:13 AM:
-----------------------------------------------------------

my only concern is that does the standard tools available in other languages (php/python etc) for Base64 encoding/decoding work with the url safe format? if it doesn't, it beats the purpose

      was (Author: noble.paul):
    my only concern is that will the standard tools available in other languages (php/python etc) for Base64 encoding/decoding will work? if it doesn't, it beats the purpose
  
> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710733#action_12710733 ] 

Ryan McKinley commented on SOLR-1116:
-------------------------------------

| why do we need it to be url safe?

More then anything it seems like a pending gotcha and the fix (with URL safe base64) is trivial.

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

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

Yonik Seeley commented on SOLR-1116:
------------------------------------

There's no reason we can't accept either Base64 variant as input.
For output, should it be the normal Base64 or the URL-safe variant? (and no, I don't want yet another parameter that lets you choose ;-)

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Andrzej Bialecki (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711528#action_12711528 ] 

Andrzej Bialecki  commented on SOLR-1116:
-----------------------------------------

Indeed! then it's not relevant here. +0 from me for the regular base64.

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Tao Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706772#action_12706772 ] 

Tao Jiang commented on SOLR-1116:
---------------------------------

I just couldn't patch it to Solr 1.3. JavaBinCodec.java and solrconfig-slave1.xml do not actually exist in apache-solr-1.3.0 release. And when I tried again after removing those code related with the two files from the patch, I got the following response:

patch -p0 <SOLR-1116.patch 
patching file src/java/org/apache/solr/request/BinaryResponseWriter.java
Hunk #1 FAILED at 210.
1 out of 1 hunk FAILED -- saving rejects to file src/java/org/apache/solr/request/BinaryResponseWriter.java.rej
patching file src/java/org/apache/solr/schema/BinaryField.java
patching file src/java/org/apache/solr/update/DocumentBuilder.java
Hunk #1 FAILED at 29.
Hunk #2 FAILED at 216.
Hunk #3 FAILED at 225.
Hunk #4 FAILED at 263.
Hunk #5 FAILED at 286.
5 out of 5 hunks FAILED -- saving rejects to file src/java/org/apache/solr/update/DocumentBuilder.java.rej
patching file src/test/org/apache/solr/schema/TestBinaryField.java
patching file src/test/test-files/solr/conf/schema-binaryfield.xml


> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706781#action_12706781 ] 

Noble Paul commented on SOLR-1116:
----------------------------------

the patch will not apply on Solr 1.3 . it will apply only on trunk

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Updated: (SOLR-1116) Add a Binary FieldType

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

Noble Paul updated SOLR-1116:
-----------------------------

    Attachment: SOLR-1116.patch

* mask the byte to get a +ve int
* implement toExternal()


> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Updated: (SOLR-1116) Add a Binary FieldType

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

Noble Paul updated SOLR-1116:
-----------------------------

    Attachment: SOLR-1116.patch

* added a new field BinaryField
* JavabinCodec writes ByteBuffer as byte[]
* in text formats the binary data is written down as hex encoded bytes

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Commented: (SOLR-1116) Add a Binary FieldType

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711007#action_12711007 ] 

Noble Paul commented on SOLR-1116:
----------------------------------

bq. I don't want yet another parameter that lets you choose

+1

I am fine with either format. we will stick to one . 

+0 for standard base64


bq.ou can directly embed the returned string without re-encoding it. 


No browser accepts the image data as Base64. your front-end will have to read the string and send it out as a byte[].

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Issue Comment Edited: (SOLR-1116) Add a Binary FieldType

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712894#action_12712894 ] 

Noble Paul edited comment on SOLR-1116 at 5/26/09 12:45 AM:
------------------------------------------------------------

committed revision:778600

      was (Author: noble.paul):
    committed revision:7786000
  
> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Resolved: (SOLR-1116) Add a Binary FieldType

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

Noble Paul resolved SOLR-1116.
------------------------------

    Resolution: Fixed

committed revision:7786000

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Assigned: (SOLR-1116) Add a Binary FieldType

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

Noble Paul reassigned SOLR-1116:
--------------------------------

    Assignee: Noble Paul

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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


[jira] Updated: (SOLR-1116) Add a Binary FieldType

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

Noble Paul updated SOLR-1116:
-----------------------------

    Attachment: SOLR-1116.patch

The text format is standard base64 encoding

> Add a Binary FieldType
> ----------------------
>
>                 Key: SOLR-1116
>                 URL: https://issues.apache.org/jira/browse/SOLR-1116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1116.patch, SOLR-1116.patch, SOLR-1116.patch
>
>
> Lucene supports binary data for field but Solr has no corresponding field type. 

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