[Corona] Adding a sub-place to a place
grimm at xqdev.com
Wed Apr 11 11:47:40 PDT 2012
No, I don't believe that this is a use case that MarkLogic currently supports, and hence Corona can't either :). To support such an operation, MarkLogic fields (and/or element word queries) would need to support XPaths.
Sub-places in Corona can be thought of as more of an object inheritance model than a document structure model. Including place "A" inside place "B" simply tells place "B" to include all of the configuration from place "A". So if place "A" was configured to included elements "foo" and "bar", then place "B" is configured to include the element "baz" along with place "A", the result will be that place "B" includes elements "foo", "bar" and "baz".
Does that clear things up or muddy the water?
On Apr 11, 2012, at 11:36 AM, Scott Stafford wrote:
> I have the following use case.
> Document 1
> Document 2
> <name>Acme Inc.</name>
> I want to return document 1 using this named query: /search?stringQuery=person:Joe
> I want to return document 2 using this named query: /search?stringQuery=company:Acme
> I have set up a named place called "name" which queries from the /name element.
> I have also tried to create a named place called "person" and referenced the sub-place "name".
> POST /manage/place/person?element=person
> POST /manage/place/person?place=name
> When I try a 'person' named query I get a 500 stack overflow error. Is a sub-place appropriate for this use case?
> From namespaces: I noticed some escape characters in with the name subplace. Is this normal?
> Corona mailing list
> Corona at developer.marklogic.com
More information about the Corona