Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
2.9.3, 3.0.2
-
None
-
New
Description
If the following multiValued names are in authors field:
- Michael McCandless
- Erik Hatcher
- Otis Gospodnetić
Since FragmentsBuilder concatenates multiValued data with a space in BaseFragmentsBuilder.getFragmentSource():
while( buffer.length() < endOffset && index[0] < values.length ){ if( index[0] > 0 && values[index[0]].isTokenized() && values[index[0]].stringValue().length() > 0 ) buffer.append( ' ' ); buffer.append( values[index[0]++].stringValue() ); }
an entire field snippet (using LUCENE-2464) will be "Michael McCandless Erik Hatcher Otis Gospodnetić". There is a requirement an arbitrary char (e.g. '/') can be set so that client can separate the snippet easily. i.e. "Michael McCandless/Erik Hatcher/Otis Gospodnetić"