#225: Stemming breaks wildcard search
-----------------------+----------------------------------------------------
 Reporter:  bthiell    |       Owner:     
     Type:  defect     |      Status:  new
 Priority:  major      |   Milestone:     
Component:  WebSearch  |     Version:     
 Keywords:             |  
-----------------------+----------------------------------------------------
 '''Problem:'''

 {{{
 In [17]: s.perform_request_search(p='Astrophysics')
 Out[17]: [8, 11, 15]

 In [18]: s.perform_request_search(p='Astrophysi*')
 Out[18]: []
 }}}

 '''Cause:'''

 The global index is in Invenio stemmed by default and therefore the term
 stored for "Astrophysics" in the database is "Astrophys". When performing
 a wildcard search, the MySQL request is then "WHERE term LIKE
 'astrophysi%'" and no results are found.

 This problem is easily understandable for a developer who knows about the
 indexes and the stemming procedure however it is a surprising undesired
 "feature" for a normal user as the second search is the example is a
 broader search than the first one but returns less hits.

-- 
Ticket URL: <http://invenio-software.org/ticket/225>
Invenio <http://invenio-software.org>

Reply via email to