Re: FastVectorHighlighter ignoring fragmenter parameter . . .

2010-12-06 Thread Koji Sekiguchi

(10/12/06 23:52), CRB wrote:

Koji,

Thank you for the reply.

Being something of a novice with Solr, I would be grateful if you could clarify 
my next steps.

I infer from your reply that there is no current implementation yet contributed 
for the FVH similar
to the regex fragmenter.

Thus I need to write my own custom extensions of *FragmentsBuilder

& **FragListBuilder

*interfaces to take in and apply the regex.

I would be happy to contribute back what I create.

Appreciate whatever guidance you can offer,

Christopher


Christopher,

Thank you for being interested in FVH!

As I'm not sure a regex-fragmenter-like-function can be implemented for FVH,
I cannot give any advise to you. Sorry about that.
Basically, contribution back is always welcome!

Thank you,

Koji
--
http://www.rondhuit.com/en/


Re: FastVectorHighlighter ignoring fragmenter parameter . . .

2010-12-06 Thread CRB

Koji,

Thank you for the reply.

Being something of a novice with Solr, I would be grateful if you could 
clarify my next steps.


I infer from your reply that there is no current implementation yet 
contributed for the FVH similar to the regex fragmenter.


Thus I need to write my own custom extensions of FragmentsBuilder & 
FragListBuilder interfaces to take in and apply the regex.


I would be happy to contribute back what I create.

Appreciate whatever guidance you can offer,

Christopher


Re: FastVectorHighlighter ignoring fragmenter parameter . . .

2010-12-06 Thread CRB

Koji,

Thank you for the reply.

Being something of a novice with Solr, I would be grateful if you could 
clarify my next steps.


I infer from your reply that there is no current implementation yet 
contributed for the FVH similar to the regex fragmenter.


Thus I need to write my own custom extensions of *FragmentsBuilder 
 
& **FragListBuilder 
 
*interfaces to take in and apply the regex.


I would be happy to contribute back what I create.

Appreciate whatever guidance you can offer,

Christopher

On 2:59 PM, Koji Sekiguchi wrote:

(10/12/05 5:53), CRB wrote:
Got the FVH to work in Solr 3.1 (or at least I presume I have given I 
can see multi-color

highlighting in the output.)

But I am not able to get it to recognize the "regex" fragmenter. I 
get no change in output if I
specify the fragmenter. In fact, I can even enter bogus names for the 
fragmenter and get no change

in the output.

Grateful for any suggestions.

Settings and output below.

Christopher


*Query*

http://localhost:8983/solr/10k-Fragments/select?
q=content%3Aliquidity
&rows=100
&fl=id%2Ccontent
&qt=standard
&hl.fl=content
&hl.useFastVectorHighlighter=true
&hl=true
&hl.fragmentsBuilder=colored
&hl.fragmenter=regex


Christopher,

Because algorithm of FVH is totally different from (traditional) 
highlighter,
FVH doesn't see hl.fragmenter and hl.formatter, but see 
hl.fragListBuilder
and hl.fragmentsBuilder instead. I think your settings and 
request/response

looks good except hl.fragmenter=regex. FVH simply ignores the parameter.

Koji




Re: FastVectorHighlighter ignoring fragmenter parameter . . .

2010-12-04 Thread Koji Sekiguchi

(10/12/05 5:53), CRB wrote:

Got the FVH to work in Solr 3.1 (or at least I presume I have given I can see 
multi-color
highlighting in the output.)

But I am not able to get it to recognize the "regex" fragmenter. I get no 
change in output if I
specify the fragmenter. In fact, I can even enter bogus names for the 
fragmenter and get no change
in the output.

Grateful for any suggestions.

Settings and output below.

Christopher


*Query*

http://localhost:8983/solr/10k-Fragments/select?
q=content%3Aliquidity
&rows=100
&fl=id%2Ccontent
&qt=standard
&hl.fl=content
&hl.useFastVectorHighlighter=true
&hl=true
&hl.fragmentsBuilder=colored
&hl.fragmenter=regex


Christopher,

Because algorithm of FVH is totally different from (traditional) highlighter,
FVH doesn't see hl.fragmenter and hl.formatter, but see hl.fragListBuilder
and hl.fragmentsBuilder instead. I think your settings and request/response
looks good except hl.fragmenter=regex. FVH simply ignores the parameter.

Koji
--
http://www.rondhuit.com/en/


FastVectorHighlighter ignoring fragmenter parameter . . .

2010-12-04 Thread CRB
Got the FVH to work in Solr 3.1 (or at least I presume I have given I 
can see multi-color highlighting in the output.)


But I am not able to get it to recognize the "regex" fragmenter. I get 
no change in output if I specify the fragmenter. In fact, I can even 
enter bogus names for the fragmenter and get no change in the output.


Grateful for any suggestions.

Settings and output below.

Christopher


*Query*

   http://localhost:8983/solr/10k-Fragments/select?
   q=content%3Aliquidity
   &rows=100
   &fl=id%2Ccontent
   &qt=standard
   &hl.fl=content
   &hl.useFastVectorHighlighter=true
   &hl=true
   &hl.fragmentsBuilder=colored
   &hl.fragmenter=regex

*Response* (Abbreviated)

   
   -
   
   0
   47
   -
   
   id,content
   true
   content:liquidity
   regex1text
   content
   colored
   standard
   true
   100
   
   
   . . .
   
   -
   
   -
   
   -
   
   ᆘ Liquidity is a measure of a
   bank's ability to fund loans and withdrawals of deposits in a cost-ef
   
   
   
   . . .

*Field listing in schema.xml*

   

*Highlighter listing in solrconfig.xml*

   

   
   
   100
   
   
   
   
   70
   0.5
   [-\w ,/\n\"']{20,200}