0 Replies Latest reply on Jan 24, 2016 3:46 AM by plarts

    cfindex and update action

    plarts Level 1

      I index a site, to do this,

      I do several cfindex with update action on different datasource.

      It seems that the last cfindex erase the first indexing when changing of datasource ?

       

      here is example of code :

      <CFQUERY NAME="forum" datasource="#forum_datasource#">

          SELECT quest_topic_id,quest_id,quest_text,quest_sujet,ans_text from answers

      inner join questions on answers.ans_quest_id=questions.quest_id

      </CFQUERY>

      <cfindex action="update"

               collection="arpille_site"

               key="quest_id"

               type="CUSTOM"

               title="s_forum"

               query="forum"

               body="quest_text,quest_sujet,ans_text">

        

      <CFQUERY NAME="annonce" datasource="#Article_datasource#">

          SELECT an_titre,an_des,an_id from annonces

      </CFQUERY>

      <cfindex action="update"

               collection="arpille_site"

               key="an_id"

               type="CUSTOM"

               title="s_annonce"

               query="annonce"

               body="an_titre,an_des">

       

      Thanks for advise.

      (Using CF9.0)

      Pierre.