-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Peter Farafonov wrote:
> Hello, Markus.
>> Is there a way to get the raw data to do custom highlighting?
> 
> But of course. When indexing, serialize token stream and store it
> as yet another field of the document. Index file will become huge, but
> you can do whatever you want, as long as you have token positions
> readily available.

At the moment I don't know how to get this serialized token stream, but
assume I figure it out, how do I translate the query from the user so
that I know which tokens to highlight? As far as I can tell from the
tests, I doesn't work with simple string/regex matching.

I'm wondering what I'm missing. I have had worked with Lucene in Java
about two years ago and had the same problem. Luckily I found some
highlighting code which did this "in the core", i.e. it didn't needed
this separate serialized token string, it built it right from the query
the user gave.

thanks,
- - Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG95Pd1nS0RcInK9ARAkI2AKDPMMSb1q4FMLVq0HFnZF0sbsOrnwCgrg7u
aTXkNqrIqKL7R1T20psFECo=
=MpS+
-----END PGP SIGNATURE-----

Reply via email to