Ticket #55 (closed Enhancement: fixed)
URL topics should be indexed as "exact value" as well
Reported by: | jri | Owned by: | |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.1 |
Component: | DeepaMehta Standard Distribution | Version: | 4.0.2 |
Keywords: | Cc: | ||
Complexity: | 1 | Area: | Model |
Module: | deepamehta-webbrowser |
Description
Currently they are only indexed as "fulltext".
Thus, a type-save query is not possible.
Change History
comment:2 Changed 13 years ago by jri
- Status changed from new to closed
- Resolution set to fixed
This is fixed now (in master).
You can query an URL topic with a given URL now. Either via Core Service API:
getTopic(String key, SimpleValue value, boolean fetchComposite)
Example:
dms.getTopic("dm4.webbrowser.url", new SimpleValue("www.deepamehta.de/docs/humans.html"), false)
Or via REST API:
curl localhost:8080/core/topic/by_value/<key>/<value>
As <key> the URI of a simple topic type can be passed.
The value must be URL-encoded, e.g.:
curl localhost:8080/core/topic/by_value/dm4.webbrowser.url/www.deepamehta.de%2Fdocs%2Fhumans.html
You must reset your DB.
(for the moment an incremental migration is not easy to provide. Please excuse.)
Malte's original mail: