Hi guys,
just went through this use case :
I have one field A with analysis_A ( for example an edgeNgram tokenised
text) .
Then I have one copy field copy_A with analysis_B ( a simple text_general
would fit).

At this point I should be able to store the term vector for the fields at
my pleasure ( I can enable one, both or no one) and the standard
highlighter will perform better.
It is not a big deal if I store both the fields ( they are small).

But what if I want to store only one ?

According to my knowledge the Standard Highlight will :
1) load the stored text ( it is the same for both the fields !!)
2) check if we have the term_vector for the field
3) if yes, use the term offset to properly highlight the text
3a) if not, analyse on the fly the text and highlight

point 2-3 actually don't depend on the text source ( which is the stored
field and is the same for both the fields) .

Shouldn't be possible to define the analyser to use for the highlight
independently from the stored text ( it happens the same for the Suggest
component) ?

Am i missing some parameter of the Standard Highlight ?
I checked the other highlighters but more or less they behave the same
related this problem.

Cheers



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to