Re: Field names w/ leading digits cause strange behavior

2012-04-24 Thread Erick Erickson
Hmmm, this does NOT happen on 3.6, and it DOES happen on
trunk. Sure sounds like a JIRA to me, would you mind raising one?

I can't imagine this is desired behavior, it's just weird.

Thanks for pointing this out!
Erick

On Tue, Apr 24, 2012 at 3:38 PM, bleakley bleak...@factual.com wrote:
 When specifying a field name that starts with a digit (or digits) in the fl
 parameter solr returns both the field name and field value as the those
 digits. For example, using nightly build
 apache-solr-4.0-2012-04-24_08-27-47 I run:

 java -jar start.jar
 and
 java -jar post.jar solr.xml monitor.xml

 If I then add a field to the field list that starts with a digit (
 localhost:8983/solr/select?q=*:*fl=24 ) the results look like:
 ...
 doc
 long name=2424/long
 /doc
 ...

 if I try fl=24_7 it looks like everything after the underscore is truncated
 ...
 doc
 long name=2424/long
 /doc
 ...

 and if I try fl=3test it looks like everything after the last digit is
 truncated
 ...
 doc
 long name=33/long
 /doc
 ...

 If I have an actual value for that field (say I've indexed 24_7 to be true
 ) I get back that value as well as the behavior above.
 ...
 doc
 bool name=24_7true/bool
 long name=2424/long
 /doc
 ...

 Is it ok the have fields that start with digits? If so, is there a different
 way to specify them using the fl parameter? Thanks!

 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/Field-names-w-leading-digits-cause-strange-behavior-tp3936354p3936354.html
 Sent from the Solr - User mailing list archive at Nabble.com.


Re: Field names w/ leading digits cause strange behavior

2012-04-24 Thread bleakley
Thank you for verifying the issue. I've created a ticket at
https://issues.apache.org/jira/browse/SOLR-3407

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Field-names-w-leading-digits-cause-strange-behavior-tp3936354p3936599.html
Sent from the Solr - User mailing list archive at Nabble.com.