Changeset 223:c71d066b15af for xap/trunk/doc
- Timestamp:
- 03/21/08 17:40:16 (8 months ago)
- Files:
-
- 1 modified
-
xap/trunk/doc/indexer.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
xap/trunk/doc/indexer.txt
r219 r223 75 75 ... " derived) words to their stem, base or root form." 76 76 >>> indexer.index_document(uid, text, language='en') 77 78 We 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') 77 83 78 84 Let's wait a bit so the worker has the time to read the SQL Database … … 117 123 ['3'] 118 124 125 In french:: 126 >>> res = searcher.search('lexemiser', language='fr') 127 >>> list(res) 128 ['4'] 129 119 130 We have an API to detect if a document is present:: 120 131
