Hi Elfu,

I found where i saw the request, Robert says "...why not propose a modification 
to the highlighter so it can highlight field A with field B's stored value?" in 
https://issues.apache.org/jira/browse/LUCENE-3415

If you want to create a jira issue, anyone can create an account.

Regarding your initial request, there could be an workaround but that requires 
modifying ascii folding filter's source code. It has now preserveOriginal 
parameter. You can modify it to add $ to end of original token. Its Erick 
Erickson's idea, I can find his original e-mail if you are interested.


Ahmet


On Wednesday, March 26, 2014 10:55 AM, Ahmet Arslan <iori...@yahoo.com> wrote:
Hi,

Not out of the box, I remember this request came before, you could create a 
jira, If it gets attention, it would be added as a new feature.

Highlighting requires stored=true, basically you want to highlight on fieldX, 
using stored values of fieldY. Where fieldX and fieldY are copy fields of each 
other.

Ahmet




On Wednesday, March 26, 2014 10:34 AM, elfu <el...@yahoo.com> wrote:
HI,

let's say i have to index 10.000.000  documents (content from file documents) 
.. 
in this case storing content twice can be a problem... (or not if i can use 
external storage for content - the same content file)

As i understand, the highlighter process use text from "hl.fl" field using this 
field analyzers (index/query)
and search in it using main query or "hl.q"

The highlighter can use other field analyzer ? 

1. store text in field_S
2. index in 2 fields accents/without (field_A,field_B) 
3. search using field_A index 
    get the highlights using the field_S text and field_A analyzers
4. search using field_B index 
    get the highlights using the field_S text and field_B analyzers

actually i have highlights using "hl.fl"=field_S (field_S analyzer = field_A 
(not accentuated) analyzer)
but for the case of accentuated search i must use "hl.q" with notaccentuated 
form of term and in this case i have fragments 
with all forms of searched term (accentuated or not) highlighted .. false term 
highlighted (or false 
fragments if contains only the nonaccentuated term)

that my problem.

thx,
E

Reply via email to