[Xapian-tickets] [Xapian] #307: OP_SYNONYM should allow field weights to be set on its members

Xapian nobody at xapian.org
Tue Dec 9 23:31:50 GMT 2008


#307: OP_SYNONYM should allow field weights to be set on its members
-------------------------+--------------------------------------------------
 Reporter:  richard      |        Owner:  richard  
     Type:  enhancement  |       Status:  assigned 
 Priority:  normal       |    Milestone:  1.1.0    
Component:  Matcher      |      Version:  SVN trunk
 Severity:  normal       |   Resolution:           
 Keywords:               |    Blockedby:  50       
 Platform:  All          |     Blocking:           
-------------------------+--------------------------------------------------
Description changed by olly:

Old description:

> Currently, OP_SYNONYM simply adds up the wdfs of the member terms to
> calculate the wdf of the resulting item.  However, it might be useful to
> allow OP_SYNONYM to be told to modify the wdfs of the member terms (using
> an integer muliplier).  This would correspond functionally to the
> "weight" function implemented in scriptindex, which allows the weight of
> a field to be modified at index time by multiplying the wdf, but would
> allow the weights to be adjusted at search-time without requiring a re-
> index.
>
> I'm not sure where in the API this would fit, but it's something to
> consider before merging the OP_SYNONYM branch to trunk.

New description:

 Currently, OP_SYNONYM simply adds up the wdfs of the member terms to
 calculate the wdf of the resulting item.  However, it might be useful to
 allow OP_SYNONYM to be told to modify the wdfs of the member terms (using
 an integer multiplier).  This would correspond functionally to the
 "weight" function implemented in scriptindex, which allows the weight of a
 field to be modified at index time by multiplying the wdf, but would allow
 the weights to be adjusted at search-time without requiring a re-index.

 I'm not sure where in the API this would fit, but it's something to
 consider before merging the OP_SYNONYM branch to trunk.

--

-- 
Ticket URL: <http://trac.xapian.org/ticket/307#comment:5>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list