[Bugs] #1090 UNSP: refactor indexing/query parsing, add support for prefixes

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Wed Jul 22 17:44:00 EDT 2009


#1090: refactor indexing/query parsing, add support for prefixes
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  tomeu                      
        Type:  enhancement                |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar-datastore            |        Version:  Git as of bugdate          
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  New                        
------------------------------------------+---------------------------------
 The attached patch refactors the indexing (term generation) and query
 parsing code in indexstore.py.
 Now adding a new attribute requires only two lines to be added. This will
 come in quite handy when adding all the attributes proposed by alsroot. :)
 In addition, prefix search (e.g. "activity:calculate") and phrase search
 (e.g. "org.laptop.Calculate") now work (in addition to non-prefix search -
 e.g. "activity:org.laptop.calculate" and "org.laptop.calculate" usually
 return the same set of entries).
 Date range search is implemented, but doesn't work with current Journal
 because it appends an asterisk to each term. This also seems to confuse
 Xapian for certain phrase queries (e.g. "activity:org.lap" doesn't work,
 but "activity:or" and "activity:org.laptop" do work). Also the date parser
 isn't very tolerant.

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/1090>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list