cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Advanced Search on Share

3snet
Champ in-the-making
Champ in-the-making
I have a problem with Advanced Search on Share. Indeed, when I run a search on the word given, the result tells me that there is no document in the "Repository". However, I have several documents that contain the search word in either the text or metadata.
On reading the message returned by the search reveals that the search engine only checks in the "Repository" and not sites. Or, actually, all my documents are created in the sites (DocumentLibrary).

Exite there a way to force the advanced search to search the documents also in the sites. If yes, could you please tell me where I can make the necessary changes.

My setup is as follows:
OS: Win Server 2003
Alfresco Community Edition 3.4c

Thanks.
3 REPLIES 3

rleones
Champ in-the-making
Champ in-the-making
I'm getting the same problem…

Anyone knows how to solve it?

cmarguello
Champ in-the-making
Champ in-the-making
You could…
In $TOMCAT_HOME\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\search\search.get.html.ftl
Whe define Alfresco.Search, the parameter initialSearchTerm, do the search within lucene, so you can add the "ALL:" at the begining, this will search in all metadata.
 ("${searchTerm?js_string}".length>0?"ALL:":"")+"${searchTerm?js_string}"

Then, in \webapps\share\components\search\search.js you must remove the "ALL:"
in Search_onReady() function:
// set initial value and register the "enter" event on the search text field
var queryInput = Dom.get(this.id + "-search-text");
queryInput.value = this.options.initialSearchTerm;
if(queryInput.value.length>4){
queryInput.value = queryInput.value.substring(4);
}        
you also must modify search-min.js

Test this please, i have another version of alfresco.

orbitron
Champ in-the-making
Champ in-the-making
Hello all,

Alfresco 3.4.c in Ubuntu.

I have the same problem. Several doc (pdfs format). What I have discovered is that I can find strings from the first pages of these documents ( They have arounf 170p and I can find word in the 40-50 first pages).

I think there is a limit in the size of words searchable per document. Anybody knows how to modify this?

Thanks,
Luis R.