cancel
Showing results for 
Search instead for 
Did you mean: 

Implement search user sandbox

koolalfdev
Champ in-the-making
Champ in-the-making
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:TYPESmiley FrustratedTAGING</value>
                <value>SYNCHRONOUS:TYPESmiley FrustratedTAGING_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
2 REPLIES 2

nvsreeram
Champ in-the-making
Champ in-the-making
Hi Koolalfdev,

did you get any solution for the issue - "indexing author sandbox"?
I am having similar requirement and don't know how to achieve it.

Any help is appreciated.

Thanks

nvsreeram
Champ in-the-making
Champ in-the-making
There seems to a standard solution (as described by Alfresco) available to Koolalfdev's problem -
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

Our Problem:
We had to support previewing user sandbox (same as Koolalfdev's) and wanted to get the sandbox indexed.
But Alfresco does not currently support it, seems like they are working it, but no ETA: https://issues.alfresco.com/jira/browse/ENH-279

Solution:
We had to go with one of the 3 solutions explained here: http://wiki.alfresco.com/wiki/WCM_Preview#Preview_in_Alfresco_WCM

We chose to go with Test Server Deployment option and Previewing User Sandbox is working fine.
We can now search (using the webscripts) anything that's present in User sandbox but not yet submitted to Staging Sandbox yet.