You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we provide quite a bunch of different search/listing API endpoints and views for searching. Some of them transparently use SOLR, if it is available, some of them always use the catalog.
We need to discuss which of them are needed, and what could/should be refactored. Figuring out use-cases is key. Potential Goals/Discussion Items:
Unify request API
Unify result/response structure
Make clear when SOLR is used and when we use the catalog
Transparently uses SOLR when available, portal_catalog otherwise. In case of SOLR re-uses opengever.base.browserlivesearch.LiveSearchReplyView. In case of catalog reuses plone.restapi.services.SearchGet.
Couldn't find documentation
Not scoped by context
Returns a list of queried objects without query metadata as following:
[
{
"@id": "http://localhost:8080/fd/ordnungssystem/gesellschaftliches/dossier-28/document-48",
"@type": "opengever.document.document",
"filename": "Kopie von lorem.docx",
"title": "Kopie von lorem"
}
]
@@livesearch_reply browser view implemented in the class LiveSearchReplyView in
Currently we provide quite a bunch of different search/listing API endpoints and views for searching. Some of them transparently use SOLR, if it is available, some of them always use the catalog.
We need to discuss which of them are needed, and what could/should be refactored. Figuring out use-cases is key. Potential Goals/Discussion Items:
This is a list of endpoints/views:
GET
endpoint implemented inSearchGet
inplone.restapi
in https://github.com/plone/plone.restapi/blob/30a04ba342bf9c101677c3081398e2c111400b3d/src/plone/restapi/services/search/get.py#L7.portal_catalog
. Uses serializers to serialize content toJSON
. We implement custom serializers in GEVER to extend it with type-specific custom attributes https://github.com/4teamwork/opengever.core/blob/b2f71596b4ef1c34d3e6277636a65ffcb6a9d9cd/opengever/api/serializer.py@listing
implemented inListing
inopengever.core/opengever/api/listing.py
Line 232 in b2f7159
@solrsearch
implemented in theSolrSearchGet
class inopengever.core/opengever/api/solrsearch.py
Line 9 in b2f7159
@solrsearch
trims SOLR result/query metadata and http status #5816@search
implemented inplone.restapi
in theSearchGet
class in https://github.com/plone/plone.restapi/blob/30a04ba342bf9c101677c3081398e2c111400b3d/src/plone/restapi/services/search/get.py#L7portal_catalog
(Not overriden in GEVER)@livesearch
implemented in theGeverLiveSearchGet
class in https://github.com/4teamwork/opengever.core/blob/master/opengever/api/livesearch.py#L8portal_catalog
otherwise. In case of SOLR re-usesopengever.base.browserlivesearch.LiveSearchReplyView
. In case of catalog reusesplone.restapi.services.SearchGet
.@@livesearch_reply
browser view implemented in the classLiveSearchReplyView
inopengever.core/opengever/base/browser/livesearch.py
Line 38 in b2f7159
@@search
browser view implemented in the classOpengeverSearch
inopengever.core/opengever/base/browser/search.py
Line 30 in b2f7159
The text was updated successfully, but these errors were encountered: