cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Search - documents are not found

compaqnx7300
Champ in-the-making
Champ in-the-making
I installed Alfresco 3.4 to test it with many documents. I loaded a few thousand documents to one space (folder) and tested searching. Everything looked OK. I load hundreds of thousand documents and I noticed, that there are documents which I can not find using advanced search (or lucene search in node browser) but I can find them using xpath query (in Admin panel, Node browser, using "select nodes"). I tried to find them using, for example: sys:node-dbid property. With advanced search or lucene sometimes it is not possible (document is not found), but with xpath and select nodes in node browser it is always possible.
Does lucene needs special configuration to search such amount of documents?
5 REPLIES 5

mrogers
Star Contributor
Star Contributor
What sort of queries are you using?   

Some examples may help in understanding your issue.

compaqnx7300
Champ in-the-making
Champ in-the-making
For example:
Searching document in "Advanced search" by file name: image2011-07-08-085245.pdf
does not find document.

Query executed in Node browser:
Search Language:   lucene
Search:   @cm\:name:'image2011-07-08-085245.pdf'
does not find document.

But in Node browser query:
Search Language:   selectnodes
Search:   /app:company_home/cm:CompanyData/cm:Invoices/*[@cm:name='image2011-07-08-085245.pdf']
find the document.

Document is visible in webclient, but advanced search is not able to find it by any of its property (cm:name, sys:node-dbid, …).

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

If you can not find the node via any lucene search, then it sounds like you have an issue with your index.
(SelectNodes evaluates against the DB)

Andy

raweck
Champ on-the-rise
Champ on-the-rise
Step 1: Stop Alfresco server
Step 2: Delete content of %ALFRESCO_HOME%/alf_data/lucene-indexes

Step 3: Edit the property file: %ALRESCO_HOME%/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties
or  %ALRESCO_HOME%/tomcat/webapps/alfresco/WEB-INF/classes/alfresco-global.properties

Set the property index.recovery.mode:

    # The index recovery mode (NONE, VALIDATE, AUTO, FULL)
    index.recovery.mode=FULL

Step 4: Start Alfresco server

After successful server start set index.recovery.mode back to VALIDATE, AUTO or NONE.

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

Does your search work if you quote it?
Are you searching for the full file name?
Does adding a wildcard help?
Does any query (e.g. on metadata or content) find the document?

Thre are some oddities with the lucene standard analyser for things that look like dates, product ids, etc, etc

Andy