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
Excellent glad to hear it worked in the end!! Smiley Happy

The installed schema is simply the version that was originally installed - the Server Version is the version the server has been successfully patched/upgraded to - so everything is fine.

Thanks,

Kevin

revnouz
Champ in-the-making
Champ in-the-making
Hello again Kevin,
I'd just like to thank you again for the BIG help!

Now, instead of moving on to WCM, I need to focus first on Alfresco APIs to enable integration to our other systems.


Also, I just noticed this now. The advanced search on my new server is missing options on the "Additional option". I mean nothing is there when you click on the expand arrow.

Buy default there should be the "Record Category Identifier", "Unique Record Identifier", "Date Received" and "Supplemental Marking List", right? Now they're gone. And I have the default web-client-confif-custom.xml

I'm just starting to check on it so I'll give an update tomorrow.

Thanks and best regards

kevinr
Star Contributor
Star Contributor
Also, I just noticed this now. The advanced search on my new server is missing options on the "Additional option". I mean nothing is there when you click on the expand arrow.

Buy default there should be the "Record Category Identifier", "Unique Record Identifier", "Date Received" and "Supplemental Marking List", right? Now they're gone. And I have the default web-client-confif-custom.xml
/quote]

The extra items in this panel were part of the Records Management Preview - they have been removed in 1.4 final unless you specifically install the Records Management bundle. This is to reduce clutter for current installed systems - most installations will have already configured items in this panel so will not want the Records Management bits and pieces in the way.

Thanks,

Kevin

revnouz
Champ in-the-making
Champ in-the-making
NIIICCEE!!!  Smiley Very Happy  Smiley Very Happy


Now I can move on to integrating Alfresco w/ data/document coming from JitterBit and Alfresco will create a metadata of the document in xml to push it to our internal systems.

any pointers on how I can make Alfresco send an XML file? (and I think I'll be creating a new thread for this) Smiley Happy

Thank you

babbage
Champ in-the-making
Champ in-the-making
I have been trying to get Lucene to query for documents that have one of my custom properties called opsGroup equal to an argument past to a template.

I saw something in this thread that seemed close


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" ))

so I put the following in my code


<#assign query = "+PARENT:\"" + publishedSpace.nodeRef+"\"+@\{http\://nscl.msu.edu/model/content/1.0\}opsGroup:\''+args['search']+'\"" >
<#list companyhome.childrenByLuceneSearch[query] as child>
    <tr><td><a href="/alfresco${child.url}" target="new">${child.properties.name}</a></td></tr>
</#list>

I get to following error.


freemarker.core.ParseException: Token manager error: freemarker.core.TokenMgrError: Lexical error at line 13, column 62. Encountered: "{" (123), after : "\"\\\"+@\\"


Any ideas would be helpful.  I know that I can just select all the documents and only display the ones that have that property set appropriately.  Also, it could be that trying to do this with templates is the wrong way to go.  I started here cause it is something I understand.

Thanks
/jon

kevinr
Star Contributor
Star Contributor
The problem is the escaping in your query statement. In the quote you pasted from a previous forum post the query has escaping '\' characters for the { and : characters which is required for Lucene. However in FreeMarker templates the '\' character is itself the escape character Smiley Happy You basically need to double escape the '\' characters from the original lucene statement - something like this:

<#assign query = "+PARENT:\"" + publishedSpace.nodeRef + "\"+@\\{http\\://nscl.msu.edu/model/content/1.0\\}opsGroup:\"" + args["search"] + "\"" >

Thanks,

Kevin