cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene search index refresh not working

edx_i
Champ in-the-making
Champ in-the-making
Hi,

I created a new context model object to alfresco and a web script that creates them. Then I used to the script to creat some 500 of these new folders to Alfresco and tried to search them via another web script. However, only a small part of the created items were found when I searched them in the web script with search.query and some properties set in the query string.

I noted that if I had some delay between creating folders, more items was found with the search. It seemed like the lucene index wasn't updated properly so I refreshed it as explained in http://forums.alfresco.com/en/viewtopic.php?t=8002 but this brought interesting results: For the first 30 seconds after the server startup, the search returned results (in a number that seemed reasonable) but soon after that the number of returned results fell down to zero.

Currently I'm quite lost, as it seems there is no reliable way of building the search index. Are there some parameters I can give to lucene, so that it would index more eagerly? Where is its logging level defined, so I can inspect what actually happens: currently there is nothing in the log about adding items to the index. Any alternatives to rebuilding the index?
3 REPLIES 3

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

Can you find the folders and docs via the node browser?

What query are you using?
Remember, content is indexed in the background.
If you are rebuilding your indexes start with a clean index directory (it is faster)

Andy

edx_i
Champ in-the-making
Champ in-the-making
It doesn't seem to be a matter of indexing but rather something with searching. How can I run the generated lucene query in alfresco explorer? It's quite simple: "TYPE:"{http://www.alfresco.org/model/content/1.0}folder"  AND ASPECT:"{com.company.app}metadataaspect"  AND @cca\:myProperty:"*ACTIVE*"

When run through the web scripts, the query returns a different number of results depending on the machine/browser.

Nodes and folders are listed correctly in the node browser (if I understood you correctly and the /alfresco/ application is what you refer to as the node browser).

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

If you use the JSF client and login as admin you can use the admin screens to get to the node browser.
(Left most icon nect to the admin name at the top)

In the node browser you can also exectute lucene queries using the selector and text box at the top.

Andy