You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by JZ <zh...@gmail.com> on 2012/01/13 15:14:39 UTC

Merging text nodes/blocks of the catchall field

Currently, I have copied numerous fields to the catchall field.

When I retrieve this field, it returns me the copied text
nodes/blocks, separated by a comma.

I want to merge all of the content of the catchall field.

This is more convenient for keyword highlighting, so more text is shown.

My question is: how do you do this?

Cheers,
JZ

Re: Merging text nodes/blocks of the catchall field

Posted by Erick Erickson <er...@gmail.com>.
I don't know where the commas are coming from, as far as I know that's
not part of Solr. You must have the catchall field defined
with 'multiValued="true"" ', so if you set the increment gap to 0, that
should help.

When you do that, what does your return look like?

Best
Erick

P.S. It's rather unusual to highlight on the copyfield, so I do wonder
about your use case, but you know the problem space better than me.

On Fri, Jan 13, 2012 at 9:14 AM, JZ <zh...@gmail.com> wrote:
> Currently, I have copied numerous fields to the catchall field.
>
> When I retrieve this field, it returns me the copied text
> nodes/blocks, separated by a comma.
>
> I want to merge all of the content of the catchall field.
>
> This is more convenient for keyword highlighting, so more text is shown.
>
> My question is: how do you do this?
>
> Cheers,
> JZ