• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfindex and update action

Contributor ,
Jan 24, 2016 Jan 24, 2016

Copy link to clipboard

Copied

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.

Views

224

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Documentation