[Xapian-tickets] [Xapian] #167: Add mode to query parser to search for both stemmed and unstemmed forms

Xapian nobody at xapian.org
Fri Nov 16 08:40:39 GMT 2012


#167: Add mode to query parser to search for both stemmed and unstemmed forms
-------------------------+--------------------------------------------------
 Reporter:  richard      |        Owner:  olly     
     Type:  enhancement  |       Status:  assigned 
 Priority:  normal       |    Milestone:  1.3.x    
Component:  QueryParser  |      Version:  SVN trunk
 Severity:  minor        |   Resolution:           
 Keywords:               |    Blockedby:           
 Platform:  All          |     Blocking:           
-------------------------+--------------------------------------------------
Changes (by olly):

  * milestone:  => 1.3.x


Old description:

> Now that we store both the stemmed and unstemmed forms of each word in
> the
> database, it might be nice to add a new stemming mode to the query parser
> which
> takes each word in the query and generates an "OR" query for it, with two
> parts;
> one being the unstemmed form and one being the stemmed form.  This would
> mean
> that each query would match any document with words which match the
> stemmed
> form, but would give documents with the unstemmed form a higher weight.
>
> We might call this option "STEM_BOTH", or some better name that someone
> other
> than me can think of.

New description:

 Now that we store both the stemmed and unstemmed forms of each word in the
 database, it might be nice to add a new stemming mode to the query parser
 which
 takes each word in the query and generates an "OR" query for it, with two
 parts;
 one being the unstemmed form and one being the stemmed form.  This would
 mean
 that each query would match any document with words which match the
 stemmed
 form, but would give documents with the unstemmed form a higher weight.

 We might call this option "STEM_BOTH", or some better name that someone
 other
 than me can think of.

--

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



More information about the Xapian-tickets mailing list