[Xapian-tickets] [Xapian] #128: Allow queryparser to treat some prefixes as literal text

Xapian nobody at xapian.org
Tue Jul 24 12:25:37 BST 2012


#128: Allow queryparser to treat some prefixes as literal text
-------------------------+--------------------------------------------------
 Reporter:  richard      |        Owner:  olly     
     Type:  enhancement  |       Status:  assigned 
 Priority:  high         |    Milestone:  1.3.1    
Component:  QueryParser  |      Version:  SVN trunk
 Severity:  minor        |   Resolution:           
 Keywords:               |    Blockedby:           
 Platform:  All          |     Blocking:           
-------------------------+--------------------------------------------------
Changes (by olly):

  * status:  new => assigned


Comment:

 So to clarify, !FieldProcessor currently provides the "How to convert the
 characters parsed into a term" part, and it's set as boolean or not, so
 that's the first part too.

 So this is enough to implement tux21b's «translate "user:username" to
 "Uuserid"» case, for example.

 We don't have the "Which characters to include when parsing" part yet.
 With that, at least some QP features could be handled (like wildcards for
 example).

 I guess a virtual method which says whether a given unicode character is
 in the word (or not) would work.  Another way would be to pass in a
 std::string::const_iterator pair, though that might be harder to wrap.  Or
 the query string and an offset perhaps?

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



More information about the Xapian-tickets mailing list