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

2009-05-24 Thread Noble Paul (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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] Commented: (SOLR-1116) Add a Binary FieldType

2009-05-21 Thread Noble Paul (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-05-21 Thread Andrzej Bialecki (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-05-20 Thread Andrzej Bialecki (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-05-20 Thread Noble Paul (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-05-19 Thread Ryan McKinley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-05-19 Thread Yonik Seeley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-05-19 Thread Andrzej Bialecki (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-05-19 Thread Noble Paul (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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] Commented: (SOLR-1116) Add a Binary FieldType

2009-05-07 Thread Tao Jiang (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-05-07 Thread Noble Paul (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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] Commented: (SOLR-1116) Add a Binary FieldType

2009-04-30 Thread Noble Paul (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-04-29 Thread Yonik Seeley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-04-29 Thread Ryan McKinley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-04-29 Thread Mike Klaas (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2009-04-29 Thread Noble Paul (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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.