linuxlewis / djorm-ext-pgfulltext

PostgreSQL full-text search integration with django orm.
Other
250 stars 84 forks source link

cannot create multiple search managers within model #58

Closed pauldiez closed 9 years ago

pauldiez commented 9 years ago

Is it possible to have multiple search managers with a model?

By this example it does not seem to work.

search_manger_en = SearchManager(
        fields=('title', 'body'),
        config='pg_catalog.english',  
        search_field='search_index_en', 
        auto_update_search_field=True
    )

search_manger_fr = SearchManager(
        fields=('title_fr, 'body_fr'),
        config='pg_catalog.english',  
        search_field='search_index_fr',  
        auto_update_search_field=True
    )