What is your actual query? Did you look at the "hl.snippets" parameter?
Bob Sandiford | Lead Software Engineer | SirsiDynix P: 800.288.8020 X6943 | bob.sandif...@sirsidynix.com www.sirsidynix.com Join the conversation - you may even get an iPad or Nook out of it! Like us on Facebook! Follow us on Twitter! > -----Original Message----- > From: Jeffrey Chang [mailto:jclal...@gmail.com] > Sent: Thursday, May 26, 2011 11:10 PM > To: solr-user@lucene.apache.org > Subject: highlighting in multiValued field > > Hi All, > > I am having a problem with search highlighting for multiValued fields > and am > wondering if someone can point me in the right direction. > > I have in my schema a multiValued field as such: > <field name="description" type="text" stored="true" indexed="true" > multiValued="true"/> > > When I search for term "Tel", it returns me the correct doc: > <doc> > ... > <arr name="description"> > <str>Tel to talent 1</str> > <str>Tel to talent 2</str> > </arr> > ... > </doc> > > When I enable highlighting, it returns me the following highlight with > only > one vector returned: > ... > <lst name="highlighting"> > <lst name="1"> > <arr name="description"> > <str><em>Tel</em> to talent 1</str> > </arr> > </lst> > </lst> > What I'm expecting is actually both vectors to be returned as such: > <lst name="highlighting"> > <lst name="1"> > <arr name="description"> > <str><em>Tel</em> to talent 1</str> > <str><em>Tel</em> to talent 2</str> > </arr> > </lst> > </lst> > Am I doing something wrong in my config or query (I'm using default)? > Any > help is appreciated. > > Thanks, > Jeff