Hi Jörn,
The content should be indexed after an edit. There is a index usecase that is run as an exit usecase for most of the edit usecases (xconf file for usecase). You might want to check out the xconf file for the editor that you are trying.

Here is the xconf for bxe:
<xconf xpath="/cocoon/usecases" unless="/cocoon/usecases/[EMAIL PROTECTED] = 'edit.bxe']">

   <component-instance name="edit.bxe" logger="lenya.publication"
      class="org.apache.lenya.cms.editors.bxe.BXE">
      <transaction policy="pessimistic"/>
      <view template="modules/bxe/usecases/bxe.jx" menu="false"/>
      <exit usecase="lucene.index">
        <parameter name="indexAction" value="index"/>
        <parameter name="indexArea" value="authoring"/>
      </exit>
    </component-instance>

  </xconf>

Also, there is two indexes, the live index and the authoring index. The editor usecases should trigger the indexer on the authoring index on exit. The publish usecase should have an exit usecase that indexes the live area.

HTH,
--Doug

Jörn Nettingsmeier wrote:
Jörn Nettingsmeier wrote:

Doug Chestnut wrote:

Hi Jörn,
Does your publication have a conf/cocoon-xconf/index_manager_index.xconf file?

 >

If not copy the one from the default pub into your pub, and then s/default/{yourpubid}/g. I believe this used to work from the create publication usecase but was deactivated for some reason (I think there is an entry in bugzilla). Anyway here is an example, hope it helps:

<snip>

thanks, that finally did it.


one problem remains: how do i populate the index?

edit and save a page that contains the string "test". iiuc, saving automatically invokes the indexer. however, a search for "test" returns 0 hits.

i have tried to run the indexer manually by entering the url

localhost:8888/mypub/authoring/page_that_contains_test.html?lenya.usecase=lucene.index&indexAction=index&indexArea=authoring

(i guessed the querystring after reading usecases-workflow-publish.xconf in the default publication), but that did not help.

my custom publications do not contain the workflow patchfiles. i figured that since i didn't change anything, they would inherit the workflow behaviour from default. wrong?






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to