lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Another text I cannot get into SOLR with csv
Date Tue, 08 Jan 2008 15:55:47 GMT
On Jan 8, 2008 10:32 AM, Michael Lackhoff <michael@lackhoff.de> 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. Yes, this works but:
> - I didn't find anything about it in the docs (wiki). On the contrary
>    it suggests that the single quote has to be explicitly set:
>    f.tags.encapsulator='

Right... I just changed the code to match the docs.

> (http://wiki.apache.org/solr/UpdateCSV?#head-c238cb494f800d345766acda16e08d82663127ce)
> - 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.

> - is it possible to change the split field separator for all fields? The
>    URL is getting rather long already.

if "f.myfield.separator" is missing, it uses "separator"  (standard
per-field parameters).
So if everything uses "," you don't have to specify a separator anywhere.

-Yonik

Mime
View raw message