cancel
Showing results for 
Search instead for 
Did you mean: 

search within user sandbox

koolalfdev
Champ in-the-making
Champ in-the-making
When I use the query against the staging sandbox store.luceneSearch("Text:" + query); it gets back the search results but, when I use the same lucene query against a admin sandbox which has the same contents as the staging sandbox the query does not get me any search results back Smiley Sad . I guess I am passing the correct store name xyz–admin. Is there anything I am missing.

Thanks..
6 REPLIES 6

koolalfdev
Champ in-the-making
Champ in-the-making
I did not have the user sandbox indexed and that's why things did not in case if some one is doing the same mistake. Smiley Happy

Thanks

koolalfdev
Champ in-the-making
Champ in-the-making
Hello Everyone,

I am using alfresco 2.2. Is there a way to can implement lucene based indexing in a particular sandbox. I changed the public-service-context.xml file as the follwing:

<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:AUTHOR</value>
                <value>SYNCHRONOUS:TYPE:AUTHOR_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>
when the changes made and submitted to staging sandbox in one sandbox example "demo–admin" do not get reflected in "demo–xyz" but a search query gets old results and the code breaks.

I guess what I am trying to ask is if there is a way to get the indexes of all the sandboxes in sync.

Thanks  for any suggestions or alternatives.

andy
Champ on-the-rise
Champ on-the-rise
Hi

In short, No.

The management of all the index layering required has not been done.

Andy

koolalfdev
Champ in-the-making
Champ in-the-making
Andy,

Any suggestions on hoe to implement it?

Thanks,

steventux
Champ in-the-making
Champ in-the-making
I did not have the user sandbox indexed and that's why things did not in case if some one is doing the same mistake. Smiley Happy

Thanks

Can you tell me how to index a user's sandbox?

koolalfdev
Champ in-the-making
Champ in-the-making
I failed to use lucene in the same….so I just had to go path based using the javascript API

Thanks