You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Joel Halbert <jo...@su3analytics.com> on 2011/03/06 17:16:55 UTC
FastVectorHighlighter and field compression
Hi,
I'm using FastVectorHighlighter for highlighting, 3.0.3.
At the moment this is highlighting a field which is stored, but not
compressed. It all works perfectly.
I'd like to compress the field that is being highlighted, but it seems
like the new way to compress a stored field is to apply it as a separate
un-indexed stored field to the document, and use
CompressionToolscompressString manually.
I cann't see how this will play nice with the highlighter though, given
that I'm highlighting the indexed field.
So, can I use compression on a field I want to highlight?
Joel
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: FastVectorHighlighter and field compression
Posted by Joel Halbert <jo...@su3analytics.com>.
Thanks Koji, I didn't think it was possible as it stands.
On Mon, 2011-03-07 at 21:38 +0900, Koji Sekiguchi wrote:
> (11/03/07 1:16), Joel Halbert wrote:
> > Hi,
> >
> > I'm using FastVectorHighlighter for highlighting, 3.0.3.
> >
> > At the moment this is highlighting a field which is stored, but not
> > compressed. It all works perfectly.
> >
> > I'd like to compress the field that is being highlighted, but it seems
> > like the new way to compress a stored field is to apply it as a separate
> > un-indexed stored field to the document, and use
> > CompressionToolscompressString manually.
> >
> > I cann't see how this will play nice with the highlighter though, given
> > that I'm highlighting the indexed field.
> >
> > So, can I use compression on a field I want to highlight?
>
> Hmm, I've never thought about the combination of FVH and compression.
> Current FVH cannot support the store data that is compressed by
> client (i.e. compressed other than Field.Store.COMPRESS).
>
> If FVH supports it, another version of getBestFragment() method
> will be needed I think.
>
> Koji
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: FastVectorHighlighter and field compression
Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
(11/03/07 1:16), Joel Halbert wrote:
> Hi,
>
> I'm using FastVectorHighlighter for highlighting, 3.0.3.
>
> At the moment this is highlighting a field which is stored, but not
> compressed. It all works perfectly.
>
> I'd like to compress the field that is being highlighted, but it seems
> like the new way to compress a stored field is to apply it as a separate
> un-indexed stored field to the document, and use
> CompressionToolscompressString manually.
>
> I cann't see how this will play nice with the highlighter though, given
> that I'm highlighting the indexed field.
>
> So, can I use compression on a field I want to highlight?
Hmm, I've never thought about the combination of FVH and compression.
Current FVH cannot support the store data that is compressed by
client (i.e. compressed other than Field.Store.COMPRESS).
If FVH supports it, another version of getBestFragment() method
will be needed I think.
Koji
--
http://www.rondhuit.com/en/
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org