Changes between Version 1 and Version 2 of TextIndexingAbstractionLayer


Ignore:
Timestamp:
09/12/06 14:22:24 (9 years ago)
Author:
Rafael SDM Sierra
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TextIndexingAbstractionLayer

    v1 v2  
    2121
    2222indexer = LuceneIndexer('/tmp/person-index', Person,
    23                         text_fields=['Person.biography'],
    2423                        {'first': 'Person.first_name',
    25                          'last': 'Person.last_name'})
     24                         'last': 'Person.last_name'},
     25                        text_fields=['Person.biography']
     26                       )
    2627indexer.update()
    2728indexer.search("brian -last:beck", order_by='last_name')
Back to Top