Re: Another text I cannot get into SOLR with csv

2008-01-08 Thread Michael Lackhoff
On 08.01.2008 19:09 Yonik Seeley wrote: There is no shorter way, but if you update to the latest solr-dev (changes I checked in today), the default will be no encapsulation for split fields. Many thanks, also for your patience! Do you think the dev-version is ready for production? -Michael

Re: Another text I cannot get into SOLR with csv

2008-01-08 Thread Yonik Seeley
On Jan 8, 2008 12:59 PM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: > On 08.01.2008 16:55 Yonik Seeley wrote: > > >> - A literal encapsulator should be possible to add by doubling > >>it ' => '' but this gives the same error > > > > I think you would have to tripple it (the first is the encaps

Re: Another text I cannot get into SOLR with csv

2008-01-08 Thread Michael Lackhoff
On 08.01.2008 16:55 Yonik Seeley wrote: - A literal encapsulator should be possible to add by doubling it ' => '' but this gives the same error I think you would have to tripple it (the first is the encapsulator). Regardless, don't use encapsulation on the split fields unless you have to.

Re: Another text I cannot get into SOLR with csv

2008-01-08 Thread Yonik Seeley
On Jan 8, 2008 10:32 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: > On 08.01.2008 16:11 Yonik Seeley wrote: > > > Ahh, wait, it looks a single quote as the encapsulator for split field > > values by default. > > Try adding f.PUBLPLACE.encapsulator=%00 > > to disable the encapsulation. > > Hmm. Y

Re: Another text I cannot get into SOLR with csv

2008-01-08 Thread Michael Lackhoff
On 08.01.2008 16:11 Yonik Seeley wrote: Ahh, wait, it looks a single quote as the encapsulator for split field values by default. Try adding f.PUBLPLACE.encapsulator=%00 to disable the encapsulation. Hmm. Yes, this works but: - I didn't find anything about it in the docs (wiki). On the contrar

Re: Another text I cannot get into SOLR with csv

2008-01-08 Thread Yonik Seeley
On Jan 8, 2008 9:58 AM, Yonik Seeley <[EMAIL PROTECTED]> wrote: > On Jan 8, 2008 3:07 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: > > After a long weekend I could do a deeper look into this one and it looks > > as if the problem has to do with splitting. > > > > > This one works for me fine. >

Re: Another text I cannot get into SOLR with csv

2008-01-08 Thread Yonik Seeley
On Jan 8, 2008 3:07 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: > After a long weekend I could do a deeper look into this one and it looks > as if the problem has to do with splitting. > > > This one works for me fine. > > > > $ cat t2.csv > > id,name > > 12345,"'s-Gravenhage" > > 12345,'s-Grav

Re: Another text I cannot get into SOLR with csv

2008-01-08 Thread Michael Lackhoff
After a long weekend I could do a deeper look into this one and it looks as if the problem has to do with splitting. This one works for me fine. $ cat t2.csv id,name 12345,"'s-Gravenhage" 12345,'s-Gravenhage 12345,"""s-Gravenhage" $ curl http://localhost:8983/solr/update/csv?commit=true --dat

Re: Another text I cannot get into SOLR with csv

2008-01-04 Thread Yonik Seeley
On Jan 4, 2008 11:18 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: > On 04.01.2008 16:55 Yonik Seeley wrote: > > > On Jan 4, 2008 10:25 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: > >> If the fields value is: > >> 's-Gravenhage > >> I cannot get it into SOLR with CSV. > > > > This one works f

Re: Another text I cannot get into SOLR with csv

2008-01-04 Thread Michael Lackhoff
On 04.01.2008 16:55 Yonik Seeley wrote: > On Jan 4, 2008 10:25 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: >> If the fields value is: >> 's-Gravenhage >> I cannot get it into SOLR with CSV. > > This one works for me fine. > > $ cat t2.csv > id,name > 12345,"'s-Gravenhage" > 12345,'s-Gravenha

Re: Another text I cannot get into SOLR with csv

2008-01-04 Thread Ryan McKinley
Michael Lackhoff wrote: If the fields value is: 's-Gravenhage I cannot get it into SOLR with CSV. I tried to double the single quote/apostrophe or escape it in several ways but I either get an error or another character (the "escape") in front of the single quote. Is it not possible to have a fie

Re: Another text I cannot get into SOLR with csv

2008-01-04 Thread Yonik Seeley
On Jan 4, 2008 10:25 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: > If the fields value is: > 's-Gravenhage > I cannot get it into SOLR with CSV. This one works for me fine. $ cat t2.csv id,name 12345,"'s-Gravenhage" 12345,'s-Gravenhage 12345,"""s-Gravenhage" $ curl http://localhost:8983/solr

Another text I cannot get into SOLR with csv

2008-01-04 Thread Michael Lackhoff
If the fields value is: 's-Gravenhage I cannot get it into SOLR with CSV. I tried to double the single quote/apostrophe or escape it in several ways but I either get an error or another character (the "escape") in front of the single quote. Is it not possible to have a field that begins with an apo