Thanks again for the help.
The use case is this. In my UI I would like to indicate which words leaded to every document in the response. It actually seems like a simple highlight case but instead of getting the highlight result as "this is a <br>long</br> string <br>with</br> text", Our UI team wants a list of words, i.e: ["long", "with"]. So, I assumed that I can just tokenize the original text -> copy the tokens into new multi-value fields -> ask Solr to highlight the multi-value field That is my use case. Thanks again Tomer -----Original Message----- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Sunday, October 19, 2014 5:18 PM To: solr-user@lucene.apache.org Subject: Re: CopyField from text to multi value This really feels like an XY problem, which I think Jack is alluding to. bq: I understand that the analysis chain is applied after the raw input was copied. I need to store the output of the analysis chain as a new multi-value field This statement is really confusing. You can't have the output of the analysis chain used as input to a copyField, it just doesn't work that way which is what you seem to want to do with the second sentence. Then you bring shingles into the picture... So let's take Jack's suggestion and back up and tell us what the use-case you're trying to support is rather than leaving us to guess what problem you're trying to solve.. Best, Erick On Sun, Oct 19, 2014 at 9:43 AM, Jack Krupansky <j...@basetechnology.com<mailto:j...@basetechnology.com>> wrote: > As always, you need to first examine how you intend to query the fields > before you dive into data modeling. In this case, is there any particular > reason that you need the individual terms as separate values, as opposed to > simply using a tokenized text field? > > -- Jack Krupansky > > From: Tomer Levi > Sent: Sunday, October 19, 2014 9:07 AM > To: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org> > Subject: CopyField from text to multi value > > Hi, > > I would like to copy a textual field content into a multivalue filed. > > For example, > > Let’s say my field text contains: “I am a solr user” > > I would like to have a multi-value copyFields with the following > content: [“I”, “am”, “a”, “solr”, “user”] > > > > Thanks, > > Tomer Levi > > Software Engineer > > Big Data Group > > Product & Technology Unit > > (T) +972 (9) 775-2693 > > > > tomer.l...@nice.com<mailto:tomer.l...@nice.com> > > www.nice.com<http://www.nice.com> > > > > > > > > > > > >