AnsweredAssumed Answered

Implement search user sandbox

Question asked by koolalfdev on Sep 12, 2008
Latest reply on Oct 23, 2009 by nvsreeram
Hello Everyone,

I want to get the links to news articles that a user creates from  a user sandbox not staging sandbox; based on the most recent creation and expiration dates and types of news article (for example main headline and sub headline). Thus, I took the lucene route but,  I came accross wcm search wiki at http://wiki.alfresco.com/wiki/WCM_Search and it seems that the indexing updates in a users sandbox is triggered only after specific actions. I have made the following changes to configuration file: public-services-context.xml but if does not seem to be working (the user sandboxe's lucene index) here is the bean definition:
<bean id="avmSnapShotTriggeredIndexingMethodInterceptor" class="org.alfresco.repo.search.AVMSnapShotTriggeredIndexingMethodInterceptor">
        <property name="avmService">
            <ref bean="avmService" />
        </property>
        <property name="indexerAndSearcher">
            <ref bean="avmLuceneIndexerAndSearcherFactory" />
        </property>
        <property name="enableIndexing">
            <value>true</value>
        </property>
        <property name="defaultMode">
            <value>SYNCHRONOUS</value>
        </property>
        <property name="indexingDefinitions">
            <list>
                <value>SYNCHRONOUS:TYPE:STAGING</value>
                <value>SYNCHRONOUS:TYPE:STAGING_PREVIEW</value>
                <value>SYNCHRONOUS:TYPE:WORKFLOW</value>
                <value>SYNCHRONOUS:TYPE:WORKFLOW_PREVIEW</value>
                <value>SYNCHRONOUS:TYPE:AUTHOR_WORKFLOW</value>
                <value>SYNCHRONOUS:TYPE:AUTHOR_WORKFLOW_PREVIEW</value>
                <value>ASYNCHRONOUS:NAME:avmAsynchronousTest</value>
                <value>SYNCHRONOUS:NAME:.*</value>
            </list>
        </property>
    </bean>

I would really if I can get some suggestions for implementing the above mentioned functionality. I am also fine not going the lucene way if there can be a better way to implement the functionality. Kindly let me the options. I would really appreciate it and be grateful.

Thanks

Outcomes