Re: Looking for Custom Highlighting guidance

2011-06-30 Thread Mike Sokolov
It's going to be a bit complicated, but I would start by looking at 
providing a facility for merging an array of FieldTermStacks. The 
constructor for FieldTermStack() takes a fieldName and builds up a list 
of TermInfos (terms with positions and offsets): I *think* that if you 
make two of these, merge them, and hand that to the FieldPhraseList 
constructor (this is done in the main FVH class), you should get what 
you want.  This is a bit speculative; I haven't tried it.


-Mike

On 06/30/2011 08:26 AM, Jamie Johnson wrote:

Thanks for the suggestion Mike, I will give that a shot.  Having no
familiarity with FastVectorHighlighter is there somewhere specific I
should be looking?

On Wed, Jun 29, 2011 at 3:20 PM, Mike Sokolov  wrote:
   

Does the phonetic analysis preserve the offsets of the original text field?

If so, you should probably be able to hack up FastVectorHighlighter to do what 
you want.

-Mike

On 06/29/2011 02:22 PM, Jamie Johnson wrote:
 

I have a schema with a text field and a text_phonetic field and would like
to perform highlighting on them in such a way that the tokens that match are
combined.  What would be a reasonable way to accomplish this?


   


Re: Looking for Custom Highlighting guidance

2011-06-30 Thread Jamie Johnson
Thanks for the suggestion Mike, I will give that a shot.  Having no
familiarity with FastVectorHighlighter is there somewhere specific I
should be looking?

On Wed, Jun 29, 2011 at 3:20 PM, Mike Sokolov  wrote:
>
> Does the phonetic analysis preserve the offsets of the original text field?
>
> If so, you should probably be able to hack up FastVectorHighlighter to do 
> what you want.
>
> -Mike
>
> On 06/29/2011 02:22 PM, Jamie Johnson wrote:
>>
>> I have a schema with a text field and a text_phonetic field and would like
>> to perform highlighting on them in such a way that the tokens that match are
>> combined.  What would be a reasonable way to accomplish this?
>>
>>


Re: Looking for Custom Highlighting guidance

2011-06-29 Thread Mike Sokolov

Does the phonetic analysis preserve the offsets of the original text field?

If so, you should probably be able to hack up FastVectorHighlighter to 
do what you want.


-Mike

On 06/29/2011 02:22 PM, Jamie Johnson wrote:

I have a schema with a text field and a text_phonetic field and would like
to perform highlighting on them in such a way that the tokens that match are
combined.  What would be a reasonable way to accomplish this?

   


Looking for Custom Highlighting guidance

2011-06-29 Thread Jamie Johnson
I have a schema with a text field and a text_phonetic field and would like
to perform highlighting on them in such a way that the tokens that match are
combined.  What would be a reasonable way to accomplish this?