cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Search in Dashlet

luiz_taira
Champ in-the-making
Champ in-the-making
Hi everyone.

I´m a developer from Brazil and at the moment I´m using Alfresco Share for some customizations.
Now, I need to create an Advanced Search in a dashlet, but this research need to find metadata too.
This research is possible? Can I research in metadatas of the files?

Tks!
22 REPLIES 22

kevinr
Star Contributor
Star Contributor
Yes absolutely possible. The repository side JavaScript search API can find documents via any of the indexed metadata (which by default, is pretty much everything, including all custom metadata unless you mark it otherwise).

You will need to write a data webscript on the repo side (take a look at the Share search webscript - but yours can be a lot simpler probably):
\HEAD\root\projects\remote-api\config\alfresco\templates\webscripts\org\alfresco\slingshot\search
you will probably return your data as JSON, then process it in Share in your dashlet and display it as required. The YUI Datagrid is one way to display the data - there are many examples of using and customizing this control in the Share application.

Thanks,

Kev

newmember
Champ in-the-making
Champ in-the-making
How did you make out with your search dashlet luiz.taira?


Cheers

flefoll
Champ in-the-making
Champ in-the-making
Hi all,

Some sources somewhere ?
Thanks in advance,

Francois

joaotpd
Champ on-the-rise
Champ on-the-rise
Hi luiz.taira!!

I need to search in metadata of content in alfresco share… Dis you manage to create the dashlet??! … Can you share it?! … or give me some tips to start!?!…
Thanks a lot!!

João

sselvan
Champ in-the-making
Champ in-the-making
Luis,

I am trying to get this search working, just in the Simple Search box in the top - http://forums.alfresco.com/en/viewtopic.php?f=47&t=25119

Did you happen to find anything in your end? I don't have to create a dashlet, but does Share Search on Metadata (like description, author) work at all?

thank you

sselvan
Champ in-the-making
Champ in-the-making
@kevin,

Does the search on description or author work by default in the "Simple Google like Search" field in the top right hand corner in Share?
Do I have to do any configuration changes to get there?

Thank you

kevinr
Star Contributor
Star Contributor
In 3.3 (code currently available in our public SVN) we have added description to the list of fields that are automatically searched.

Also in 3.3 the power of the Share search has been greatly improved. It now uses the latest fts-alfresco language as the default, this means you can do all sorts of queries, including searching properties such as author, for example:
quoted phrases: "alfresco book"
   bracketed elements: (bread and cheese) or chips
   property search: modifier:kevinr
   date ranges: modified:["2009-10-20" to "2009-10-21"]
   mix it all up: "alfresco book" and not modifier:kevinr and modified:["2009-10-20" to "2009-10-21"]
   All elements are automatically expanded to search: name,title,description and TEXT property if no specific property specified
   so the search: "alfresco book" and not modifier:kevinr
   translates as - find me all items that contain the phrase "alfresco book" in the name or title or description or contents and were not modified by kevinr
Cheers,

Kev

sselvan
Champ in-the-making
Champ in-the-making
That's very helpful response Kevin. Appreciate it!

sselvan
Champ in-the-making
Champ in-the-making
Is there a timeline for this feature to come in enterprise version of alfresco 3.3?