Hi guys,

Todays problem is brought to you buy sfLucene.  The instructions seem  
like they need a little work to make them a little more  
understandable, but hopefully I understood what was going on.

here is my search.yml slightly modified to protect sensitive data.

MyIndex:
     models:
         protected_table_name:
             fields:
                 id:                 unindexed
                 num:                unindexed
                 protected_name:
                     boost:          1.5
                     type:           text
                 name:               unindexed
                 address:            unindexed
                 city:               text
                 state:              text
                 zipcode:            unindexed
                 group_exemp:        unindexed
                 sub_sec_code:       unindexed
                 affil_code:         unindexed
                 class_code:         unindexed
                 ruling_date:        unindexed
                 deduct_code:        unindexed
                 found_code:         unindexed
                 act_code:           unindexed
                 org_code:           unindexed
                 dist_juris:         unindexed
                 adv_rule_date:      unindexed
                 tax_period:         unindexed
                 asset_code:         unindexed
                 income_code:        unindexed
                 filing_req_code:    unindexed
                 blank:              unindexed
                 account_period:     unindexed
                 assets:             unindexed
                 income:             unindexed
                 neg_income:         unindexed
                 form_990_amount:    unindexed
                 neg_income_990:     unindexed
                 taxonomy:           unindexed
                 sort_name:          unindexed
                 phone:              unindexed
                 description:        unindexed
                 website:            unindexed
                 created_at:         unindexed
             title:                  company
             description:            description
             route:                  @routingname?cn=%protected_name 
%&city=%city%&state=%state%&numid=%num%
     index:
         cultures: [en_US]
         case_sensitive: off

I've added the necessary line to my model class.  The route is there  
and works.  When it try to build the index I get.

$ symfony lucene-rebuild prototype
Processing "MyIndex/en_US" now...
 >> lucene    Created new index
 >> lucene    Rebuilding...


   [sfLuceneIndexerException]
   NUM000916530::getgroup_exemp() cannot be called


I set __toString() to return "NUM".$this->getNum()  so it conforms to  
php function naming once I saw that it was trying to call functions  
that were incorrect, but that still didn't solve the problem.

Any help would be great.

Thanks,
James   






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to