I've working on a c++ project involving alfresco. I want to search a document by name, but the webscripts provided by alfresco requires fileId. I don't want to create a custom new webscript. so the question is there any existing webscript that supports search by name of the document?
2 に答える
検索用に設計されたリポジトリ層の Web スクリプトがあります: 、http://host:port/alfresco/service/slingshot/node/search
多くの URL パラメータを受け入れますが、重要なものは:q
と 例は次のようになります。lang
store
http://localhost:8080/alfresco/service/slingshot/node/search?q=%40name%3A%22name%22&lang=lucene&store=workspace%3A%2F%2FSpacesStore
q = @name:"name"
、lang=lucene
および_store=workspace://SpacesStore
Webscript 応答はjson
、デフォルトでフォーマットされます。
組み込みの Alfresco キーワード検索 Web スクリプトを使用すると、指定された検索語でレポを検索し、たとえば Atom フィードとして取得できます。以下にある webscript パッケージを見てください。
http://<yourAlfrescoHost>/alfresco/service/index/package/org/alfresco/repository/search