Skip to main content
Inspiring
January 24, 2016
Question

cfindex and update action

  • January 24, 2016
  • 0 replies
  • 303 views

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.

This topic has been closed for replies.