cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating Search with external resource

leecarls
Champ in-the-making
Champ in-the-making
I would like to search functionality to search for external resource as well either via SOLR or Nutch integration.

How to do it for Alfresco Share?
2 REPLIES 2

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

Search implementations are pluggable you get the SearchParameters and have to return a result set.
The implementations are wired up in Spring config.
The  main question is what node ref are you going to return for docs not in Alfresco?

See LuceneQueryLanguageSPI and where it is used if you want to extend this.

This is exactly what we are doing as part of our current work to integrate SOLR.

Andy

leecarls
Champ in-the-making
Champ in-the-making
Thanks for your reply. I just want to have an internal search and another option to search for an external repository.

I'm still quite new to Alfresco Share. Could you give a more detail code snippets/config as an example?

The current search implementation still would be remain. Thus I can't replace it. 

I'm referring to the Search and Advance search function in the repositry section.

From the wiki I failed to find any guideline on how does this search mechanism is wired, probably this part is considered an an internal architecture?

Anyway, from my understanding the search button was wired via yahoo bubbling  ui event and invoke a uri to fetch the repository. The return format is in JSON format.

The questions is if I were to wire a SOLR to Share, then  this uri would be  a solr uri?
If yes, then this uri should return a json format compatible with Share. Not sure thought the Solr default json is compatible or not. Otherwise, any pointer for the format beside the one embedded on share\components\search\search.js (onReady: function Search_onReady())

and advsearch.js (method onSearchClick: function ADVSearch_onSearchClick(e, obj))

Finally for the external data indexing, then I've do integrate it with solr   is it?