lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-2603) FastVectorHighlighter: add a method to set an arbitrary char that is used when concatenating multiValued data
Date Tue, 17 Aug 2010 01:35:16 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Koji Sekiguchi updated LUCENE-2603:
-----------------------------------

    Attachment: LUCENE-2603.patch

Updated patch attached. I'll commit shortly.

> FastVectorHighlighter: add a method to set an arbitrary char that is used when concatenating
multiValued data
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2603
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2603
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: contrib/highlighter
>    Affects Versions: 2.9.3, 3.0.2
>            Reporter: Koji Sekiguchi
>            Priority: Trivial
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2603.patch, LUCENE-2603.patch
>
>
> 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():
> {code}
> 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() );
> }
> {code}
> 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ć"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message