Show
Ignore:
Timestamp:
03/21/08 17:40:16 (8 months ago)
Author:
Lafaye Philippe (RAGE2000) <lafaye@…>
Message:

Add a french sentence for test with accents.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • xap/trunk/doc/indexer.txt

    r219 r223  
    7575    ... " derived) words to their stem, base or root form." 
    7676    >>> indexer.index_document(uid, text, language='en') 
     77 
     78We can also try with french sentence, with some accents:: 
     79    >>> uid = '4' 
     80    >>> text = "La lexémisation d'un mot est la fonction qui associe un"\ 
     81    ... " lexÚme à celui-ci." 
     82    >>> indexer.index_document(uid, text, language='fr') 
    7783 
    7884Let's wait a bit so the worker has the time to read the SQL Database 
     
    117123    ['3'] 
    118124 
     125In french:: 
     126    >>> res = searcher.search('lexemiser', language='fr') 
     127    >>> list(res) 
     128    ['4'] 
     129 
    119130We have an API to detect if a document is present:: 
    120131