cancel
Showing results for 
Search instead for 
Did you mean: 

search in metadata

commarmi
Champ in-the-making
Champ in-the-making
Hello,

it's possbile to search in document content and metadata.
25 REPLIES 25

kevinr
Star Contributor
Star Contributor
Yes it is. You can use the web-client UI to search in document full-text and the 'name' property by default - you can use the Advanced Search to search many different meta-data properties and it can be configured.

The APIs support Lucene search on all meta-data attributes, aspects, types etc.

Thanks,

Kevin

commarmi
Champ in-the-making
Champ in-the-making
Thanks, but:

I upload document with "dublin core" metadata.
I search for publisher without any result .


howto ?
wiki ?

revnouz
Champ in-the-making
Champ in-the-making
commarmi,
you have to edit <alfresco>/shared/classes/alfresco/extension/web-client-config-custom.xml
to include the search for Dublin Core properties under Advanced Search -> Additional Options

revnouz
Champ in-the-making
Champ in-the-making
kevinr,

I am having problems w/ the Dublin Core search though…..

For example, I have defined on the Contributor value = "CMS Team".

Now, I can search and find that document using "CMS"  but not "CMS Team"….I think it's a very weird behavior.  already restarted alfresco a number times, so I don't think this is a delay on indexing or cache.

I'm stuck on this thing on a project I am working on….pls help.

TIA

kevinr
Star Contributor
Star Contributor
Are you using Alfresco 1.4 Community Final? As there was a bug in the advanced search when using multiple words in attribute searches - it was fixed for 1.4 final.

Thanks,

Kevin

revnouz
Champ in-the-making
Champ in-the-making
As usual, Thanks for the prompt reply Kevinr,  Smiley Very Happy

I'm using Alfresco 1.4 Community Release (I think 10/25/06), installed from an existing 1.4 Release Candidate. Was that ok? or I should have installed it from scratch?

TIA

kevinr
Star Contributor
Star Contributor
No that should be fine. Can you try something for me, please turn on this log4j debugging flag in TomCat, edit this file is probably the quickest way:
\apache-tomcat\webapps\alfresco\WEB-INF\classes\log4j.properties

And add this line:
log4j.logger.org.alfresco.web.bean.SearchContext=debug

This will output the lucene search generated by the client to the TomCat console when you use Simple or Advanced Search.

In this example, I searched for the string:
Kevin Roast
in the 'Author' field in the advanced search, you should see something like this:

09:22:20,750 DEBUG [web.bean.SearchContext] Query:
+@\{http\://www.alfresco.org/model/content/1.0\}author:'kevin roast" AND (( TYPE:"{http://www.alfresco.org/model/content/1.0}content"  OR  TYPE:"{http://www.alfresco.org/model/content/1.0}folder" ))
Something similar should be output for your search. Can you post what is displayed?

Thanks,

Kevin

revnouz
Champ in-the-making
Champ in-the-making
Thanks kevin, Sorry for my delay in posting. Left early last friday and this weekend I couldn't access my alfresco server from home. Here's the debug output…


12:19:40,084 DEBUG [web.bean.SearchContext] Query:  +@\{http\://www.alfresco.org/model/content/1.0\}contributor:For Evaluation* AND (( TYPE:"{http://www.alfresco.org/model/content/1.0}content"  OR  TYPE:"{http://www.alfresco.org/model/content/1.0}folder" ))

12:24:32,885 DEBUG [web.bean.SearchContext] Query:  +@\{http\://www.alfresco.org/model/content/1.0\}contributor:Evaluation* AND (( TYPE:"{http://www.alfresco.org/model/content/1.0}content"  OR  TYPE:"{http://www.alfresco.org/model/content/1.0}folder" ))

12:26:00,692 DEBUG [web.bean.SearchContext] Query:  +@\{http\://www.alfresco.org/model/content/1.0\}contributor:\'For Evaluation\"* AND (( TYPE:"{http://www.alfresco.org/model/content/1.0}content"  OR  TYPE:"{http://www.alfresco.org/model/content/1.0}folder" ))

The first query (Contributor = For Evaluation) produced other documents with 'For Evaluation' on their contents, but not the actual document I was looking for.

The second (Contributor = Evaluation) got an exact hit. one document only.

The third (Contributor = "For Evaluation") had 0 results.


Also, How can remove the the folder query?

TYPE:"{http://www.alfresco.org/model/content/1.0}folder" ))

Thanks

kevinr
Star Contributor
Star Contributor
This is wierd - it looks like you don't have the final 1.4 community release - as the searches produced are wrong I think. Can you try this for me, login as admin, and go to the Administration Console, then System Information and open the Repository Properties panel. Can you post the values in the first 4 properties.

To search for only files or files names, change the value in the 'Show me results for' radio button.

Thanks,

Kevin